Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 4132 by [email protected]: evaluating series() twice for a generic function fails
http://code.google.com/p/sympy/issues/detail?id=4132

Here is the problem:

In [1]: from sympy import *

In [2]: f=Function("f")

In [3]: x=Symbol('x')

In [4]: a=Symbol('a')

In [5]: series(f(x),x,a)
Out[5]: f(a) + x*Subs(Derivative(f(_xi_1), _xi_1), (_xi_1,), (a,)) + x**2*Subs(Derivative(f(_xi_1), _xi_1, _xi_1), (_xi_1,), (a,))/2 + x**3*Subs(Derivative(f(_xi_1), _xi_1, _xi_1, _xi_1), (_xi_1,), (a,))/6 + x**4*Subs(Derivative(f(_xi_1), _xi_1, _xi_1, _xi_1, _xi_1), (_xi_1,), (a,))/24 + x**5*Subs(Derivative(f(_xi_1), _xi_1, _xi_1, _xi_1, _xi_1, _xi_1), (_xi_1,), (a,))/120 + O(x**6)

In [6]: series(f(x),x,a)
Out[6]: f(a) + x*Subs(Derivative(f(_xi_1), _xi_1), (_xi_1,), (_x + a,)) + O(x**6)

If I used a specific function, e.g. cos(x), the problem does not appear.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to