Community Profile

photo

Tony Gillard


Last seen: 2 years ago Active since 2019

Followers: 0   Following: 0

Statistics

Feeds

View by

Question


Write a MATLAB code to estimate the exponential function. Inputs should be x and n. The outputs must include approximate value, true value, error, absolute error, and relative error.
This is what I have but it's not working. function e_to_x = exp_taylor(x,n) e_to_x = 0; for k = 1:n e_to_x = e_to_x + (x^(k-...

4 years ago | 1 answer | 0

1

answer