Question: The requirements for each problem is listed below each problem. PLEASE LOOK AT ALL IMAGES. THANK YOU 3 . 6 The infinite series f (

The requirements for each problem is listed below each problem. PLEASE LOOK AT ALL IMAGES. THANK YOU
3.6 The infinite series
f(n)=i=1n1i4
converges on a value of f(n)=490 as n approaches infinity. Write a program in single
precision to calculate f(n) for n=10,000 by computing the sum from i=1 to 10,000. Then
repeat the calculation but in reverse order-that is, from i=10,000 to 1 using increments of -1.
In each case, compute the true percent relative error. Explain the results.
REQUIREMENTS FOR PROBLEM 1.
(1) Write a macro in Excel VBA in single precision to compute f(n) for n=10,000 by computing the sum from i=1 to 10,000;
(2) Revise the macro in Excel VBA in single precision to compute f(n) for n=10,000 by computing the sum from i=10,000 to 1 using increments of -1;
(3) In each case, compute the true percent relative error;
for both cases)
(4) Explain the results.
3.7 Evaluate e-5 using two approaches
e-x=1-x+x22-x33!+....
and
e-x=1ex=11+x+x22+x33!+cdots
and compare with the true value of 6.73794710-3. Use 20 terms to evaluate each series and compute true and approximate relative errors as terms are added.
REQUIREMENTS FOR PROBLEM #2
(1) Write a macro in MatLab for using the first approach. Evaluate the values of the series of e-x up to 20 terms;
(2) Revise the macro in MatLab for using the second approach. Evaluate the values of the series of e-x up to 20 terms;
(3) In each case, compute the true and approximate relative error as terms are added;
(4) Explain the results.
The requirements for each problem is listed below

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!