# Check a table value with a sqrt

**URL:** <https://cl.desmos.com/t/check-a-table-value-with-a-sqrt/3245>\
**Category:** Questions\
**Created:** [May 6, 2021, 8:28pm UTC](https://cl.desmos.com/t/check-a-table-value-with-a-sqrt/3245 "2021-05-06T20:28:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Burton\_Shields](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/burton_shields/32/842_2.png) [@Burton\_Shields](https://cl.desmos.com/u/Burton_Shields)\
**Post date:** [May 6, 2021, 8:28pm UTC](https://cl.desmos.com/t/check-a-table-value-with-a-sqrt/3245/1 "2021-05-06T20:28:33Z")

</div>

I want to check table inputs for correctness but I don’t know how to enter a sqrt into cl.

I want the correct answer to be sqrt(5)/13

here is the code I was trying to update

correct: a=sqrt(5)/13 and b=0.8 and c=0.75  
a = table1.cellNumericValue(1,2)  
b = table1.cellNumericValue(2,2)  
c = table1.cellNumericValue(3,2)

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [May 6, 2021, 8:43pm UTC](https://cl.desmos.com/t/check-a-table-value-with-a-sqrt/3245/2 "2021-05-06T20:43:33Z")

</div>

That requires a calculation, which can be done in CL using either numericValue( ) or simpleFunction( ).evaluateAt( ). If you use numericValue, you’ll want to round it (and the student input):

```auto
correct: a=numericValue(`\round(\sqrt{5}/13,2)`)...
a = numericValue(`\round(${table1.cellNumericValue(1,2)},2)`)

```

Using the latter can generally make better comparisons without rounding, but looks like a bit much:

```auto
correct: a=simpleFunction(`\sqrt{5}/13`).evaluateAt(0)...
a = simpleFunction(`${table1.cellNumericValue(1,2)}`).evaluateAt(0)

```

---

<div class="post-metadata">

**Author:** ![Burton\_Shields](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/burton_shields/32/842_2.png) [@Burton\_Shields](https://cl.desmos.com/u/Burton_Shields)\
**Post date:** [May 6, 2021, 11:34pm UTC](https://cl.desmos.com/t/check-a-table-value-with-a-sqrt/3245/3 "2021-05-06T23:34:07Z")

</div>

Worked. Thanks. Burton
