1 #ifndef STAN_MATH_REV_SCAL_FUN_ATANH_HPP 2 #define STAN_MATH_REV_SCAL_FUN_ATANH_HPP 12 class atanh_vari :
public op_v_vari {
14 atanh_vari(
double val, vari* avi) :
18 avi_->adj_ += adj_ / (1.0 - avi_->val_ * avi_->val_);
fvar< T > atanh(const fvar< T > &x)
Return inverse hyperbolic tangent of specified value.
Independent (input) and dependent (output) variables for gradients.
vari * vi_
Pointer to the implementation of this variable.
double val() const
Return the value of this variable.