# How to check equation input of students

Hello Everyone, I want to learn how to check equation input in desmos activities. The answer of the question will be 3x+4=21 for example. When the student writes this answer, she will get immediate feedback by smile emoji
Thank you
Pınar

Hi Pinar! Here is an example of one way to check equation inputs:

Instead of checking for the exact equation 3x+4=21, it looks for any equation with x=17/3 as a solution. This way, students can enter something slightly different like 21=4+3x without being marked incorrect. I hope that helps!

Your intended purpose is a little important here. Is it for representing a word problem? In which case, using the particular values are important, but you might want to allow for commutative answers. You can add something like:

``````...and countNumberUsage(this.latex,3)=1 and countNumberUsage(this.latex,4)
and countNumberUsage(this.latex,21)=1 and countNumberUsage(this.latex)=3
``````

This will check that those particular numbers (not digits) are being used once each in the answer, and there are only 3 numbers total used. Alternatively, look into some pattern matching, which can get complex.

Thank you for your help. I wrote all the possible answers including commutatives. I really meant any equation with x=17/3. Thank you again

I wrote all the possible answers including commutatives, I realized that there must be a way other than this because ther can be alternative answers from students that I did not include as a correct answer. Thank you for the help, I appreciate.

``````numericValue(`\round( \${parseEquation(input.latex).differenceFunction("x").evaluateAt(numericValue(`17/3`))},3)`)=0
Thank you a lot for different solution ways 