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 values between -1 and +1.
Python Version: 3.2
Syntax
The syntax of the math.erfc() method is as follows:
math.erfc(x)
Parameter description:
- xx -- 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 calculates the complementary error function of numbers:
Example
# Import the math package
import math
# Output the complementary error function of different numbers
print (math.erfc(0.67))
print (math.erfc(1.34))
print (math.erfc(-6))
import math
# Output the complementary error function of different numbers
print (math.erfc(0.67))
print (math.erfc(1.34))
print (math.erfc(-6))
Output result:
0.34337229769969496 0.05808628474163466 2.0Other Extensions
Python math Module