AdvancedMathLogPochhammer Method

Computes the logarithm of the the specified Pochammer symbol.

Definition

Namespace: Meta.Numerics.Functions
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public static double LogPochhammer(
	double x,
	double y
)

Parameters

x  Double
The value of the base argument, which must be non-negative.
y  Double
The value of the exponent argument, which must be greater than or equal to -x.

Return Value

Double
The value of ln (x)y.

Remarks

While Pochhammer(Double, Double) does not overflow for much of the parameter space for which Gamma(Double) of x or (x + y) would, there are still areas of parameter space for which it does. Additionally, for small y, Pochhammer(Double, Double) can be 1 to within floating-point accuracy, but you may still want to be able to quantify how much it differs from 1. This method overcomes both of those limitations by providing a non-overflowing value of the logarithm of the Pochammer symbol over its entire parameter space.

Exceptions

ArgumentOutOfRangeExceptionx is negative or (x + y) is negative.

See Also