Pythoncmath.e定数_
例
オイラーeの値を出力します。
# Import cmath Library
import cmath
# Print the value of Euler e
print (cmath.e)
定義と使用法
cmath.e
定数は、eularの番号2.718281828459045を返します。
構文
cmath.e
技術的な詳細
戻り値: | float 数学定数eを表す値2.718281828459045 |
---|---|
Pythonバージョン: | 1.5 |