# How to check if an equation in slope int form is correct?

**URL:** <https://cl.desmos.com/t/how-to-check-if-an-equation-in-slope-int-form-is-correct/4615>\
**Category:** Questions\
**Tags:** validation, correctness\
**Created:** [December 13, 2022, 6:26pm UTC](https://cl.desmos.com/t/how-to-check-if-an-equation-in-slope-int-form-is-correct/4615 "2022-12-13T18:26:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rjimenez](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/rjimenez/32/4008_2.png) [@rjimenez](https://cl.desmos.com/u/rjimenez)\
**Post date:** [December 13, 2022, 6:26pm UTC](https://cl.desmos.com/t/how-to-check-if-an-equation-in-slope-int-form-is-correct/4615/1 "2022-12-13T18:26:36Z")

</div>

Hello, I was wondering if anyone could help me check if an equation in slope intercept form is correctly written by students.  
ex: y= 3x+2

I am giving them a graph and having them identify slope and y-intercept, then they have to write the equation in slope intercept form. I don’t know how to make the math input check if they wrote it in right and currently have to check it manually.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![C\_Harper](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/c_harper/32/1526_2.png) [@C\_Harper](https://cl.desmos.com/u/C_Harper)\
**Post date:** [December 13, 2022, 6:41pm UTC](https://cl.desmos.com/t/how-to-check-if-an-equation-in-slope-int-form-is-correct/4615/2 "2022-12-13T18:41:10Z")

</div>

Slide 4 on this activity might help.

> **[12.3A Modeling Systems of Equations • Activity Builder by Desmos](https://teacher.desmos.com/activitybuilder/custom/600b7a5151e069427f5b2f32?collections=601f1901c83cea0ce7c67f27)**
>
> by Corri Harper

---

<div class="post-metadata">

**Author:** ![rjimenez](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/rjimenez/32/4008_2.png) [@rjimenez](https://cl.desmos.com/u/rjimenez)\
**Post date:** [December 13, 2022, 7:18pm UTC](https://cl.desmos.com/t/how-to-check-if-an-equation-in-slope-int-form-is-correct/4615/4 "2022-12-13T19:18:44Z")

</div>

Thank you! It really did help.

I didn’t want to give back feedback since I am using this for a quiz but I like that I have something I can use to give feedback in the future.

I took the code from that feedback and used it for the correctness on the actual math input section, which I called q3.

myline=xyLine(q3.latex)  
m=myline.slope  
b=myline.yIntercept

good= m=0.75 and b=0

correct: good
