Question: Write a Matlab function myCosh that takes as input x and the number of terms N to use to estimate cosh ( x ) ,
Write a Matlab function myCosh that takes as input x and the number of terms N to use to estimate cosh x ie
and returns the estimate for coshx 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 coshx use Matlabs buildin function coshx 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
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
