Vocabularymath.
polynomialsInputsp | a polynomial |
q | a polynomial |
Outputsa | a polynomial |
d | a polynomial |
Word descriptionComputes the greatest common divisor
d of
p and
q, and another value
a satisfying:
a*q = d mod p
NotesGCD in the case of polynomials is a monic polynomial of the highest possible degree that divides into both
p and
q.
ExamplesUSING: kernel math.polynomials prettyprint ;
{ 1 1 1 1 } { 1 1 } pgcd [ . ] bi@
{ 0 0 }
{ 1 1 }
Definition