polynomial division
[R,Q]=pdiv(P1,P2) [Q]=pdiv(P1,P2)
polynomial matrix
polynomial or polynomial matrix
two polynomial matrices
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 + Rij or P1ij = Qij*P2ij + Rij.
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 | ![]() | ![]() |