this is the question:
Consider the sum A inferred by the following:
A = 1 -1/4 + 1/9 - 1/16 + 1/25...
If the 1st term is t1 = 1 and the 2nd term is t2 = -1/4, use MATLAB to determine the sum
of terms at the 57th term (i.e. including the 57th term). Give answer to 4 decimal places. Also, provide MATLAB code.
this is my Matlab code but its not giving me the answer i expect. please help me with this. thank you
syms n x