MATLAB: How to write matlab commands for partial sums

matlab commandspartial sumssummation

I am trying to write this function in matlab and am having trouble, can someone help?

Best Answer

syms x i
symsum((-1)^i*x^(2*i+1)/factorial(2*i+1), i, 0, inf)
Related Question