Ask Your Question

Dave's profile - activity

2022-07-04 13:44:59 +0200 received badge  Popular Question (source)
2018-05-26 02:02:38 +0200 received badge  Editor (source)
2018-05-26 01:54:15 +0200 received badge  Scholar (source)
2018-05-26 01:54:10 +0200 received badge  Supporter (source)
2018-05-26 01:53:56 +0200 commented answer Sum using coefficients of a expansion

Thank you! I ended up doing a for loop and it worked so your explanation makes sense, I will implement it. Big fan of your work on SageManifolds by the way, thank you for that too.

2018-05-25 07:41:31 +0200 received badge  Student (source)
2018-05-24 22:38:43 +0200 asked a question 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?