Question: Exercise 2 : , Write a MATLAB script to calculate the value of ' e ' , that is exp ( 1 ) using the
Exercise : Write a MATLAB script to calculate the value of e that is exp
using the following equalion
~~
For the first k lerms, where the value of k is oblained from the keyboard by the user use the input command Calculate the percentage error from lhe value of exp evaluated by the exp MATLAB function. Use the fprintf command to write these results to the command window. Test your code for a variely of values for to show how increasing values increase your accuracy.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
