Inequality help

I am trying to figure out he code to check when a student enters the correct inequality. Example
0.80x + 35 < 50

I want it allow things like .8x + 35


I have figured out how to code for a simple inequality like x<4, but this one has me stumped.

Here is a check for the inequality you provided:

The code that ensures the left-hand side (lhs) is correct is this:

check1=f1.evaluateAt(0)=35 and f1.evaluateAt(1)=35.8

The check evaluates the left-hand side expression for 2 values of x (since for a linear expression that is enough to ensure uniqueness). If you want to change the inequality, you need to change the check part. I hope this helps.

thanks so much! Will give this a try.