MathF.Exp(Single) 方法

定义

返回 e 的指定次幂。Returns e raised to the specified power.

public:
 static float Exp(float x);
public static float Exp (float x);
static member Exp : single -> single
Public Shared Function Exp (x As Single) As Single

参数

x
Single

指定幂的数字。A number specifying a power.

返回

数字 ex 次幂。The number e raised to the power x. 如果 x 等于 NaNPositiveInfinity,则返回该值。If x equals NaN or PositiveInfinity, that value is returned. 如果 x 等于 NegativeInfinity,则返回 0。If x equals NegativeInfinity, 0 is returned.

注解

e是一个数学常量, 其值约为2.71828。e is a mathematical constant whose value is approximately 2.71828.

Pow使用方法计算其他底数的幂。Use the Pow method to calculate powers of other bases.

Exp是的逆LogExp is the inverse of Log.

适用于

另请参阅