1 #ifndef STAN__AGRAD__REV__FUNCTIONS__ERFC_HPP
2 #define STAN__AGRAD__REV__FUNCTIONS__ERFC_HPP
6 #include <boost/math/special_functions/erf.hpp>
15 class erfc_vari :
public op_v_vari {
17 erfc_vari(vari* avi) :
18 op_v_vari(::
erfc(avi->val_),avi) {
64 return var(
new erfc_vari(a.
vi_));
fvar< T > erfc(const fvar< T > &x)
vari * vi_
Pointer to the implementation of this variable.
const double NEG_TWO_OVER_SQRT_PI
Independent (input) and dependent (output) variables for gradients.
fvar< T > exp(const fvar< T > &x)