Full name
math.erfc
Library
math
Syntax
math.erfc(x)
Description
The math.erfc function returns the complement of the value of the error function (also called the complementary error function) for a given x value.
The complementary error function is given by the following expression:
And its graph is the following:
Parameters
- x: Value for which we want to obtain the complementary error function.
Result
We can obtain the value of the complementary error function for the point x = 0.5 with the following code:
math.erfc(0.5)
0.4795001221869534