Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Functions

Functions

Export assignment polygamma

  • polygamma(n: number, x: number): number
  • Evaluates the polygamma function.

    Notes

    • If n is not a nonnegative integer, the function returns NaN.
    • If x is zero or a negative integer, the function returns NaN.

    Parameters

    • n: number

      order of derivative

    • x: number

      input value

    Returns number

    (n+1)'th derivative

    Example

    var v = polygamma( 3, 1.2 );
    // returns ~3.245

    Example

    var v = polygamma( 5, 1.2 );
    // returns ~41.39

    Example

    var v = polygamma( 3, -4.9 );
    // returns ~60014.239

    Example

    var v = polygamma( 2.5, -1.2 );
    // returns NaN

    Example

    var v = polygamma( -1, 5.3 );
    // returns NaN

    Example

    var v = polygamma( 2, -2.0 );
    // returns NaN

    Example

    var v = polygamma( NaN, 2.1 );
    // returns NaN

    Example

    var v = polygamma( 1, NaN );
    // returns NaN

    Example

    var v = polygamma( NaN, NaN );
    // returns NaN