ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 24 May 2018 02:40:44 +0200Sum using coefficients of a expansionhttps://ask.sagemath.org/question/42416/sum-using-coefficients-of-a-expansion/I'm trying to sum over the coefficients of an expansion but the sum gives zero. I use the taylor method to expand a function f:
f=sin(x)
ft=f.taylor(x,0,6)
then I need to use the coefficients in a sum, but if I for example do the following:
sum(x^(i)*ft.coefficient(x,i),i,0,5)
I get zero. Any idea why this is happening?DaveThu, 24 May 2018 02:40:44 +0200https://ask.sagemath.org/question/42416/