Complex scaled complementary error function
Matlab provides the function erfcx which computes a scaled error function. However, the input argument must be real. This function computes the values of the Fadeeva function for complex inputs.
Note that W(i*x) = erfcx(x) for real-values x.
An error flag is set if the algorithm does not converge.
The algorithm is taken from the work published in TRANSACTIONS ON MATHEMATICAL SOFTWARE, VOL. 16, NO. 1, PP. 47.
Cite As
Thomas Winiecki (2024). Complex scaled complementary error function (https://www.mathworks.com/matlabcentral/fileexchange/12091-complex-scaled-complementary-error-function), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: Faddeeva function (FFT based), Generation of Random Variates
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 | Added keyword. |