Home > atmlab > lineshape > faddeeva > Faddeeva_erfi.m

Faddeeva_erfi

PURPOSE ^

Usage: e = Faddeeva_erfi(z [, relerr])

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 Usage: e = Faddeeva_erfi(z [, relerr])
 
 Compute erfi(z) = -i*erf(i*z), the 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_erfi.m

SOURCE CODE ^

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

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