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

MathQuill formats an answer in a way that is inconsistent with how WeBWorK interprets it #2209

Open
JeffAdler opened this issue Sep 12, 2023 · 4 comments · May be fixed by openwebwork/mathquill#28

Comments

@JeffAdler
Copy link

A student had a problem where the answer was along the lines of: a * sin(x). [Actually, it was a little more complicated, but let's not worry about that.]
When he typed "asin(x)", MathQuill displayed his answer as
a sin(x).
Notice that the leading constant is italicized, leading the student to believe that he has entered the correct answer. However, according to WW's answer preview, the system is interpreting the answer as involving arcsine.
So the issue here is not that WW is doing anything wrong: It's interpreting the answer as expected. Rather, MathQuill giving an incorrect display.

@drgrice1
Copy link
Sponsor Member

What needs to be decided is whether MathQuill is showing the wrong thing or is PG (or MathObjects specifically) interpreting the answer incorrectly. This comes down to should we support asin as an alternate notation for arcsin. Currently MathQuill does not support asin, but PG does. In my opinion asin should not be an alternate notation for arcsin. That is a computer science notation, but not a mathematical one.

@JeffAdler
Copy link
Author

Are people willing to change PG in this way? If so, then I agree that that seems like the best solution.

drgrice1 added a commit to drgrice1/mathquill that referenced this issue Apr 8, 2024
This fixes openwebwork/webwork2#2209.

This is built on top of openwebwork#27 (so that dist includes a build that won't
confict).
@drgrice1 drgrice1 linked a pull request Apr 17, 2024 that will close this issue
@Alex-Jordan
Copy link
Contributor

I don't think we can change PG to remove asin, unless we patrol for it in the OPL and find that it is not used much. But it seems likely that many problems might have things like Compute("asin(x)") in them.

@drgrice1
Copy link
Sponsor Member

Yeah, that is unfortunate. However, openwebwork/mathquill#28 gives another solution that works with PG allowing asin. However, students will not be able to enter asin when MathQuill is in use. They will need to use arcsin or sin^{-1} instead. With that pull request, if a student types asin then it will appear as a sin(x) and will be interpreted by PG in the same way.

drgrice1 added a commit to drgrice1/mathquill that referenced this issue Apr 26, 2024
This fixes openwebwork/webwork2#2209.

This is built on top of openwebwork#27 (so that dist includes a build that won't
confict).
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

Successfully merging a pull request may close this issue.

3 participants