Computes the complementar error function \( \displaystyle
\mbox{erf}(x)=1-\frac{2}{\sqrt\pi}\int_0^{x} e^{-t^2}\mbox{d}t\).
Defined in header
#include <eve/module/special.hpp>
{
template< eve::floating_ordered_value T >
}
constexpr callable_erfc_inv_ erfc_inv
Computes the complementar error function .
Definition: erfc_inv.hpp:56
Parameters
Return value
The value of the inverse error function is returned. In particular:
- If the argument is \(\pm0\), \(1\) is returned.
- If the argument is \(2\), \(-\infty\) is returned.
- If the argument is \(0\), \(\infty\) is returned.
- If the argument is NaN, NaN is returned.
#include <eve/module/special.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
wide_ft pf = { 0.0f, 1.0f, 1.5f, 1.75f};
std::cout
<< "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
;
float xf = 1.0f;
float yf = 2.0f;
std::cout
<< "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
<< "<- yf = " << yf << '\n'
return 0;
}
Wrapper for SIMD registers.
Definition: wide.hpp:65