File: pdiv.cat

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (31 lines) | stat: -rw-r--r-- 728 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
pdivg            Scilab Group            Scilab Function              pdivg
NAME
   pdiv - polynomial division
  
CALLING SEQUENCE
 [R,Q]=pdiv(P1,P2)
 [Q]=pdiv(P1,P2)
PARAMETERS
 P1         : polynomial matrix
            
 P2         : polynomial or polynomial matrix
            
 R,Q        : two polynomial matrices
            
DESCRIPTION
   Element-wise euclidan division of the polynomial matrix P1 by the
  polynomial P2 or by the polynomial matrix P2. Rij is the matrix of
  remainders, Qij is the matrix of quotients and P1ij = Qij*P2 + Qij or
  P1ij = Qij*P2ij + Qij.
  
EXAMPLE
 x=poly(0,'x');
 p1=(1+x^2)*(1-x);p2=1-x;
 [r,q]=pdiv(p1,p2)
 p2*q-p1
 p2=1+x;
 [r,q]=pdiv(p1,p2)
 p2*q+r-p1
SEE ALSO
   ldiv, gcd