Comment #5 on issue 1678 by oscar.bristol: Incorrect latex formatting of
powers of square roots.
http://code.google.com/p/sympy/issues/detail?id=1678
I created issue 1691, an exact duplicate of this issue as I didn't notice
this one.
Initially, I misunderstood the code here. The problem, I believe, is mainly
that the
test condition for executing this code is inappropriate. The test matches
expressions
of type x**(n/2). I guess it was intended to match expressions of type
x**(1/n), in
which case $\sqrt[n]{x}$ would be appropiate latex code.
I've attached a patch that does this.
The difference between the attached patch and Jorn's patch above is whether
or not
e.g. x**(1/3) will be formatted as $\sqrt[3]{x}$ or $x^{\frac{1}{3}}$.
Attachments:
use-denominator-of-rational-power-as-root-degree.patch 729 bytes
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en
-~----------~----~----~----~------~----~------~--~---