Tony Gillard
Followers: 0 Following: 0
Feeds
提问
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 前 | 1 个回答 | 0