Function Math Engineering Class

Gamma

Compute the complete Gamma function.

Signature (Visual Basic / VBA)

Public Function Gamma( _
    ByVal vX As Variant _
    ) As Variant

Code Example

    Gamma(0.1) = 9.51350769866873
    Gamma(0.5) = 1.77245385090552
    Gamma(0.9) = 1.06862870211932
    Gamma(1.0) = 1
    Gamma(1.5) = 0.886226925452758
    Gamma(2.0) = 1
    Gamma(2.5) = 1.32934038817914
    Gamma(3.0) = 2
    Gamma(4.0) = 6
    Gamma(4.5) = 11.6317283965674

Parameters

Parameter Description
vX Function returns Null if vX is Null or cannot be fixed up to a Double precision floating point number.