語言

MathF.ReciprocalSqrtEstimate(Single) 方法

定義

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

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

參數

x
Single

要估計其倒數平方根的數字。

傳回

倒數平方根 x的估計值。

備註

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

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

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

適用於