pretty: draw negative powers in denominator nicely
commit5e1c786079b2432ad0b0e133156aca473559daec
authorKirill Smelkov <kirr@landau.phys.spbu.ru>
Sat, 24 Nov 2007 14:16:00 +0000 (24 17:16 +0300)
committerKirill Smelkov <kirr@landau.phys.spbu.ru>
Sat, 24 Nov 2007 14:16:00 +0000 (24 17:16 +0300)
treef43b0a631a273c3e0ccd4749eaf4ec25635f0d07
parentc686cbc5ed295f5f2169668ca45634a43ba29e65
pretty: draw negative powers in denominator nicely

e.g.

y*x**-2 :

    y
    --
     2
    x

sin(x)**3 / cos(x)**2  :

       3
    sin (x)
    -------
       2
    cos (x)

------------------------------

And previously we did (which is ugly):

sin(x)**3 / cos(x)**2  :

       -2       3
    cos  (x)*sin (x)
sympy/printing/pretty.py
sympy/printing/tests/test_pretty.py
sympy/printing/tests/test_pretty_unicode.py