1 #ifndef STAN_MATH_REV_SCAL_FUN_ASINH_HPP
2 #define STAN_MATH_REV_SCAL_FUN_ASINH_HPP
6 #include <boost/math/special_functions/fpclassify.hpp>
14 class asinh_vari :
public op_v_vari {
16 asinh_vari(
double val, vari* avi) :
20 avi_->adj_ += adj_ /
std::sqrt(avi_->val_ * avi_->val_ + 1.0);
64 return var(
new asinh_vari(a.
val(), a.
vi_));
fvar< T > sqrt(const fvar< T > &x)
Independent (input) and dependent (output) variables for gradients.
bool isinf(const stan::math::var &v)
Checks if the given number is infinite.
fvar< T > asinh(const fvar< T > &x)
vari * vi_
Pointer to the implementation of this variable.
double val() const
Return the value of this variable.