1 #ifndef STAN_MATH_REV_SCAL_FUN_ERFC_HPP
2 #define STAN_MATH_REV_SCAL_FUN_ERFC_HPP
11 #include <boost/math/special_functions/erf.hpp>
19 class erfc_vari :
public op_v_vari {
21 explicit erfc_vari(vari* avi) :
22 op_v_vari(::
erfc(avi->val_), avi) {
26 *
std::exp(- avi_->val_ * avi_->val_);
69 return var(
new erfc_vari(a.
vi_));
var erfc(const var &a)
The complementary error function for variables (C99).
Independent (input) and dependent (output) variables for gradients.
fvar< T > exp(const fvar< T > &x)
vari * vi_
Pointer to the implementation of this variable.
const double NEG_TWO_OVER_SQRT_PI
fvar< T > erfc(const fvar< T > &x)