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

要估计其倒数的数字。

返回

Single

对等值的 x估计。

注解

在 x86/x64 硬件上,可以使用 RCPSS 具有最大相对错误的 1.5 * 2^-12指令。

在 ARM64 硬件上,可以使用 FRECPE 执行单个Newton-Raphson迭代的说明。

在没有专用支持的硬件上,这可能只是返回 1.0 / x

适用于