Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 3554 by [email protected]: Error in function series()
http://code.google.com/p/sympy/issues/detail?id=3554
Hi all,
the Python code:
from sympy import *
x = symbols('x')
f = (1 / sqrt(1 + cos(x) * sin(x**2))).series(x, 0, 15)
print("{0}".format(f))
results in the following error message:
Traceback (most recent call last):
File "F:\Temp\sympy_bug.py", line 3, in <module>
f = (1 / sqrt(1 + cos(x) * sin(x**2))).series(x, 0, 15)
File "C:\Python27\lib\site-packages\sympy\core\expr.py", line 2344, in
series
assert s1.getn() == n
AssertionError
where as the Python code:
from sympy import *
x = symbols('x')
f = (1 / sqrt(1 + cos(x) * sin(x**2))).series(x, 0, 14)
print("{0}".format(f))
gives the result:
1 - x**2/2 + 5*x**4/8 - 5*x**6/8 + 4039*x**8/5760 - 5393*x**10/6720 +
13607537*x**12/14515200 + O(x**14)
Im using "Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit
(Intel)] on win32" on Windows 7 Ultimate.
Kind regards
Klaus
--
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.