Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with MathQuill and answers comparing to the string "infinity" #1000

Open
dlglin opened this issue Dec 9, 2022 · 0 comments
Open

Issues with MathQuill and answers comparing to the string "infinity" #1000

dlglin opened this issue Dec 9, 2022 · 0 comments

Comments

@dlglin
Copy link
Member

dlglin commented Dec 9, 2022

This was motivated by Library/Utah/Calculus_II/set6_Indeterminate_Forms_and_Improper_Integrals/set6_pr3.pg.

If a problem is coded to explicitly look for the string "infinity" (for example using str_cmp) and MathQuill is enabled, then students get some counterintuitive behaviour. When they start typing the word infinity, they get to inf and it is replaced with the infinity symbol. In such a circumstance if they submit their answer it is marked wrong because MQ submits the string "inf". This is not an issue with MathObjects since "inf" is an alias for "infinity" in the Numeric context.

There are some workarounds, such as instructing students to use the text mode in MQ, typing "INFINITY" in all caps or continuing to type the word infinity despite the substitution (i.e. "∞inity" is marked right), but the right approach is to convert these questions to MathObjects and work on eliminating str_cmp (and other outdated answer checkers) from the OPL.

I'm going to poke around the OPL to see if I can find which problems have this issue, but it's not just a simple grep since "infinity" could be stored in a variable on a different line. I'll post what I find here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant