Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ atanh() [5/11]

template<typename T , require_arithmetic_t< T > * = nullptr>
double stan::math::atanh ( const T  x)
inline

Return the inverse hyperbolic tangent of the specified value.

An argument of -1 returns negative infinity and an argument of 1 returns infinity. Returns nan for nan argument.

Parameters
[in]xArithmetic Argument.
Returns
Inverse hyperbolic tangent of the argument.
Exceptions
std::domain_errorIf argument is not in [-1, 1].

Definition at line 28 of file atanh.hpp.