![]() |
Prev | Next |
y = erf(x)
\[
{\rm erf} (x) = \frac{2}{ \sqrt{\pi} } \int_0^x \exp( - t * t ) \; {\bf d} t
\]
x
, and the result
y
have one of the following paris of prototypes:
const float &x, float y
const double &x, double y
const AD<Base> &x, AD<Base> y
const VecAD<Base>::reference &x, AD<Base> y
Base
operation sequence used to calculate
y
is
independent
of
x
.
4 \times 10^{-4}
; see
Vedder, J.D.,
Simple approximations for the error function and its inverse,
American Journal of Physics,
v 55,
n 8,
1987,
p 762-3.