Double-precision floating point (±1.7E±308, ~15 decimal digits)
1st Parameter
The input value for which the complementary error function is computed
Read more about parameters of erfc in parameters section
The erfcfunction in C language Calculates the complementary error function of the specified number.
The erfc function computes the complementary error function of x. The complementary error function is defined as erfc(x) = 1 - erf(x), where erf(x) is the error function. However, erfc is often more accurate than calculating 1 - erf(x) directly, especially for large values of x. This function is commonly used in various statistical computations.
The erfcfunction takes 1
parameter:
•
double `x`: The input value for which the complementary error function is computed
Computes the complementary error function of the given value `x`. The complementary error function is defined as 1 - erf(x) and is used in statistics, probability theory, and error analysis.
The erfc function return value :
Returns the complementary error function value of x
The return value is always in the range [0, 2]
Output
This example demonstrates the basic usage of the `erfc` function for various input values, showing how the complementary error function behaves for negative, zero, and positive inputs.