Package org.apache.commons.numbers.gamma
Class Trigamma
- java.lang.Object
-
- org.apache.commons.numbers.gamma.Trigamma
-
public final class Trigamma extends Object
Trigamma function. It is the derivative of thedigamma function
: \( \psi_1(x) = \frac{d^2}{dx^2} (\ln \Gamma(x)) \).
-
-
Method Detail
-
value
public static double value(double x)
Computes the trigamma function.- Parameters:
x
- Argument.- Returns:
- trigamma(x) to within
1e-8
relative or absolute error whichever is larger.
-
-