Hello guys,
I was just playing around with the Shanks transformation of a power series, when I noticed that polynomials aren't evaluated as I would expect.
I created this minimal working example; the function s should evaluate for z=0 to a[0], however it return simply 0.
Is there something I messed up?
> |

|
> |
![s := proc (n, z) options operator, arrow; sum(a[k]*z^k, k = 0 .. n) end proc;](/view.aspx?sf=212971_question/24db421b0a12afc3ee8e84092a49b6cf.gif)
|
![proc (n, z) options operator, arrow; sum(a[k]*z^k, k = 0 .. n) end proc](/view.aspx?sf=212971_question/821150c49b7399ac5daadb8974c584a3.gif)
|
(1) |
> |

|
![series(a[0]+a[1]*z+a[2]*z^2+a[3]*z^3+a[4]*z^4+a[5]*z^5+O(z^6),z,6)](/view.aspx?sf=212971_question/4316179dd660f685d9f8df3759c993b6.gif)
|
(2) |
The value of s in z=0 should be a[0], however it returns 0:
> |

|

|
(3) |
> |

|

|
(4) |
|
Download evaluate_sum.mw
Thanks for your help,
Sören