Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

gamma (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the advanced class.

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).

Examples

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

Related Topics

gammaln
gammainc
psi


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit