You are here: Symbol Reference > Probabilities Namespace > Functions > Probabilities.trigamma Function
MtxVec VCL
ContentsIndex
PreviousUpNext
Probabilities.trigamma Function

Returns trigamma function or psi(1,x)

Pascal
function trigamma(x: double): double;

Computes the second derivate of the logarithm of the gamma function. The function returns NAN, if the x is less than or equal to zero. 

The algorithm was adapted from: 

The algorithm "AS 121" from "Applied Statistics" (1978) vol 27, no. 1 Available in Fortran at: http://lib.stat.cmu.edu/apstat/121

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!