![]() |
ITS.Propagation.LFMF 1.1
Part of the NTIA/ITS Propagation Library
|
Implements a function to calculate the Faddeeva function \( W(z) \). More...
Functions | |
| std::complex< double > | ITS::Propagation::LFMF::wofz (const std::complex< double > z) |
| This function computes the Faddeeva function \( W(z) = e^{-z^2} \mathrm{erfc}(-iz) \). | |
Implements a function to calculate the Faddeeva function \( W(z) \).
| std::complex< double > ITS::Propagation::LFMF::wofz | ( | const std::complex< double > | z | ) |
This function computes the Faddeeva function \( W(z) = e^{-z^2} \mathrm{erfc}(-iz) \).
Given a complex input argument \( z \), this function computes the value of the above equation, in which \(\mathrm{erfc}\) is the complex complementary error function and \( i \) is \( \sqrt{-1} \).
The basis for this function is Algorithm 680, Collected Algorithms from ACM, (reference provided below). This version of the function accepts a single complex input argument z and returns a single complex output. The following note is restated from the original implementation's description:
| [in] | z | Input argument |
zLineage
double values with == were removed by C. Heroy, who implemented AlmostEqualRelative().References