Home > atmlab > lineshape > faddeeva > Faddeeva_w.m

Faddeeva_w

PURPOSE ^

Usage: w = Faddeeva_w(z [, relerr])

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 Usage: w = Faddeeva_w(z [, relerr])
 
 Compute w(z) = exp(-z^2) erfc(-iz), the scaled complex error function
 or Faddeeva function, for an array or matrix of values z.  The relerr
 argument, if supplied, indicates a desired relative error tolerance in
 w; the default is 0, indicating that machine precision is requested (and
 a relative error < 1e-13 is usually achieved).  Specifying a larger
 relerr may improve performance for some z (at the expense of accuracy).
 
 S. G. Johnson, http://ab-initio.mit.edu/Faddeeva

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

DOWNLOAD ^

Faddeeva_w.m

SOURCE CODE ^

0001 % Usage: w = Faddeeva_w(z [, relerr])
0002 %
0003 % Compute w(z) = exp(-z^2) erfc(-iz), the scaled complex error function
0004 % or Faddeeva function, for an array or matrix of values z.  The relerr
0005 % argument, if supplied, indicates a desired relative error tolerance in
0006 % w; the default is 0, indicating that machine precision is requested (and
0007 % a relative error < 1e-13 is usually achieved).  Specifying a larger
0008 % relerr may improve performance for some z (at the expense of accuracy).
0009 %
0010 % S. G. Johnson, http://ab-initio.mit.edu/Faddeeva

Generated on Mon 15-Sep-2014 13:31:28 by m2html © 2005