# Using parseEquation in a table to check equations?

**URL:** <https://cl.desmos.com/t/using-parseequation-in-a-table-to-check-equations/5265>\
**Category:** Questions\
**Tags:** validation, correctness\
**Created:** [December 4, 2023, 3:58pm UTC](https://cl.desmos.com/t/using-parseequation-in-a-table-to-check-equations/5265 "2023-12-04T15:58:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Malgorzata\_Demkow](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/malgorzata_demkow/32/4659_2.png) [@Malgorzata\_Demkow](https://cl.desmos.com/u/Malgorzata_Demkow)\
**Post date:** [December 4, 2023, 3:58pm UTC](https://cl.desmos.com/t/using-parseequation-in-a-table-to-check-equations/5265/1 "2023-12-04T15:58:45Z")

</div>

Hoping to get some more help! I am working on Midpoint Formula with my students and I want to be able to check each step of their work. I am currently using this.latex to check each step in the table, but I have come across too many versions of the equation to have to type in order to check each option. I was wondering if there was a way to use parseEquation to check for equivalent equations within the table for this assignment:

> **[Midterm Formula Need Help • Activity by Malgorzata Demkow](https://classroom.amplify.com/activity/656df5a5de7f5e56d3885e1c)**
>
> by Malgorzata Demkow

This is the code I am currently using:

correct: this.cellContent(1,3)=“✔” and this.cellContent(1,5) =“✔” and this.cellContent(2,3)=“✔” and this.cellContent(2,5)=“✔” and this.cellContent(3,3)=“✔” and this.cellContent(3,5)=“✔”

cellContent(1,3):  
when (this.cellContent(1,2) =“\frac{-1+x}{2}=-9” or this.cellContent(1,2)=“\frac{x±1}{2}=-9”)“✔”  
otherwise “”

cellContent(1,5):  
when (this.cellContent(1,4) =“\frac{9+y}{2}=-10” or this.cellContent(1,4) =“\frac{y+9}{2}=-10”)“✔”  
otherwise “”

cellContent(2,3):  
when (this.cellContent(2,2)=“-1+x=-18” or this.cellContent(1,4) =“x±1=18”)“✔”  
otherwise “”

cellContent(2,5):  
when (this.cellContent(2,4) =“9+y=-20” or this.cellContent(1,4) =“y+9=-20”)“✔”  
otherwise “”

cellContent(3,3):  
when this.cellContent(3,2)=“x=-17” “✔”  
otherwise “”

cellContent(3,5):  
when this.cellContent(3,4) =“y=-29” “✔”  
otherwise “”

cellDisableEvaluation(1,2): true  
cellDisableEvaluation(1,4): true  
cellDisableEvaluation(2,2): true  
cellDisableEvaluation(2,4): true  
cellDisableEvaluation(3,2): true  
cellDisableEvaluation(3,4): true

---

<div class="post-metadata">

**Author:** ![Malgorzata\_Demkow](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/malgorzata_demkow/32/4659_2.png) [@Malgorzata\_Demkow](https://cl.desmos.com/u/Malgorzata_Demkow)\
**Post date:** [December 4, 2023, 4:04pm UTC](https://cl.desmos.com/t/using-parseequation-in-a-table-to-check-equations/5265/2 "2023-12-04T16:04:56Z")

</div>

Also… if there is a way to make the check column thinner so that the columns where the equations go could be wider and someone knows of a hack, that would be awesome too!

---

<div class="post-metadata">

**Author:** ![SteinSchreiber](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/steinschreiber/32/2267_2.png) [@SteinSchreiber](https://cl.desmos.com/u/SteinSchreiber)\
**Post date:** [December 5, 2023, 4:51pm UTC](https://cl.desmos.com/t/using-parseequation-in-a-table-to-check-equations/5265/3 "2023-12-05T16:51:53Z")

</div>

This will get you pretty close to what you want. Note if the student mistakenly uses x for y it may still mark it correct. For dealing with column width I used cellSuffix to mark correct.

> **[\[Copy of\] Midterm Formula Need Help • Activity Builder by Desmos](https://teacher.desmos.com/activitybuilder/custom/656e1d646108b482dc52b91c)**
>
> by Stein Schreiber

---

<div class="post-metadata">

**Author:** ![Malgorzata\_Demkow](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/malgorzata_demkow/32/4659_2.png) [@Malgorzata\_Demkow](https://cl.desmos.com/u/Malgorzata_Demkow)\
**Post date:** [December 5, 2023, 5:08pm UTC](https://cl.desmos.com/t/using-parseequation-in-a-table-to-check-equations/5265/4 "2023-12-05T17:08:41Z")

</div>

Thank you so much! I didn’t even think to use suffix in the table. This will be great for future assignments I plan to do. Thanks so much for taking the time!
