Special.LogGamma Method

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

LogGamma(Complex<Double>) Returns the natural logarithm of the Gamma function for the specified complex number number.
LogGamma(Double) Returns the natural logarithm of the Gamma function for the specified number.
LogGamma(Double, Int32) Evaluates the natural logarithm of the Gamma function and returns the sign as an out parameter.

LogGamma(Complex<Double>)

Returns the natural logarithm of the Gamma function for the specified complex number number.
C#
public static Complex<double> LogGamma(
	Complex<double> z
)

Parameters

z  Complex<Double>
A complex number number.

Return Value

Complex<Double>
The natural logarithm of the Gamma function for z

Remarks

The Gamma function is a generalization to complex numbers of the factorial of an integer. If z is an integer, then the following equality holds: \1

LogGamma(Double)

Returns the natural logarithm of the Gamma function for the specified number.
C#
public static double LogGamma(
	double x
)

Parameters

x  Double
A real number.

Return Value

Double
The natural logarithm of the Gamma function for x

Remarks

The Gamma function is a generalization to real numbers of the factorial of an integer. If x is an integer, then the following equality holds: \1

LogGamma(Double, Int32)

Evaluates the natural logarithm of the Gamma function and returns the sign as an out parameter.
C#
public static double LogGamma(
	double x,
	out int sign
)

Parameters

x  Double
A real number.
sign  Int32
On return, the sign of the Gamma function at x

Return Value

Double
The logarithm of the Gamma function.

See Also