You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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 (2026). Complex scaled complementary error function (https://uk.mathworks.com/matlabcentral/fileexchange/12091-complex-scaled-complementary-error-function), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: Faddeeva function (FFT based), Generation of Random Variates
General Information
- Version 1.0.0.0 (2.33 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 | Added keyword. |
