Home >>Python math Module >Python math.erfc() Method

Python math.erfc() Method

Python math.erfc() Method

Python math.erfc() Method in python is used to method returns the complementary error function of a number and accepts the value in the range between [-inf, inf] and returns error function in between [0, 2] and the error function can be defined as, erfc(x) = 1- erf(x).

Syntax:
math.erfc(x)

Parameter Values

Parameter Description
x It is required a number for finding the complementary error function
Here is an example of Python math.erfc() Method:

import math
print (math.erfc(-0.23))
print (math.erfc(4.16))
print (math.erfc(-2))

Output:
1.2550225995922732
4.025833120998303e-09
1.9953222650189528
Example 2:

import math
print (math.erfc(12.21))
print (math.erfc(1.03))
print (math.erfc(24))

Output:
8.257772297751575e-67
0.1452157885458516
1.6489825831519335e-252

No Sidebar ads