The hyperbolic cosine of the argument given in radians can
Last updated: 8/25/2023
The hyperbolic cosine of the argument given in radians can be calculated by the series cosh z 1 n 1 2n T 2n P 1 cosh r 1 N 2 n 1 I I 6 a Write a Matlab function myCosh that takes as input r and the number of terms N to use to estimate cosh z i c 7 2n 2n 1 2 and returns the estimate for cosh r 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 r use Matlab s build in function cosh x Do not print out any results to screen or do any plotting within the function b Calculate and report with at least 15 digits the estimate for cosh 20 and the true relative error for i N 5 ii N 20 iii N 30 c In a semilogarithmic plot use semilogy plot the absolute of the true relative error vs N for N 1 40 d Explain why the absolute of the true relative error does not decrease for N 32