Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a MATLAB program to compute an approximation of the infinite series for_n=

ID: 1715786 • Letter: W

Question

Write a MATLAB program to compute an approximation of the infinite series for_n=1^infity1/n(n+1) for N term partial sum of the infinite series is_n+1^n 1/n(n+1) Using element by element operations on arrays and MATLAB's built in sum function. Using iteration (for loop) and scalar operations. Do not use element by element operations on arrays or MATLAB's built in sum function for this version. Compare the two series approximation results to the limit of the series. This series is a telescoping series and the limit as N approaches is infinity is lim n rightarrow infity_n=1^n 1/n(n+1)=lim N rightarrow infity (1-1/N-1) = 1 Your program should display the series approximations and how close the approximations are to the limit of the series.

Explanation / Answer

The matlab program is as follows:

  n=1:35;
for i=1:35
N(i)= 1/(n(i)*(n(i)+1));
end
Series = sum(N)

The answer found by running the above program is 0.9722

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote