Python cmath.e Konstante
Beispiel
Drucken Sie den Wert von Euler e:
# Import cmath Library
import cmath
# Print the value of Euler e
print (cmath.e)
Definition und Verwendung
Die cmath.e
Konstante gibt die Eular-Nummer zurück: 2.718281828459045.
Syntax
cmath.e
Technische Details
Rückgabewert: | Ein float Wert, 2,718281828459045, der die mathematische Konstante e darstellt |
---|---|
Python-Version: | 1.5 |