# Graphing inequalities using simpleFunction

**URL:** <https://cl.desmos.com/t/graphing-inequalities-using-simplefunction/49>\
**Category:** Questions\
**Tags:** simplefunction\
**Created:** [April 30, 2018, 12:46pm UTC](https://cl.desmos.com/t/graphing-inequalities-using-simplefunction/49 "2018-04-30T12:46:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andy\_Schwen](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/andy_schwen/32/218_2.png) [@Andy\_Schwen](https://cl.desmos.com/u/Andy_Schwen)\
**Post date:** [April 30, 2018, 12:46pm UTC](https://cl.desmos.com/t/graphing-inequalities-using-simplefunction/49/1 "2018-04-30T12:46:12Z")

</div>

I’m trying to use simpleFunction to graph an inequality range that was given as an input by students. It appears there is no way to get things like vertical lines or inequalities to graph using simpleFunction. Is that a current limitation or is there a better way to do this?  
I have an example of what I’ve tried on [slide 1 of this activity](https://teacher.desmos.com/activitybuilder/custom/58ebb954665e020a9fd84ea5)

---

<div class="post-metadata">

**Author:** ![Andy\_Schwen](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/andy_schwen/32/218_2.png) [@Andy\_Schwen](https://cl.desmos.com/u/Andy_Schwen)\
**Post date:** [April 30, 2018, 2:42pm UTC](https://cl.desmos.com/t/graphing-inequalities-using-simplefunction/49/2 "2018-04-30T14:42:27Z")

</div>

Found an answer to my question in slide 9 of the absolute value activity from Desmos.  
I used this and then had y=g(x) setup as a function in the graph:  
`function("g"): simpleFunction("g\\left(x\\right)=\\left\\{${input9.latex}:.4,\ 10\\right\\}")`

---

<div class="post-metadata">

**Author:** ![eric](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/eric/32/10_2.png) [@eric](https://cl.desmos.com/u/eric)\
**Post date:** [April 30, 2018, 2:50pm UTC](https://cl.desmos.com/t/graphing-inequalities-using-simplefunction/49/3 "2018-04-30T14:50:52Z")

</div>

Yeah - that’s probably the best move right now. We are still working on more flexible ways of parsing student math inputs, so that you can interpret inequalities, non-function relations, fractions, and other mathematical objects more flexibly.
