Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "math/base/special/falling-factorial/docs/types/index.d"

Index

Functions

Functions

Export assignment fallingFactorial

  • fallingFactorial(x: number, n: number): number
  • Computes the falling factorial of x and n.

    Notes

    • If not provided a nonnegative integer for n, the function returns NaN.
    • If provided NaN as any argument, the function returns NaN.

    Parameters

    • x: number

      first function parameter

    • n: number

      second function parameter

    Returns number

    function value

    Example

    var v = fallingFactorial( 0.9, 5 );
    // returns ~0.644

    Example

    var v = fallingFactorial( -9.0, 3 );
    // returns -990.0

    Example

    var v = fallingFactorial( 0.0, 2 );
    // returns 0.0

    Example

    var v = fallingFactorial( 3.0, -2 );
    // returns NaN