# Pulling an inequality input from a math field into a graph

**URL:** <https://cl.desmos.com/t/pulling-an-inequality-input-from-a-math-field-into-a-graph/5519>\
**Category:** Questions\
**Created:** [April 3, 2024, 5:25pm UTC](https://cl.desmos.com/t/pulling-an-inequality-input-from-a-math-field-into-a-graph/5519 "2024-04-03T17:25:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Savannah\_Eng](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/savannah_eng/32/4518_2.png) [@Savannah\_Eng](https://cl.desmos.com/u/Savannah_Eng)\
**Post date:** [April 3, 2024, 5:25pm UTC](https://cl.desmos.com/t/pulling-an-inequality-input-from-a-math-field-into-a-graph/5519/1 "2024-04-03T17:25:21Z")

</div>

Currently, I can pull an equation from a math field into a graph. However, when students put in an inequality, it will not allow the graph to change if the student puts a \<,\> or \<=, \>=. Basically, the dotted or solid will not change even if the students change the sign; it is dependent on my code instead of the student input.

**Computation Layer Script**  
#graphing line from line1 to give all =100  
function(“f\_1”): parseEquation(line1.latex). differenceFunction(“x”,“y”)

#graphing line from line2 to give all not =100  
function(“f\_2”): parseInequality(line2.latex). differenceFunction(“x”,“y”)

**Graph inputs**  
0 = f\_1 (x,y)  
0 \> f\_2 (x,y)

---

<div class="post-metadata">

**Author:** ![Daniel\_Wekselgreene](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_wekselgreene/32/1819_2.png) [@Daniel\_Wekselgreene](https://cl.desmos.com/u/Daniel_Wekselgreene)\
**Post date:** [April 3, 2024, 6:01pm UTC](https://cl.desmos.com/t/pulling-an-inequality-input-from-a-math-field-into-a-graph/5519/2 "2024-04-03T18:01:27Z")

</div>

Here’s an example that you can look at that may help. Feel free to ask if you have questions.

> **[Self-checking linear inequality template • Activity Builder by Desmos Classroom](https://teacher.desmos.com/activitybuilder/custom/649df4b72481f7847f0ea148)**
>
> In the CL of the graph, you can change the original problem and the number of tries you want to give.
