From 7:00 PM CST Friday, January 24th - 7:00 PM CST Sunday, January 26th, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

gamma (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: advanced

Requires: MathScript RT Module

Syntax

c = gamma(a)

Description

Computes the gamma function of the input elements. gamma generalizes the factorial function n!.

Details

Examples

Inputs

Name Description
a Specifies a real matrix.

Outputs

Name Description
c Returns the gamma function of the elements in a. c is a matrix of the same size as a.

Details

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

Examples

A = [-3.7, -2.5, -1.3, 0.3, 1.3, 2.5, 3.7]
C = gamma(A)

Related Topics

gamma_incomplete
gamma_ln
psi

WAS THIS ARTICLE HELPFUL?

Not Helpful