1 #ifndef STAN__AGRAD__FWD__FUNCTIONS__OWENS_T_HPP
2 #define STAN__AGRAD__FWD__FUNCTIONS__OWENS_T_HPP
33 + x2.
d_ *
exp(neg_x1_sq_div_2 * one_p_x2_sq)
34 / (one_p_x2_sq * 2.0 *
pi()));
46 T neg_x1_sq_div_2 = -
square(x1) * 0.5;
50 x2.
d_ *
exp(neg_x1_sq_div_2 * one_p_x2_sq)
51 / (one_p_x2_sq * 2.0 *
pi()));
70 *
exp(neg_x1_sq_div_2)
T square(const T x)
Return the square of the specified argument.
const double INV_SQRT_TWO_PI
fvar< T > erf(const fvar< T > &x)
fvar< T > square(const fvar< T > &x)
boost::math::tools::promote_args< T1, T2 >::type owens_t(const T1 &h, const T2 &a)
The Owen's T function of h and a.
fvar< T > owens_t(const fvar< T > &x1, const fvar< T > &x2)
const double INV_SQRT_2
The value of 1 over the square root of 2, .
double pi()
Return the value of pi.
fvar< T > exp(const fvar< T > &x)