java中的exp是什么??怎么用??
答案:2 悬赏:70 手机版
解决时间 2021-02-18 19:36
- 提问者网友:我是女神我骄傲
- 2021-02-17 20:11
java中的exp是什么??怎么用??
最佳答案
- 五星知识达人网友:鱼忧
- 2021-02-17 20:42
exp
public static double exp(double a)Returns Euler's number e raised to the power of a double value. Special cases:
If the argument is NaN, the result is NaN.
If the argument is positive infinity, then the result is positive infinity.
If the argument is negative infinity, then the result is positive zero.
The computed result must be within 1 ulp of the exact result. Results must be semi-monotonic.
Parameters:
a - the exponent to raise e to.
Returns:
the value ea, where e is the base of the natural logarithms.
public static double exp(double a)Returns Euler's number e raised to the power of a double value. Special cases:
If the argument is NaN, the result is NaN.
If the argument is positive infinity, then the result is positive infinity.
If the argument is negative infinity, then the result is positive zero.
The computed result must be within 1 ulp of the exact result. Results must be semi-monotonic.
Parameters:
a - the exponent to raise e to.
Returns:
the value ea, where e is the base of the natural logarithms.
全部回答
- 1楼网友:英雄的欲望
- 2021-02-17 21:18
是计算e的幂的。
e你知道吗?是一个数学常数,2.7 多少的。
math.exp(2.0)就是计算e的2次方。
类型是double型的。
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯