Hi webwork friends,
I bumped into the following surprising MathQuill units issue today. The problem /Library/LoyolaChicago/Precalc/Chap6Sec1/Q28.pg asks you to enter a couple of things as numbers with units, and a couple of the things it wants are temperatures in Celsius, for which the correct unit is "degC". This is enforced by the answer checker in the following way:
ANS(NumberWithUnits("$mid","degC")->cmp() );
So then the issue is that if a student types in literally "degC", MathQuill renders "deg" into some internal representation of "degree", but then thinks that you are multiplying by the literal "C".
The usual workaround of clicking into text mode works fine (with the usual caveats). I just wonder if there's a way to get the NumberWithUnits parser to recognize "deg C" as equivalent to "degC", or to get MathQuill to recognize that "degC" is in itself a units string in certain contexts.
Thanks!
Spencer