Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português - 日本語 - Русский

Please note that the recommended version of Scilab is 6.1.0. This page might be outdated.
See the recommended documentation of this function

Scilab Help >> Polynomials > ldiv

# ldiv

polynomial matrix long division

### Calling Sequence

`[x]=ldiv(n,d,k)`

### Arguments

n,d

two real polynomial matrices

k

integer

### Description

`x=ldiv(n,d,k)` gives the `k` first coefficients of the long division of `n` by `d` i.e. the Taylor expansion of the rational matrix `[nij(z)/dij(z)]` near infinity.

Coefficients of expansion of `nij/dij` are stored in `x((i-1)*n+k,j) k=1:n`

### Examples

```wss=ssrand(1,1,3);[a,b,c,d]=abcd(wss);
wtf=ss2tf(wss);
x1=ldiv(numer(wtf),denom(wtf),5)
x2=[c*b;c*a*b;c*a^2*b;c*a^3*b;c*a^4*b]
wssbis=markp2ss(x1',5,1,1);
wtfbis=clean(ss2tf(wssbis))
x3=ldiv(numer(wtfbis),denom(wtfbis),5)```

### See Also

• arl2 — SISO model realization by L2 transfer approximation
• markp2ss — Markov parameters to state-space
• pdiv — polynomial division

### Comments

Add a comment:
Please login to comment this page.

 Report an issue << lcmdiag Polynomials numer >>

 Scilab EnterprisesCopyright (c) 2011-2017 (Scilab Enterprises)Copyright (c) 1989-2012 (INRIA)Copyright (c) 1989-2007 (ENPC)with contributors Last updated:Thu Oct 02 13:46:49 CEST 2014