Click or drag to resize
AdvancedMathPsi Method (Int32, Double)
Computes the polygamma function.

Namespace:  Meta.Numerics.Functions
Assembly:  Meta.Numerics (in Meta.Numerics.dll) Version: 3.1.0.0 (3.1.0.0)
Syntax
public static double Psi(
	int n,
	double x
)

Parameters

n
Type: SystemInt32
The order, which must be non-negative.
x
Type: SystemDouble
The argument.

Return Value

Type: Double
The value of ψn(x).
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionn is negative.
Remarks

The polygamma function gives higher logarithmic derivatives of the Gamma function.

See Also