Consider the following inequality depending on m in R and of unknown x : m*x<-3

The mathematical result is that depending on the parameter m, the solution set is an interval (may be empty) or union of intervals of R.

I would like to know what is the best way to treat the student's answer for this problem with stack plugin.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

** First idea:** we expect an answer of the type:

"if(m=0,{},if(m>0,x<-3/m,x>-3/m)"

but I can't find this expression working in maxima.

They expect expression for the 2nd and 3rd argument of the "if" command and it becomes difficult for the student to understand the syntax.

** Second idea:** a sequence of logical expressions:

(m>0 and x<=-3/m) or (m<0 and x>=-3/m)

but this expression doesn't show if the student considered the case m=0.

** Third idea:** handle dynamic input answers, so that for each new case on m, the student add two input boxes and enter the value of m in the fist box and a sequence of logical expression (x>-3/m) in the second box the define the interval.

But I don't know if these "dynamics" boxes is possible.

One could say that we expect the student to deal with a fix number of boxes but he would know the number of case and I would like to avoid it.