W = FADDEEVA(Z) is the Faddeeva function, aka the plasma dispersion function, for each element of Z. The Faddeeva function is defined as:
w(z) = exp(-z^2) erfc(-jz)
where erfc(x) is the complex complementary error function.
This code is a modified version of the code listed in:
J.A.C. Weideman, "Computation of the Complex Error Function," SIAM J. Numerical Analysis, pp. 1497-1518, No. 5, Vol. 31, Oct., 1994 Available Online: http://www.jstor.org/stable/2158232
Kesh Ikuma (2022). Faddeeva function (FFT based) (https://www.mathworks.com/matlabcentral/fileexchange/22207-faddeeva-function-fft-based), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: Complex scaled complementary error function
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!