rStats.js v1.3.0
    Preparing search index...

    Function digamma

    • Digamma function, the derivative of lgamma. Equivalent to R's digamma(). Takes a single number.

      Parameters

      • x: number

        Argument.

      Returns number

      psi(x) (NaN at zero and the negative integers).

      digamma(1);  // -0.5772156649015329 (minus Euler's constant)