Contents Previous Next Subchapters

The Complementary Error Function
Syntax erfc(x)
See Also erf , cnormal , ierf

Description
Returns an element-by-element approximation of the complementary error function, where x is a real or double-precision matrix.

The complementary error function is defined by
                 inf    2
         2       /    -t
     ----------  |  e    dt
     sqrt(2 pi)  /
                  x
which is also equal to 1 - erf(x).

Example
     ginit
     x = 0. : .1 : 3. 
     gtitle("Complementary Error Function")
     gplot(x, erfc(x))

returns the following plot: