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

gammainc (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 = gammainc(a, b)

Description

Computes the incomplete gamma function of corresponding elements of two matrices. gammainc generalizes the gamma function.

Details

Examples

Inputs

Name Description
a Specifies a real matrix.
b Specifies a real matrix. b is the same size as a unless a or b is a scalar.

Outputs

Name Description
c Returns the incomplete gamma function of corresponding elements in a and b. c is a matrix of the same size as a or b.

Details

When a and b are scalar, LabVIEW computes gammainc(a, b) using the following equation: c = 1/gamma(b)*integral(t^(b-1)*exp(-t), t, 0, a).

Examples

A = [0.4, 1.3, 2.5, 3.7]
B = [0.4, 1.3, 2.5, 3.7]
C = gammainc(A, B)

Related Topics

gamma
gammaln
psi


Resources


 

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