C++ Math atanh()The function computes the arc hyperbolic tangent of an angle given in radian. Where, an arc hyperbolic tangent is the inverse operation of hyperbolic tangent.
tanh-1x =atanh(x)
SyntaxSuppose an angle given in radian is 'x': Note: The return_type can be float, double long double.Parameterx: The value whose arc hyperbolic tangent is to be computed. Return valueIt returns the arc hyperbolic tangent of x.
Example 1Let's see the simple example when the value of x lies between -1 and 1. Output: value of x is :0.5 atanh(x) : 0.549306 In this example, atanh(x) function computes the arc hyperbolic tangent of x and returns the value 0.54. Example 2Let's see the simple example when the value of x is -1. Output: value of x is :-1 atanh(x) : -inf In this example, atanh(x) function computes the arc hyperbolic tangent of x and returns the value ?inf. Example 3Let's see the simple example when the value of x is equal to 1. Output: value of x is :1 atanh(x) : inf In this example, atanh(x) computes the arc hyperbolic tangent of x and returns the value inf. Example 4Let's see the simple example when the value of x is greater than 1. Output: value of x is :5 atanh(x) : -nan In this example, atanh(x) computes the arc hyperbolic tangent of x and returns the value -nan.
Next TopicC++ Math Functions
|
JavaTpoint offers too many high quality services. Mail us on h[email protected], to get more information about given services.
JavaTpoint offers college campus training on Core Java, Advance Java, .Net, Android, Hadoop, PHP, Web Technology and Python. Please mail your requirement at [email protected].
Duration: 1 week to 2 week