Dear all,
I am new in webwork
could any one help me to the below problem
Context("Inequalities");
$f = Compute("|x| + $a"); is working
$f = Compute("|x| > $a"); is Not working
Please let me know how can it work
Thank in ADV.
Praveen
Hi, Praveen,
Your answer needs to be either: Compute("x<$a or x>$a"); or
Compute("(-inf,$a) U ($a,inf)");
In the first case, I believe WeBWorK recognized your expression as a Formula, but the Inequalites context is an alternative way of entering intervals.
--rac
Hi, Robin,
Thanks for quick response
But i want to enter in answer box by student as below
|x|<=6
For this i used code like this
Context("Inequalities");
$f = Compute("|x| >= $a");
It gives error as
'>=' should have a variable on one side and a number on the other; see position 5 of formula
AND it is OK with
Context("Inequalities");
$f = Compute("|x| + $a");
So please give me a solution for the same
With Regards,
Praveen