The print ordering of Add has been improved.
commitbe47610848f878ca95bb89295fc9ae3ef25c3889
authorOndrej Certik <ondrej@certik.cz>
Sat, 22 Mar 2008 15:06:47 +0000 (22 16:06 +0100)
committerOndrej Certik <ondrej@certik.cz>
Sat, 22 Mar 2008 15:06:47 +0000 (22 16:06 +0100)
tree23325fc57ccc7549df8470e54a1096c35c71d6aa
parentd13d3e99e1bc445375f5259da8b8ffa5210acb94
The print ordering of Add has been improved.

Now it looks like this:

In [1]: sin(x).series(x, 0, 15)
Out[1]:
     3     5     7       9        11          13
    x     x     x       x        x           x
x - ── + ─── - ──── + ────── - ──────── + ────────── + O(x**15)
    6    120   5040   362880   39916800   6227020800

In [2]: str(sin(x).series(x, 0, 15))
Out[2]:
x - 1/6*x**3 + (1/120)*x**5 - 1/5040*x**7 + (1/362880)*x**9 - 1/39916800*x**11

 + (1/6227020800)*x**13 + O(x**15)

Before, it used to look like this:

In [1]: sin(x).series(x, 0, 15)
Out[1]:
    13         5                 9       7       11       3
   x          x                 x       x       x        x
────────── + ─── + O(x**15) + ────── - ──── - ──────── - ── + x
6227020800   120              362880   5040   39916800   6

In [2]: str(sin(x).series(x, 0, 15))
Out[2]:
x - 1/6*x**3 - 1/5040*x**7 - 1/39916800*x**11 + (1/120)*x**5 + (1/362880)*x**9

 + (1/6227020800)*x**13 + O(x**15)
sympy/core/add.py
sympy/core/basic.py
sympy/core/tests/test_str.py
sympy/functions/combinatorial/numbers.py
sympy/polynomials/base.py
sympy/polynomials/div_.py
sympy/polys/polynomial.py
sympy/printing/pretty/pretty.py
sympy/printing/tests/test_pretty.py
sympy/simplify/tests/test_rewrite.py
sympy/solvers/recurr.py