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

◆ sech()

template<typename T >
auto stan::math::sech ( T &&  x)
inline

Return the hyperbolic secant 1 / cosh(x) of the argument, elementwise for containers.

For large |x|, cosh(x) overflows to infinity and the result is 0.

Template Parameters
Tscalar, container, or var_value with inner Eigen type
Parameters
xargument
Returns
hyperbolic secant of the argument

Definition at line 22 of file sech.hpp.