Consider the sequence (wn) defined recursively by
w2 = 3
wn = (wn-1 (1 - 0.02)) - 2(n + 1)/ n2 for n >= 3.
Write a MATLAB program to compute wn for n = 2, 3, 4, . . . , 10 and display the values n
and wn in two columns with appropriate headings. The program should also compute
and display the sum å10∑10\sum 10
∑10 i=2 wi
Comments
Leave a comment