Comment #8 on issue 2359 by asmeurer: Ways to print Rationals so that they
are copy-pastable
http://code.google.com/p/sympy/issues/detail?id=2359
By the way, I think powers do denest if you do it in the right order:
In [3]: sqrt(x**3)
Out[3]: sqrt(x**3)
In [4]: sqrt(x)**3
Out[4]: x**(3/2)
So we could print Pow(expr, Rational(a, b)) as root(expr, b)**a, replacing
root() with sqrt() when b is +/- 2.
Another idea, which is probably a bad one, would be to always print bare
int/int as S(int)/int. This would make things more copy-pastable, but
probably less readable.
At any rate, we should make this root function regardless of what we do for
printing. I'll create a separate issue for it.
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.