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

psi (MathScript RT Module Function)

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

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.

Examples

A = [0:0.01:2];
C = psi(A);
plot(A, C)

Related Topics

gamma
gamma_incomplete
gamma_ln


 

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