Question: For f(x) = e^-x on the closed interval [0, 2]: a. Use Excel to plot the function on the indicated interval. b. Use the Excel
For f(x) = e^-x on the closed interval [0, 2]: a. Use Excel to plot the function on the indicated interval. b. Use the Excel VB editor to write a user defined function that will calculate the ith term in the Maclaurin series expansion for f(x) for given values of x and i. Show your code. c. Use the VB function from part b to estimate f(x) at x = 1.0 using only the first 4 terms in the series. Show the calculations on a spreadsheet. d. In your own words give definitions of the true error, the normalized true error, the computational error, and the normalized computational error. e. In using a numerical method to approximate the solution to an equation, why do we have to depend on the normalized computational error to decide when our approximation is adequate? f. What is the relationship between normalized computational error and significant figures? g. Develop a VB function that will use the Maclaurin series with a While...Wend loop to estimate f(x) at any value of x within the radius of convergence of the expansion and to a specified number of significant figures of accuracy. The module should return both the estimate of f(x) and the number of terms in the approximation. Show your code. h. By using the code in part g compute how many terms are required to get f(0.5) correct to 8 significant figures based on the normalized computational error
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
