Ruby | Math acosh() function Last Updated : 07 Jan, 2020 Summarize Comments Improve Suggest changes Share Like Article Like Report The acosh() is an inbuilt function in Ruby returns the inverse hyperbolic cosine of an angle given in radians. Syntax: Math.acosh(value) Parameters: The function accepts one mandatory parameter value which specifies the inverse hyperbolic angle in radian which should be greater or equal to 1. If the argument is less than 1, domain error is returned. Return Value: The function returns the inverse hyperbolic sine of the argument in radians which is in the range [0, inf]. Example 1: CPP #Ruby program for acosh() function #Assigning values val1 = 2 val2 = 877 val3 = 432 val4 = 43 #Prints the acosh() value puts Math.acosh(val1) puts Math.acosh(val2) puts Math.acosh(val3) puts Math.acosh(val4) Output: 1.3169578969248166 7.469653847888966 6.761571429209457 4.454212060602711 Example 2: CPP #Ruby program for acosh() function #Assigning values val1 = 20 val2 = 83 val3 = 332 val4 = 3 #Prints the acosh() value puts Math.acosh(val1) puts Math.acosh(val2) puts Math.acosh(val3) puts Math.acosh(val4) Output: 3.6882538673612966 5.111951496643704 6.498279881360139 1.762747174039086 Reference: https://devdocs.io/ruby~2.5/cmath#method-i-acosh Comment More infoAdvertise with us Next Article Ruby | Math acosh() function G gopaldave Follow Improve Article Tags : Ruby Ruby-Methods Ruby Collections Ruby Math-class Similar Reads Ruby | Math acos() function The acos() is an inbuilt function in Ruby which returns the inverse cosine of a number (argument) in radians. The value which is returned by the acos() function always lies between âpi to +pi. Syntax: Math.acos(value) Parameters: This function accepts one mandatory parameter value which specifies th 1 min read Ruby | Math cosh() function The cosh() is an inbuilt function in Ruby returns the hyperbolic cosine of value given in radians. The value passed is in range [-inf, +inf]. The returned value is in range [1, +inf]. Syntax: Math.cosh(value) Parameters: The function accepts one mandatory parameter value whose corresponding hyperbo 1 min read Ruby | Math cos() function The cos() is an inbuilt function in Ruby returns the cosine value of a given angle expressed in radians which is in range [-inf, +inf]. The returned value is in range [-1, +1]. Syntax: Math.cos(value) Parameters: The function accepts one mandatory parameter value whose corresponding cosine value is 1 min read Ruby | Math asinh() function The asinh() is an inbuilt function in Ruby returns the inverse hyperbolic sine of an angle given in radians. It accepts all values between range (-INFINITY, INFINITY). Syntax: Math.asinh(value) Parameters: The function accepts one mandatory parameter value which specifies the inverse hyperbolic ang 1 min read Ruby | Math asin() function The asin() is an inbuilt function in Ruby returns the arc sine of a number means give a sin value to this function it will return the angle in radian corresponding to that value. The value passed is in between -1 and +1. Syntax: Math.asin(value) Parameters: The function accepts one mandatory param 1 min read Like