Closed FoggyFinder closed 8 years ago
Yes, indeed - thanks!
Would we still want to keep the parentheses?
I agree - they are redundant
Yes, let's drop them in this case (controlled by priorities).
So we'd expect parentheses for (x^y)^z
, but not for x^(y^z)
(when formatted as TeX)?
Would be great to have some more test cases for the unit tests in this area.
A matter of taste, I like both version:
I've changed the logic to emit braces rather aggressively, which should resolve this. The parenthesis are as before. Thanks again for reporting this.
I think in the output string in LaTeX format should be curly brackets ({ }) in the degree .
Example:
Print:
x^\left(4 + \sin{x}\right)
Display:
I think there should be this string:
x^{\left(4 + \sin{x}\right)}
Display: