Status: Accepted
Owner: [email protected]
Labels: Type-Enhancement Priority-Medium Printing
New issue 2741 by [email protected]: Smart wrapping of pretty printed
expresions
http://code.google.com/p/sympy/issues/detail?id=2741
Right now, we don't do any smart wrapping of pretty printed expressions.
So you get stuff like:
In [13]: l = var('longvariablename')
In [14]: l**2 + l + 1 + + sqrt(l + cos(l) + l**2 + 100) + l/(1 + l -
sin(l)) + 10000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Out[14]:
2 longvariablename
longvariablename + longvariablename +
───────────────────────────────────────
longvariablename -
sin(longvariablename
___________________________________________________________________
╱ 2
───── + ╲╱ longvariablename + longvariablename + cos(longvariablename) +
100
) + 1
_
+
10000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000001
Notice how the fraction, long variable names, and square root are just
continued across the line. The printer should be smart and try to break
these things across multiple lines.
--
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.