1 #ifndef STAN_MATH_REV_SCAL_FUN_ASINH_HPP
2 #define STAN_MATH_REV_SCAL_FUN_ASINH_HPP
11 #include <boost/math/special_functions/asinh.hpp>
19 class asinh_vari :
public op_v_vari {
21 asinh_vari(
double val, vari* avi) :
25 avi_->adj_ += adj_ /
std::sqrt(avi_->val_ * avi_->val_ + 1.0);
69 return var(
new asinh_vari(a.
val(), a.
vi_));
fvar< T > sqrt(const fvar< T > &x)
Independent (input) and dependent (output) variables for gradients.
fvar< T > asinh(const fvar< T > &x)
vari * vi_
Pointer to the implementation of this variable.
int is_inf(const fvar< T > &x)
Returns 1 if the input's value is infinite and 0 otherwise.
var asinh(const var &a)
The inverse hyperbolic sine function for variables (C99).
double val() const
Return the value of this variable.