Sum of series (infinity upper limit), only want odd number
13 views (last 30 days)
Show older comments
Federica Miano
on 23 Sep 2021
Commented: Federica Miano
on 23 Sep 2021
I am trying to compute this function:
Were all the parameters are constant values, except for z and y which are known vectors. I guess I could use symsum function, but I don´t know how to specify that I only want odd value of the parameter n.
Any suggestions?
0 Comments
Accepted Answer
Walter Roberson
on 23 Sep 2021
syms N y h w z
Pi = sym(pi);
symsum(1/(2*N-1) * (1 - cosh((2*N-1)*Pi*y/h)/cosh((2*N-1)*Pi*w/(2*h))) * sin((2*N-1) * Pi * z/h), N, 1, inf)
except for z and y which are known vectors
Be careful when using symbolic expressions and vectors. What does it mean to divide one vector by other for your purposes? You have to be careful with the multiplication too -- the part inside [] is a vector the same size as y, and the sin() is a vector the same size as z, but is algebraic matrix mutliplication implied?
More Answers (0)
See Also
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!