1 #ifndef STAN__MATH__FUNCTIONS__PHI_HPP
2 #define STAN__MATH__FUNCTIONS__PHI_HPP
4 #include <boost/math/tools/promotion.hpp>
5 #include <boost/math/special_functions/erf.hpp>
30 inline typename boost::math::tools::promote_args<T>::type
fvar< T > erf(const fvar< T > &x)
fvar< T > erfc(const fvar< T > &x)
boost::math::tools::promote_args< T >::type Phi(const T x)
The unit normal cumulative distribution function.
const double INV_SQRT_2
The value of 1 over the square root of 2, .
bool check_not_nan(const char *function, const T_y &y, const char *name, T_result *result)
Checks if the variable y is nan.