E.V.E
v2023.02.15

◆ erfcx

eve::erfcx = {}
inlineconstexpr

Computes the normalized complementary error function \( \displaystyle \mbox{erfcx}(x) = e^{x^2} \mbox{erfc}(x)\).

Defined in header

#include <eve/module/special.hpp>

Callable Signatures

namespace eve
{
template< eve::floating_ordered_value T >
T erfcx(T x) noexcept;
}
constexpr callable_erfcx_ erfcx
Computes the normalized complementary error function .
Definition: erfcx.hpp:50
Definition: abi.hpp:18

Parameters

Return value

The value of the normalized complementary error function is returned.

Example

#include <eve/module/special.hpp>
#include <eve/wide.hpp>
#include <iostream>
int main()
{
wide_ft pf = {0.5f, -1.5f, -1.0f, 1.0f, 2.0f,
std::cout << "---- simd" << '\n'
<< "<- pf = " << pf << '\n'
<< "-> erfcx(pf) = " << eve::erfcx(pf) << '\n'
;
float xf = 4.0f;
std::cout << "---- scalar" << '\n'
<< "<- xf = " << xf << '\n'
<< "-> erfcx(xf) = " << eve::erfcx(xf) << '\n';
return 0;
}
constexpr callable_nan_ nan
Computes the IEEE NaN constant.
Definition: nan.hpp:53
constexpr callable_minf_ minf
Computes the -infinity ieee value.
Definition: minf.hpp:60
constexpr callable_inf_ inf
Computes the infinity ieee value.
Definition: inf.hpp:58
Lightweight type-wrapper.
Definition: as.hpp:29
Wrapper for SIMD registers.
Definition: wide.hpp:65