Issue 412: series bug: 1/x - (x**(-3)-1)**Rational(1,3) returns only one  
term
http://code.google.com/p/sympy/issues/detail?id=412

Comment #4 by ondrej.certik:
It works:

In [1]: e = 1/x - (x**(-3)-1)**Rational(1,3)

In [2]: e.series(x, 4)
Out[2]:
                         ⎽⎽⎽⎽
                  3     ╱ 1
                 x ⋅   ╱  ──
          ⎽⎽⎽⎽      3 ╱    3
1       ╱ 1        ╲╱    x
─ -    ╱  ──  + ──────────── + O(x**(17/3)*(x**(-3))**(1/3))
x   3 ╱    3         3
     ╲╱    x


But the exponent in the O() term is weird, it should be more simplified.

One can achieve some simplification using:

In [1]: x = Symbol("x", positive=True)

In [2]: e = 1/x - (x**(-3)-1)**Rational(1,3)

In [3]: e.series(x, 4)
Out[3]:
  2
x
── + O(x**(14/3))
3

But this should return more terms:

In [7]: e.series(x, 100)
Out[7]:
  2
x
── + O(x**(14/3))
3




Issue attribute updates:
        Summary: series bug: 1/x - (x**(-3)-1)**Rational(1,3) returns only one 
term
        Status: Started

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to