Status: New Owner: ---- Labels: Type-Defect Priority-Medium New issue 1484 by fredrik.johansson: series should collect powers http://code.google.com/p/sympy/issues/detail?id=1484
>>> cos(1+x+x**2).series(x,0,5) x**4*sin(1)/2 - x*sin(1) - x**2*sin(1) - x**3*cos(1) - 11*x**4*cos(1)/24 - x**2*cos(1)/2 + x**3*sin(1)/6 + cos(1) + O(x**5) This is annoying. series should be clever enough to return something like cos(1) - sin(1)*x - (sin(1)+cos(1)/2)*x**2 + (sin(1)/6 - cos(1))*x**3 + (sin(1)/2 - 11*cos(1)/24)*x**4 + O(x**5) instead. Alternatively, or additionally, the printer could look out for when an Add contains an O(x**p) term and in that case print the terms in order of ascending powers of x. -- 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 sympy-issues@googlegroups.com To unsubscribe from this group, send email to sympy-issues+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sympy-issues?hl=en -~----------~----~----~----~------~----~------~--~---