Callable object computing \(e^{-z^2}\mathrm{erfc}(-iz)\) the scaled complex error func.
{
template< like<complex> T >
}
constexpr callable_faddeeva_ faddeeva
Callable object computing the scaled complex error func.
Definition: faddeeva.hpp:60
Definition: all_of.hpp:22
#include <eve/module/complex.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
auto pr = [](double x, double y){
auto z = cft{x, y};
std::cout << " z " << z << std::endl;
std::cout << "fz "<< fz << std::endl;
};
pr(1.0, 1.0);
pr(0.5, 1.0);
pr(10, 10);
pr(65, 0);
pr(0.01, 1);
pr(1.0e-4, 2);
pr(0.785398163397448, 0);
return 0;
}
constexpr callable_nan_ nan
Computes the IEEE NaN constant.
Definition: nan.hpp:53
constexpr callable_inf_ inf
Computes the infinity ieee value.
Definition: inf.hpp:58
Lightweight type-wrapper.
Definition: as.hpp:29
SIMD-compatible representation of complex numbers.
Definition: complex.hpp:40