Python math.erfc() Method
Python math.erfc(x) The method returns the complementary error function at x.
math.erfc(x) The method accepts values between -inf and +inf and returns a value between -1 and +1.
Python version: 3.2
Syntax
The syntax of the math.erfc() method is as follows:
math.erfc(x)
Parameter Description:
- x -- required, a number. If x is not a number, a TypeError is returned.
Return Value
A floating-point value representing the complementary error function of a number.
Example
The following example shows the complementary error function of numbers:
Example
Import the math package
import
math
Output the complementary error function of different numbers
(
math
.
erfc
(
0.67
)
)
(
math
.
erfc
(
1.34
)
)
(
math
.
erfc
(
6
)
)
Output result:
0.34337229769969496
0.05808628474163466
2.0
Python math Module