Question: Write a Matlab function myCosh that takes as input x and the number of terms N to use to estimate cosh (x), i.e., and returns
Write a Matlab function myCosh that takes as input x and the number of terms N to use to estimate cosh (x), i.e., and returns the estimate for cosh(x) together with the corresponding true relative error. You may use the Matlab function factorial() to calculate the factorial in the formula. For the true value of cosh(x) use Matlab's build-in function cosh(x). Do not print out any results to screen or do any plotting within the function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
