Méthode Python math.exp()
Exemple
Renvoie 'E' élevé à la puissance de différents nombres :
#Import math Library
import math
#find the exponential of the
specified value
print(math.exp(65))
print(math.exp(-6.89))
Définition et utilisation
La math.exp()
méthode renvoie E élevé à la puissance x (E x ).
'E' est la base du système naturel des logarithmes (environ 2,718282) et x est le nombre qui lui est transmis.
Syntaxe
math.exp(x)
Valeurs des paramètres
Parameter | Description |
---|---|
x | Required. Specifies the exponent |
Détails techniques
Valeur de retour : | Une float valeur représentant 'E' élevée à la puissance x |
---|---|
Version Python : | 1.6.1 |