1 #ifndef STAN__AGRAD__REV__FUNCTIONS__TAN_HPP
2 #define STAN__AGRAD__REV__FUNCTIONS__TAN_HPP
12 class tan_vari :
public op_v_vari {
15 op_v_vari(std::
tan(avi->val_),avi) {
18 avi_->adj_ += adj_ * (1.0 + val_ * val_);
51 return var(
new tan_vari(a.
vi_));
fvar< T > tan(const fvar< T > &x)
vari * vi_
Pointer to the implementation of this variable.
Independent (input) and dependent (output) variables for gradients.