Méthode Python math.erfc()
Exemple
Imprimer la fonction d'erreur complémentaire pour différents nombres :
# 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))
Définition et utilisation
La math.erfc()
méthode renvoie la fonction d'erreur complémentaire d'un nombre.
Cette méthode accepte une valeur comprise entre - inf et + inf et renvoie une valeur comprise entre 0 et 2.
Syntaxe
math.erfc(x)
Valeurs des paramètres
Parameter | Description |
---|---|
x | Required. A number to find the complementary error function of |
Détails techniques
Valeur de retour : | Une float valeur, représentant la fonction d'erreur complémentaire d'un nombre |
---|---|
Version Python : | 3.2 |