Edit

Share via


Math.ReciprocalEstimate(Double) Method

Definition

Returns an estimate of the reciprocal of a specified number.

C#
public static double ReciprocalEstimate(double d);

Parameters

d
Double

The number whose reciprocal is to be estimated.

Returns

An estimate of the reciprocal of d.

Remarks

On ARM64 hardware this may use the FRECPE instruction which performs a single Newton-Raphson iteration.

On hardware without specialized support, this may just return 1.0 / d.

Applies to

Product Versions
.NET 6, 7, 8, 9