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

 


Lcm

Returns least common multiple of list of arguments.

Syntax:

lcm := Lcm(L);
lcm := Lcm(a, b);

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

See also:  IntLcm, IdealLcm

Description:

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


Example:

Lcm of integers:

kash> Lcm([18, 12 ,4]);
36
kash> Lcm(18, 12);
36
kash> Lcm([18, 12]);
> 36


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