You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The renderer in oximo-expr uses precedence alone in places where associativity also matters. For example, x / (y / z) and x / (y * z) lose their denominator parentheses. Also, a power used as another power's base can also lose grouping. This changes the apparent meaning of displayed models and error messages.
A possible solution would be to make the rendering context distinguish the denominator of a division and the base of a power from other operands. Parenthesize compound denominators and nested power bases when omitting parentheses changes the grouping. We can check unary negatives and negative constants used as power bases as well. We need to retain the explicit traversal stack so deeply nested expressions remain stack-safe.
Additional context
This issue is tagged good first issue specifically to help new contributors get hands-on with the codebase and wants to contribute in the long term. Please do not use AI for this issue.
Activity
ShahadatTest commentedon Nov 3, 2026