On Jun 16, 2009, at 8:28 PM, Alasdair wrote:

> In Sage 3.4 (running in a linux console), I could enter
>
> print expand((1+1/x)^3)
>
> and receive a nice 2D ascii representation of the result.  In Sage
> 4.0.1, all I get is
>
> 3/x + 3/x^2 + 1/x^3 + 1
>
> What's happened to the pretty printing here?

The new symbolics doesn't have ascii art, which some people liked,  
but other found very annoying (especially for anything that didn't  
fit in 80 columns). You can still use maxima to get this (or sympy,  
though I'm not sure of the command needed.) E.g.

sage: print expand((1+1/x)^3)._maxima_()
                                 3   3    1
                                 - + -- + -- + 1
                                 x    2    3
                                     x    x

Even better,

sage: show(expand((1+1/x)^3))

- Robert


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to