語言

MathF.ReciprocalEstimate(Single) 方法

定義

回傳指定數字的倒數估計值。

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

參數

x
Single

要估計其倒數的數量。

傳回

的倒數 x估計。

備註

在 x86/x64 硬體上,這可能會使用 RCPSS 最大相對誤差為 1.5 * 2^-12的指令。

在 ARM64 硬體上,這可能使用 FRECPE 執行單一 Newton-Raphson 迭代的指令。

在沒有專門支援的硬體上,這種情況可能會再度出現 1.0 / x。

適用於