Question: 1) Write a MATLAB function exp 1(x) that can evaluate the exponential function e. i.e. write your own exponential function without using exp(x) command k!
1) Write a MATLAB function exp 1(x) that can evaluate the exponential function e. i.e. write your own exponential function without using exp(x) command k! Your function should start with function y=exp-l (x,tol,n) where tol: tolerance (relative error) n: maximum number of iteration . use while loop to calculate the series . inside the loop, compare the result to tol If]the relative error
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
