Hello Amazing People!
I’m looking for a way to check the function name in a Math Response. We want to check that the student is using the correct name of the function:
If I ask you to write the slope intercept form of the function g, then the Math Response needs to begin with “g(x)=” and not “f(x)=” or “y=”
Any ideas? I know I can use simple function or xyline to check the slope and y-intercept. But I’m wondering if there’s a way to at least check what is on the left side of the equal sign if I can’t check the entire math response.
Sure - you can first parse the equation to extract the left and right sides, and then check that one of those sides matches g(x). Then you can use xyLine on the other side to check for correctness. Here is an example, let me know if you have questions. checking for g(x)= • Activity Builder by Desmos Classroom