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
Fix issue #10806 #10824
Fix issue #10806 #10824
Conversation
Better try a different approach: Integral shall have the same precedence as Atom (as it currently is in master) except for the LaTeX printer, where it shall have the same precedence as Mul. |
0df1a15
to
af17a1e
Compare
5e2e682
to
8b06281
Compare
@gxyd what do you think? |
One quick comment: issue with
I will look into it. |
That's an easy fix. Other atomic expressions that have a multiplication-like precedence in LaTeX? |
Also Derivative, Sum, Product are affected. |
def parenthesize(self, item, level, strict=False): | ||
# Integral has the precedence of Mul in LaTeX, the precedence of Atom | ||
# for other printers: | ||
from sympy import Integral, Sum, Product, Derivative |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here Limit
can also be added.
I like the approach of the PR. Everything looks fine, except one issue i have. In "terminal"
No brackets are put around |
+1. Probably that is unrelated to the PR. Will merge in 12 hrs. |
Maybe it's an issue in the unicode printer? |
Sorry, in the pprint, not in the unicode printer. |
@gxyd I have a fix for your issue. Will post a new PR as soon as this one is merged. |
Yes, that is a issue in
Okay, that will be good. |
Thanks @Upabjojr merging this. |
#10806