# Having desmos access accuracy for inequalities

**URL:** <https://cl.desmos.com/t/having-desmos-access-accuracy-for-inequalities/1104>\
**Category:** Questions\
**Tags:** simplefunction\
**Created:** [June 4, 2020, 5:26pm UTC](https://cl.desmos.com/t/having-desmos-access-accuracy-for-inequalities/1104 "2020-06-04T17:26:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Micah\_Baldree](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/micah_baldree/32/387_2.png) [@Micah\_Baldree](https://cl.desmos.com/u/Micah_Baldree)\
**Post date:** [June 4, 2020, 5:26pm UTC](https://cl.desmos.com/t/having-desmos-access-accuracy-for-inequalities/1104/1 "2020-06-04T17:26:34Z")

</div>

I want students to write in the domain and range of a function in inequality notation. Is there a way for desmos to assess the correctness of this out side of writing this:

when it comes to normal problems this is what I normally use:  
f = simpleFunction(“-1”)  
value = simpleFunction(input8.latex).evaluateAt(9)  
correct = when f.evaluateAt(9)=value “Correct” otherwise “Not there yet, keep working”  
content: “Solve for the missing variable  
`8n-8n=-5(n+12)+4(3-11n)`  
Your answer: ${correct}.”

Is there a way to do something similar for an answer that looks like this: `2<x<=3`

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [June 4, 2020, 9:44pm UTC](https://cl.desmos.com/t/having-desmos-access-accuracy-for-inequalities/1104/2 "2020-06-04T21:44:26Z")

</div>

There is this thread:

> [@Correctness checking the domain](https://cl.desmos.com/t/correctness-checking-the-domain/418):
>
> I want students to restrict the domain of a function in a graph between -2 and 4. So the correct answer would be f(x)=2x+3 {-2 ≤ x ≤ 4}. Is there a way to check this and have it display a checkmark in the dashboard?

I tried something with rawExpression and with simpleFunction, but couldn’t get the restrictions to work using the CL.
