Home > atmlab > lineshape > faddeeva > Faddeeva_Dawson.m

Faddeeva_Dawson

PURPOSE ^

Usage: d = Faddeeva_Dawson(z [, relerr])

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 Usage: d = Faddeeva_Dawson(z [, relerr])
 
 Compute Dawson(z) = sqrt(pi)/2 * exp(-z^2) * erfi(z), the 
 Dawson integral (Dawson function), essentially a scaled imaginary
 error function, for an array or matrix of complex values z.
 
 relerr, 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_Dawson.m

SOURCE CODE ^

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

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