Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You are required to write a function called Mysinh () which takes any angle in radians and return its hyperbolic sine. The hyperbolic sine can
You are required to write a function called Mysinh () which takes any angle in radians and return its hyperbolic sine. The hyperbolic sine can be determined from the Taylor series expansion as 2n+1 sinh(x) - To perform the summation, use a conditional while loop using the constant, eps, as your precision. In order to avoid infinite loop, if any, put a limit on the number of terms in the sum not to exceed 1000 iterations. You can use the built in MATLAB factorial) function to determine the factorial Your function must be able to work on scalars, vector or 2D matrices. This can be done using nested for loops to scan every element of the input array and use it as the value of x in the infinite series. Your functions must return an array of the same size as the input array where every element of the output array will be the hyperbolic sine of every element of the input array and at the same position (row, column) Compare your output from the functions by that from the built-in function sinh ) by determining the output of the command abs (Mysinh )- sinh ))
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started