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)

適用於