Question: Write a script and pseudo code for this please Help matlab Problem 2. The Taylor series expansion of the exponential function e* is given by

 Write a script and pseudo code for this please Help matlab
Write a script and pseudo code for this please Help matlab

Problem 2. The Taylor series expansion of the exponential function e* is given by n! 70 Write an algorithm (pscudocode) that will calculate the exponential function using this expansion. This is an infini te sum, but your function should stop the summation when the addition of a successive term makes a negligible change in e. That is, output the approximate value of e* obtained when the addition of a successive term causes less than a user defined change (tolerance) in e For example, the user wants to stop the summation when (sumPrevious-sumNew) / sumPrevious 0000001 (one part in a million) where 0,00000 is the usr definsd telsrans Write a MATLAB sripts (my exp_script2) that implements the pseudocode. Your script should ask a user to input two numbers (x and tolerance). You must check for nonsensical input values (both inputs should be real numbers; tolerance should be positive) For the factorial, you should use MATLAB's built-in factorial function. Whether you need to calculate n! or not depends on your algorithm. If your algorithm is similar to what you see in Problem I (above), then you do not need to calculate n Your script should output the approximation ore*. Also, it should compare the approximation to MATLAB internal function's output (exp (x) ). Do you get the same values? Close enough? Calculate and output the difference. Submit two filss my exp pseudocode pdf (or my oxp pseudocode jpg) and my exp acript2

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!