1 #ifndef STAN__AGRAD__REV__FUNCTIONS__COSH_HPP
2 #define STAN__AGRAD__REV__FUNCTIONS__COSH_HPP
13 class cosh_vari :
public op_v_vari {
15 cosh_vari(vari* avi) :
16 op_v_vari(::
cosh(avi->val_),avi) {
19 avi_->adj_ += adj_ *
::sinh(avi_->val_);
52 return var(
new cosh_vari(a.
vi_));
fvar< T > cosh(const fvar< T > &x)
vari * vi_
Pointer to the implementation of this variable.
Independent (input) and dependent (output) variables for gradients.
fvar< T > sinh(const fvar< T > &x)