Reference no: EM133240052
Question: Write a program to approximate the value of the function f(x)=10ex at some inputted point "a" using a Maclaurin series, such that approximate error is less than some tolerance.
Please see indicated steps:
Question 1. Calculate first few terms of Maclaurin series by hand to identify the pattern.
Question 2. Assign the point "a"( a number close to 0) and the tolerance using InputBox.
Question 3. Assign useful variables for the Maclaurin series.
Question 4. Keep adding terms to Maclaurin series using a "Do While" loop, until error is less than tolerance.
Question 5. Calculate the upper bound for the error and exact value of f(a), and the true error of the approximation.
Out the following to Excel:
1. The number "a" at which the function is evaluated.
2. The maximum tolerance.
3. The approximate value of f(a).
4. The number of terms used in sequence n.
5. An upper bound for error.
6. The exact value of f(a).
7. The true error.