You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Dew.Math.Units Namespace > Classes > Probabilities Class > Probabilities Methods > Probabilities.trigamma Method
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Probabilities.trigamma Method

Returns trigamma function or psi(1,x)

Syntax
C#
Visual Basic
public static double trigamma(double x);

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-2022 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!