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