1 #ifndef STAN_MATH_REV_SCAL_FUN_ATANH_HPP
2 #define STAN_MATH_REV_SCAL_FUN_ATANH_HPP
10 #include <boost/math/special_functions/atanh.hpp>
18 class atanh_vari :
public op_v_vari {
20 atanh_vari(
double val, vari* avi) :
24 avi_->adj_ += adj_ / (1.0 - avi_->val_ * avi_->val_);
71 return var(
new atanh_vari(std::numeric_limits<double>::infinity(),
74 return var(
new atanh_vari(-std::numeric_limits<double>::infinity(),
fvar< T > atanh(const fvar< T > &x)
Independent (input) and dependent (output) variables for gradients.
vari * vi_
Pointer to the implementation of this variable.
var atanh(const var &a)
The inverse hyperbolic tangent function for variables (C99).
double val() const
Return the value of this variable.