Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "math/base/special/rsqrtf/docs/types/index.d"

Index

Functions

Functions

Export assignment rsqrtf

  • rsqrtf(x: number): number
  • Computes the reciprocal square root of a single-precision floating-point number.

    Notes

    • For x < 0, the reciprocal square root is not defined.

    Parameters

    • x: number

      input value

    Returns number

    reciprocal square root of x

    Example

    var v = rsqrtf( 4.0 );
    // returns 0.5

    Example

    var v = rsqrtf( 0.0 );
    // returns Infinity

    Example

    var v = rsqrtf( Infinity );
    // returns 0.0

    Example

    var v = rsqrtf( -4.0 );
    // returns NaN

    Example

    var v = rsqrtf( NaN );
    // returns NaN