I want to create an assessment on solving quadratic equations. Is there a way to create checking of their answers so I can grade it? I was thinking of saying something like: The solution to (equations) are x=p and x= q, what is the product of p and q? (if the answers are rational) and doing something similar with (p ± q sqrt(r))/t. Are there any better idea?
It’s a function. It defaults in terms of x, but you can define multivariable functions or in terms of different variables. It will take any latex in the form of an equation “y=…”, function form “h(x)=…” (doesn’t need to be h), or an expression, but not implicit equations.
(So, you may actually need to replace “this.latex” with “parseEquation(this.latex).rhs” if it doesn’t work with “x=…”).
I don’t know the ins and outs of it, but simpleFunction( ).evaluateAt( ) and numericValue( ), which needs to be an expression without any unknowns, are not calculated in the same manner. It can lead to some minor variances, but enough to be nonequivalent.