Badly formed expressions

With MathQuill and the extra work you’ve done, students rarely enter badly formed expressions. But, students’ creativity is unlimited. :slight_smile:

Today I had one who put a comma under a square root sign instead of after it. If I had had the showPreview attribute on, that would have caught the problem and displayed “Invalid expression: Expecting }” which is maybe not the clearest message, but is better than what did happen without the showPreview, which is that they hit submit with what looked like the 2 correct answers, and just got back “Incorrect”.

Maybe I should get in the habit of turning showPreview on on anything more complicated than a single number? Or what do people think about if there’s a way for the message after hitting submit to say something like “Badly formed expression” or even just “Invalid” instead of “Incorrect” when that’s the issue?

Chrissy

That’s an interesting idea: to have some indication if a student’s response can’t be parsed as mathematics.

If we did something like that, what would be the criteria for triggering this indication? Clearly, not being able to parse the answer would qualify. But, what about answers that can be parsed but aren’t complete mathematical expressions, such as a/ or a^? We could have it be triggered by any expression that has a “blank” in it (unless matchBlanks was specified).

The second question is: what should this indication look like? If we have a full check-work button, we could make the button say “Invalid” or something like that. If we have the small check-work button, what should it have? :face_with_crossed_out_eyes:, :bomb:, :collision:, :skull:, :skull_and_crossbones:, :warning: (I’m not vary emoji-savvy, so I’m not sure of the implications of these symbols. I’d probably choose the :warning: to be safe.)

Yes, both invalid and incomplete expressions would be great! The warning icon you suggest is similar to what Desmos and at least one other system use.

The Desmos icon is blue and white while they’re still typing, orange if they’ve moved away, so I think the yellow exclamation mark after hitting submit would be great. And if the “Invalid” full check-work button turned the same color, the connection/meaning would quickly be made: green check correct, red x incorrect, and yellow exclamation mark something entered that can’t be parsed.

I added a request for this feature.

1 Like