-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
The MathQuill parser does not correctly prioritize exponentiation over trig function application.
Input: sin x sup 2
Output:
<OMA>
<OMS cd="arith1" name="power"/>
<OMA>
<OMS cd="transc1" name="sin"/>
<OMV name="x"/>
</OMA>
<OMI>2</OMI>
</OMA>
Expected output:
<OMA>
<OMS cd="transc1" name="sin"/>
<OMA>
<OMS cd="arith1" name="power"/>
<OMV name="x"/>
<OMI>2</OMI>
</OMA>
</OMA>
Steps we should take:
- Add a unit test to demonstrate this failure.
- Fix the definition in the source code.
- Ensure the new unit test now passes.
- Commit and push.
Metadata
Metadata
Assignees
Labels
No labels