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

 


Gcd

Returns greatest common divisor of list of arguments.

Syntax:

gcd := Gcd(L);
gcd := Gcd(a, b);

integer or polynomial or ideal
  gcd  
list of integers of polynomials or ideals
  L  
integer or polynomial or ideal
  a  
integer or polynomial or ideal
  b  

See also:  IntGcd, PolyGcd

Description:

Returns the greatest common divisor of list of arguments or simply the greatest common divisor of two arguments. Supported are integers, ideals and polynomials over S where S is a field or Z .


Example:

Gcd of integers:

kash> Gcd([18, 12, 4, 6]);
2
kash> Gcd(18, 12);
6
kash> Gcd([18, 12]);
> 6


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