Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Python math.erfc() Method

Python math.erfc() Method

Python math Module Python math Module

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:

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

print

(

math

.

erfc

(

0.67

)

)

print

(

math

.

erfc

(

1.34

)

)

print

(

math

.

erfc

(

6

)

)

Output result:


0.34337229769969496
0.05808628474163466
2.0

Python math Module Python math Module