[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

6.3.20 gcd, gcdz

gcd(poly1,poly2[,mod])
gcdz(poly1,poly2)
:: poly1poly2 の gcd.

return
多項式
poly1 poly2
多項式
mod
素数

 
[0] gcd(12*(x^2+2*x+1)^2,18*(x^2+(y+1)*x+y)^3);
x^3+3*x^2+3*x+1
[1] gcdz(12*(x^2+2*x+1)^2,18*(x^2+(y+1)*x+y)^3);
6*x^3+18*x^2+18*x+6
[2] gcd((x+y)*(x-y)^2,(x+y)^2*(x-y));
x^2-y^2
[3] gcd((x+y)*(x-y)^2,(x+y)^2*(x-y),2);
x^3+y*x^2+y^2*x+y^3

参照
6.1.3 igcd,igcdcntl.



This document was generated by root on March, 5 2004 using texi2html