# Table Check given equation

**URL:** <https://cl.desmos.com/t/table-check-given-equation/3738>\
**Category:** Questions\
**Created:** [October 12, 2021, 1:05am UTC](https://cl.desmos.com/t/table-check-given-equation/3738 "2021-10-12T01:05:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmparrish](https://avatars.discourse-cdn.com/v4/letter/m/ecd19e/32.png) [@mmparrish](https://cl.desmos.com/u/mmparrish)\
**Post date:** [October 12, 2021, 1:05am UTC](https://cl.desmos.com/t/table-check-given-equation/3738/1 "2021-10-12T01:05:10Z")

</div>

I would like to give students a proportional equation and then they can chose any x values they want to put into the table, and they would then find the y values. I want to have it self check but can’t figure out the coding. Any help would be appreciated.

---

<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:** [October 12, 2021, 1:25am UTC](https://cl.desmos.com/t/table-check-given-equation/3738/2 "2021-10-12T01:25:42Z")

</div>

A couple different strategies will work. You can use a graph or just the table. This is one method for the table (x in column 1, y in column 2):

```auto
f=simpleFunction(`3x`)
check1= this.cellNumericValue(1,2)=f.evaluateAt(this.cellNumericValue(1,1))
check2= this.cellNumericValue(2,2)=f.evaluateAt(this.cellNumericValue(2,1))
...

```

You can then use the different check variables for student feedback and/or the correct sink. If non-terminating decimal answers are expected, you may need to adjust to something like this:

```auto
check1= simpleFunction(`${this.cellContent(1,2)}`=f.evaluateAt(this.cellNumericValue(1,1))

```

There are some other checking methods as well.
