Python Math.erfc() Metoda
Przykład
Wydrukuj uzupełniającą funkcję błędu dla różnych liczb:
# 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))
Definicja i użycie
Metoda math.erfc()
zwraca komplementarną funkcję błędu liczby.
Ta metoda przyjmuje wartość z zakresu od - inf do + inf i zwraca wartość z zakresu od 0 do 2.
Składnia
math.erfc(x)
Wartości parametrów
Parameter | Description |
---|---|
x | Required. A number to find the complementary error function of |
Szczegóły techniczne
Wartość zwrotu: | Wartość float reprezentująca komplementarną funkcję błędu liczby |
---|---|
Wersja Pythona: | 3.2 |