Computation of the Complex Error Function


The Matlab function cef.m computes the complex error function w(z), also known as the plasma dispersion or Fadeeva function. The algorithm is discussed in J.A.C. Weideman, "Computation of the Complex Error Function", SIAM J. Numer. Anal., Vol. 31, pp. 1497-1518 (1994).

This code may be used, for example, to generate the level curves of the error function as shown on p. 298 in the "Handbook of Mathematical Functions" by Abramowtiz and Stegun. Note that code accepts the input z to be a matrix. Therefore the entire picture can be generated with a single call to the function cef.


Last updated: December 5, 1997.