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

Give explicit multiplication the special mq_precedence as well. #1174

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

drgrice1
Copy link
Member

@drgrice1 drgrice1 commented Jan 9, 2025

Implied multiplication * currently has the precedence of 2.9 when MathQuill is used. This means that (x-3)/4 (x+8)/7 is interpreted as \frac{(x-3)}{4} * \frac{(x+8)}{7}.

However, (x-3)/4 * (x+8)/7 is interpreted as
\frac{\frac{(x-3)/4 * (x+8)}{7}. That should also be interpreted as \frac{(x-3)}{4} * \frac{(x+8)}{7} and is with the mq_precendence for * also set to 2.9.

Note that @dpvc mentioned considering changing this precedence in general and dropping the special mq_precedence. Should this be considered? See #1107 (comment) and the discussion after it. Although, does that still apply with the * operator?

@drgrice1 drgrice1 force-pushed the explicit-multiplication-mq-prec branch from 9677109 to 79f9625 Compare January 14, 2025 22:04
Implied multiplication ` *` currently has the precedence of 2.9 when
MathQuill is used.  This means that `(x-3)/4 (x+8)/7` is interpreted as
`\frac{(x-3)}{4} * \frac{(x+8)}{7}`.

However, `(x-3)/4 * (x+8)/7` is interpreted as
`\frac{\frac{(x-3)/4 * (x+8)}{7}`.  That should also be interpreted as
`\frac{(x-3)}{4} * \frac{(x+8)}{7}` and is with the mq_precendence for
`* ` also set to 2.9.
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 this pull request may close these issues.

2 participants