[back] [prev] [next] [index] [root]

 


PolyQuotRem

missing shortdoc

Syntax:

L := PolyGcd(f, g);

polynomial
  g  
polynomial
  f  
list
  L  

Description:

Returns the quotient and remainder of two polynomials.


Example:


kash> f := Poly(Zx, [1, 2, 3, 4, 5, 6]);
x^5 + 2*x^4 + 3*x^3 + 4*x^2 + 5*x + 6
kash> h := Poly(Zx, [1, 4, 10, 16, 22, 28, 27, 18]);
x^7 + 4*x^6 + 10*x^5 + 16*x^4 + 22*x^3 + 28*x^2 + 27*x + 18
kash> PolyQuotRem(f, h);
> [ 0, x^5 + 2*x^4 + 3*x^3 + 4*x^2 + 5*x + 6 ]


<- back[back] [prev] [next] [index] [root]