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.

psi (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 = psi(a)

c = psi(b, a)

Description

Computes the psi, or digamma, function.

Details

Examples

Inputs

Name Description
a Specifies a matrix of positive real numbers.
b Specifies the derivative to use to compute the psi function.

Outputs

Name Description
c Returns the psi function of a. If you specify b, c returns the b-th derivative of psi(a). c is a real matrix.

Details

LabVIEW computes the psi function using the following equation: c = (1/gamma(a))*d(gamma(a))/da.

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 = [0:0.01:2];
C = psi(A);
plot(A, C)

Related Topics

gamma
gamma_incomplete
gamma_ln

WAS THIS ARTICLE HELPFUL?

Not Helpful