|Download Help (Windows Only)|
Owning Class: advanced
Requires: MathScript RT Module
c = gamma(a)
Computes the gamma function of the input elements. gamma generalizes the factorial function n!.
|a||Specifies a real matrix.|
|c||Returns the gamma function of the elements in a. c is a matrix of the same size as a.|
LabVIEW computes gamma(a) using the following equation: c = integral(t^(a-1).*exp(-t), t, 0, +inf).
The following table lists the support characteristics of this function.
|Supported in the LabVIEW Run-Time Engine||Yes|
|Supported on RT targets||Yes|
|Suitable for bounded execution times on RT||Not characterized|
A = [-3.7, -2.5, -1.3, 0.3, 1.3, 2.5, 3.7]
C = gamma(A)