On 1/26/07, Hugo Coolens <coolens at kahosl.be> wrote:
> Could anyone explain here which steps are needed to simplify the results
> of the following function
>
> tpald(m):=product(1+4*s*(cos((k*%pi)/(2*m+1)))^2,k,1,m)-s^m;
>
> I know e.g. that the result for m=2 should be 1+3s, for m=3 it should be
> 1+5*s+6*s^2 ...
> but I can't find the correct steps to make maxima give me those results
>
> any help welcome
>
> hugo
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>
Hello Hugo,
use trigrat:
(%i1) tpald(m):=product(1+4*s*(cos((k*%pi)/(2*m+1)))^2,k,1,m)-s^m$
(%i2) trigrat(tpald(2));
(%o2) 3*s+1
(%i3) trigrat(tpald(3));
(%o3) 6*s^2+5*s+1
Andrej