Question: USING MATLAB The function exp(x) can be written as a Taylor's series by: e^x = 1 + x/1! + x^2/2! + x^3/3! + ... +
USING MATLAB

The function exp(x) can be written as a Taylor's series by: e^x = 1 + x/1! + x^2/2! + x^3/3! + ... + x^n! + ... e^x = 1 + sigma^infinity_n=1 1! x^n Write a user-defined function file that calculates exp(x) by using the Taylor's series. For the function name and arguments, use y = T exp (x). The input argument x. Chose n = 10 for the number of terms in the series. Compare the output of your function with the output of the MATLAB built-in function using a couple of examples
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
