I want the student to enter an equation with infinite or no solutions in a math response box. How do I check if they have done that?
What sort of equation in particular? If you are talking about quadratic equations then you can parse these and apply the usual tests on the coefficients - we can share examples if that’s what you’re talking about.
If you mean you want to catch any equation with no solutions (sin x = 5, 7^x=-0.3, …) or infinite solutions then I’m pretty sure this is not possible.
Sorry linear equation in one variable like x = x or 2x = 2x or 4x + 4 = 2(x + 2) for infinite solutions once I get that figured out I can probably get the no solutions from that.
Here is a method that should work. Treat each side of the equation like a linear equation, and compare to see if slopes and intercepts are same or different. infinite or no solution • Activity Builder by Desmos Classroom
i may be mistaken, but cant every equation have some form of a solution?
Some equations will have no solution. I.E. x + 5 = x + 6. There is no value for x that will make this statement true, r infinite solutions x = x every value for x will make the solution true, or x + 4 = 4x - 8; x = 4 (one solution)
Thanks. This works perfectly. I’m new to computational layer, so I didn’t think of being able to do this.
No problem. It’s quite different from a typical programming language so you often have to think in different ways / out of the box to come up with a solution.