Python cmath.e constante
Ejemplo
Imprime el valor de Euler e:
# Import cmath Library
import cmath
# Print the value of Euler e
print (cmath.e)
Definición y uso
La cmath.e
constante devuelve el número de eular: 2.718281828459045.
Sintaxis
cmath.e
Detalles técnicos
Valor devuelto: | Un float valor, 2.718281828459045, que representa la constante matemática e |
---|---|
Versión de Python: | 1.5 |