Python cmath.e costante
Esempio
Stampa il valore di Eulero e:
# Import cmath Library
import cmath
# Print the value of Euler e
print (cmath.e)
Definizione e utilizzo
La cmath.e
costante restituisce il numero dell'eulare: 2.718281828459045.
Sintassi
cmath.e
Dettagli tecnici
Valore di ritorno: | Un float valore, 2.718281828459045, che rappresenta la costante matematica e |
---|---|
Versione Python: | 1.5 |