MathF.ReciprocalEstimate(Single) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回指定数字的倒数的估计值。
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
。