Skip to main content

Module reciprocal_sqrt

Module reciprocal_sqrt 

Source
Expand description

ReciprocalSqrt and ReciprocalSqrtAssign, traits for computing the reciprocal of the square root of Floats.

Functionsยง

primitive_float_reciprocal_sqrt
Computes the reciprocal of the square root of a primitive float. Using this function is more accurate than using powf(0.5) or taking the square root and then the reciprocal, or vice versa.
primitive_float_reciprocal_sqrt_rational
Computes the reciprocal of the square root of a Rational, returning a primitive float result.