<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
<MAN>
  <LANGUAGE>eng</LANGUAGE>
  <TITLE>pdivg</TITLE>
  <TYPE>Scilab Function</TYPE>
  <DATE>April 1993</DATE>
  <SHORT_DESCRIPTION name="pdiv"> polynomial division</SHORT_DESCRIPTION>
  <CALLING_SEQUENCE>
    <CALLING_SEQUENCE_ITEM>[R,Q]=pdiv(P1,P2)  </CALLING_SEQUENCE_ITEM>
    <CALLING_SEQUENCE_ITEM>[Q]=pdiv(P1,P2)  </CALLING_SEQUENCE_ITEM>
  </CALLING_SEQUENCE>
  <PARAM>
    <PARAM_INDENT>
      <PARAM_ITEM>
        <PARAM_NAME>P1</PARAM_NAME>
        <PARAM_DESCRIPTION>
          <SP>: polynomial matrix</SP>
        </PARAM_DESCRIPTION>
      </PARAM_ITEM>
      <PARAM_ITEM>
        <PARAM_NAME>P2</PARAM_NAME>
        <PARAM_DESCRIPTION>
          <SP>: polynomial or polynomial matrix</SP>
        </PARAM_DESCRIPTION>
      </PARAM_ITEM>
      <PARAM_ITEM>
        <PARAM_NAME>R,Q</PARAM_NAME>
        <PARAM_DESCRIPTION>
          <SP>: two polynomial matrices</SP>
        </PARAM_DESCRIPTION>
      </PARAM_ITEM>
    </PARAM_INDENT>
  </PARAM>
  <DESCRIPTION>
    <P>
    Element-wise euclidan division of the polynomial matrix <VERB>P1</VERB>
    by the polynomial <VERB>P2</VERB> or by the polynomial matrix <VERB>P2</VERB>.
    <VERB>Rij</VERB> is the matrix of remainders, <VERB>Qij</VERB> is the matrix
    of quotients and <VERB>P1ij = Qij*P2 + Qij</VERB> or <VERB>P1ij = Qij*P2ij + Qij</VERB>.</P>
  </DESCRIPTION>
  <EXAMPLE>
<![CDATA[
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
 ]]>
  </EXAMPLE>
  <SEE_ALSO>
    <SEE_ALSO_ITEM>
      <LINK>ldiv</LINK>
    </SEE_ALSO_ITEM>
    <SEE_ALSO_ITEM>
      <LINK>gcd</LINK>
    </SEE_ALSO_ITEM>
  </SEE_ALSO>
</MAN>
