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

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

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the polynomials class.

Syntax

[b, a] = residue(r, p, k)

[r2, p2, k2] = residue(b2, a2)

Description

Computes the partial fraction expansion of two polynomials or transforms a given partial fraction expansion into the original polynomial representation.

Details

Examples

Inputs

Name Description
r Specifies the residues of the partial fraction expansion. r is a real or complex vector.
p Specifies the poles of the partial fraction expansion. p is a real or complex vector.
k Specifies the coefficients in descending order of power of the quotient polynomial of a and b.
b2 Specifies the coefficients in descending order of power of the numerator polynomial.
a2 Specifies the coefficients in descending order of power of the denominator polynomial.

Outputs

Name Description
b Returns the coefficients in descending order of power of the numerator polynomial.
a Returns the coefficients in descending order of power of the denominator polynomial.
r2 Returns the residues of the partial fraction expansion. r2 is a real or complex vector.
p2 Returns the poles of the partial fraction expansion. p2 is a real or complex vector.
k2 Returns the coefficients in descending order of power of the quotient polynomial of a2 and b2.

Details

LabVIEW computes a and b using the following equation if no multiple roots exist:
bs/as = (r1/(s-p1)) + (r2/(s-p2)) + ... + (rn/(s-pn)) + ks
where s is the power and n is the number of elements in the partial fraction expansion.

If multiple poles exist, that is, if pj = ... = pj+m-1 where j is the element index and m is the multiple, then the partial fraction expansion includes the following terms: (rj/(s-pj)) + (rj+1/(s-pj))2 + ... + (rj+m-1/(s-pj))m.

Examples

B = [1, 2, 3, 4]
A = [1, 1]
[R, P, K] = residue(B, A)

Related Topics

conv
deconv
residuez


Resources


 

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