Python math.erfc() Metodo
Esempio
Stampa la funzione di errore complementare per numeri diversi:
# 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))
Definizione e utilizzo
Il math.erfc()
metodo restituisce la funzione di errore complementare di un numero.
Questo metodo accetta un valore compreso tra - inf e + inf e restituisce un valore compreso tra 0 e 2.
Sintassi
math.erfc(x)
Valori dei parametri
Parameter | Description |
---|---|
x | Required. A number to find the complementary error function of |
Dettagli tecnici
Valore di ritorno: | Un float valore, che rappresenta la funzione di errore complementare di un numero |
---|---|
Versione Python: | 3.2 |