WeBWorK Problems

Checking Quadratic Equations

Checking Quadratic Equations

by Paul Seeburger -
Number of replies: 2
I had a great time using ImplicitPlane to check linear equations in systems of equations word problems, but now I want to check a quadratic equation.  Is there a way to do this yet?  ImplicitPlane indicates that the equation must be linear for it to work.

I guess I can make one side of the equation be the a constant other than 0 and the other side would be unique, but it would be helpful if there were a way to check a more general equation.

Does this functionality exist yet?


In reply to Paul Seeburger

Re: Checking Quadratic Equations

by John Jones -
You could try equation_cmp from extraAnswerEvaluators.pl.  I haven't used it in a long time (so other changes in webwork may affect how well it functions), but was an attempt to do a sort of general equation checking using function comparison with undetermined parameters.


In reply to John Jones

Re: Checking Quadratic Equations

by Paul Pearson -
Hi Paul,

If a quadratic polynomial has real roots and you make the domain of function evaluation large enough and also specify some known solutions to the equation, then you should be able to use parserImplicitEquation.pl and get robust answer checking:


Best regards,

Paul Pearson