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