Namespaces
Variants
Actions

std::erfc, std::erfcf, std::erfcl

From cppreference.com
< cpp‎ | numeric‎ | math
 
 
 
 
Defined in header <cmath>
(1)
float       erfc ( float num );

double      erfc ( double num );

long double erfc ( long double num );
(until C++23)
/*floating-point-type*/
            erfc ( /*floating-point-type*/ num );
(since C++23)
(constexpr since C++26)
float       erfcf( float num );
(2) (since C++11)
(constexpr since C++26)
long double erfcl( long double num );
(3) (since C++11)
(constexpr since C++26)
SIMD overload (since C++26)
Defined in header <simd>
template< /*math-floating-point*/ V >

constexpr /*deduced-simd-t*/<V>

            erfc ( const V& v_num );
(S) (since C++26)
Additional overloads (since C++11)
Defined in header <cmath>
template< class Integer >
double      erfc ( Integer num );
(A) (constexpr since C++26)
1-3) Computes the complementary error function of num, that is 1.0 - std::erf(num), but without loss of precision for large num. The library provides overloads of std::erfc for all cv-unqualified floating-point types as the type of the parameter.(since C++23)
S) The SIMD overload performs an element-wise std::erfc on v_num.
(See math-floating-point and deduced-simd-t for their definitions.)
(since C++26)
A) Additional overloads are provided for all integer types, which are treated as double.
(since C++11)

Contents