Issue 414: series bug: leadterm is wrong
http://code.google.com/p/sympy/issues/detail?id=414
Comment #2 by ondrej.certik:
In [1]: var("a")
Out[1]: a
In [2]: e=1/((a + x)**3 - a**3)*(a + (a + x)**2 - (1 + a)*(a + x))
In [3]:
In [4]: e.series(x, 4)
Out[4]:
2 2 3 3 4 4 5
6
1 x 1 2⋅x x x x 2⋅x x x 28⋅x
─── + ──── - ──── - ──── - ──── + ──── + ──── - ───── - ───── + ───── -
─────
3⋅a 3 2 4 3 5 4 5 6 6
7
3⋅a 3⋅a 9⋅a 9⋅a 9⋅a 9⋅a 27⋅a 27⋅a 27⋅a 81⋅a
6
28⋅x
+ ───── + O(x**7)
8
81⋅a
In [5]: e.series(x, 4).leadterm(x)
Out[5]:
⎛ 1 1 ⎞
⎜─── - ────, 0⎟
⎜3⋅a 2 ⎟
⎝ 3⋅a ⎠
The test is effectively this limit:
http://git.sympy.org/?p=sympy.git;a=commitdiff;h=e2b3b416bb126fe81ab4f2acef861b982a5ef78e
Issue attribute updates:
Status: Fixed
--
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
-~----------~----~----~----~------~----~------~--~---