Modifica

Condividi tramite


WorksheetFunction.GammaLn_Precise(Double) Method

Definition

Returns the natural logarithm of the gamma function, Γ(x).

public:
 double GammaLn_Precise(double Arg1);
public double GammaLn_Precise (double Arg1);
Public Function GammaLn_Precise (Arg1 As Double) As Double

Parameters

Arg1
Double

X - the value for which you want to calculate GAMMALN.

Returns

Remarks

If x is nonnumeric, the GammaLn_Precise method generates an error.

If x ≤ 0, the GammaLn_Precise method generates an error.

The number e raised to the GAMMALN(i) power, where i is an integer, returns the same result as (i - 1)!.

GAMMALN is calculated as follows:

Figure 1: Equation for the GammaLn_Precise method

Where:

Figure 2: Equation

Applies to