MathF.Exp(Single) 方法

定義

傳回具有指定乘冪數的 e

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

指定乘冪數的數字。

傳回

數字 ex 次方。 如果 x 等於 NaNPositiveInfinity,則傳回該值。 如果 x 等於 NegativeInfinity,則傳回 0。

備註

e 是數學常數,其值為大約 2.71828。

Pow使用 方法來計算其他基底的威力。

Exp 是 的 Log 反轉。

此方法會呼叫基礎 C 執行時間,而確切的結果或有效輸入範圍可能會不同作業系統或架構之間的差異。

適用於

另請參閱