Metoda Python math.erfc()
Příklad
Vytiskněte doplňkovou chybovou funkci pro různá čísla:
# Import math Library
import math
# Print complementary error function
for different numbers
print (math.erfc(0.67))
print (math.erfc(1.34))
print
(math.erfc(-6))
Definice a použití
Metoda math.erfc()
vrací doplňkovou chybovou funkci čísla.
Tato metoda přijímá hodnotu mezi - inf a + inf a vrací hodnotu mezi 0 a 2.
Syntax
math.erfc(x)
Hodnoty parametrů
Parameter | Description |
---|---|
x | Required. A number to find the complementary error function of |
Technické údaje
Návratová hodnota: | Hodnota float představující doplňkovou chybovou funkci čísla |
---|---|
Verze Pythonu: | 3.2 |