FutureBasic Logo

<<    Index    >> FutureBasic

erf & erfc   function



Syntax
error = fn erf(z)
complementaryError = fn erfc(z)

Description
erf is shorthand for error function. erfc stands for complementary error function. The error function erf(z) is the integral of the Gaussian distribution given by

erf Image

The complementary error function erfc(z) is
erfc(z) = 1 - erf(z)

The erf and erfc functions expect a double precision value as the incoming parameter. The return value is also a double precision number.