Question: This is for MATLAB (a) (12 points) The simplified exponential function is defined as following. Write a UDF function, name it simpleE, that has one

 This is for MATLAB (a) (12 points) The simplified exponential function
This is for MATLAB

(a) (12 points) The simplified exponential function is defined as following. Write a UDF function, name it "simpleE", that has one input and one output. f(x) = 1 + x + x2 x + 21 3! x5 + + 4! 5! + 6! (b) (5 points) Test your UDF function "simpleE" from (a) for x = 0.65, call it simple = f(0.65). (c) (8 points) Use Matlab built-in function to calculate the exponential value: fexact = 0.65 and compute the absolute difference between file and fexact (hint: you can use Matlab function "abs" to compute the absolute difference)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!