I need some help. I got this question that im trying to answer......Please let me know How you would do this problem. I am so lost.
Leibnitz (the other Calculus guy) proved that the following infinite alternating series converges (very slowly) to pi. You are going to investigate just how slowly.
Create a function named partsum, that calculates the sum of a given number of terms (i.e., the Nth partial sum)
In the function, create a vector of terms (sequence) that is then added to determine the sum. The function should take as input a scalar N (not a vector) and return two outputs, the sum and the vector of terms.
In my .m file I will need to call the function for the values N = 5, 50, 500, and 5000, and determine the error for each. Use the table function to report your results.
Your output to the console should look like this:
Please let me know ASAP