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

In this problem you will use the Taylor series to approximate values of ex. Reca

ID: 3628362 • Letter: I

Question

In this problem you will use the Taylor series to approximate values of ex. Recall truncated Taylor series approximation of ex is given by: The exponential function, ex, can be approximated by the Taylor aeries approximation Write a MATLAB function y = My Exp(x, n) that accepts a vector x and a nonnegative integer n, and returns a vector with the same size and orientation as x and with the property that y(i) = En(x(i)) for i = 1, 2,...,length(x). The code for this function should have the following form: That is, you should copy this code exactly as it is written above, and finish the statements term = and y = Enter the following lines of code into a script M-file called Test Exp Approx. m. Each script and function yon write should contain a little documentation describing what it does. Note that in a Matlab M-file, lines beginning with % are comments. When you type in the lines of code given below, you should fill the large blank area with comments that explain what is done by the script. Run the script for n = 4, 8, 12, 16. Print out the resulting plot. What do these results suggest? You should turn in a print out of your files My Exp. m and Test Exp Approx. m, a print out of the plot you obtained, and neatly written explanations for part c. If you need to write some additional code, or do more experiments to help explain your conclusions, that's fine. Just be sure to carefully explain what you did, and include any relevant material with your solutions.

Explanation / Answer

part b i have not done...

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