igcd - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


igcd

greatest common divisor of integers

ilcm

least common multiple of integers

 

Calling Sequence

Parameters

Description

Thread Safety

Examples

Calling Sequence

igcd(x1, x2,...)

ilcm(x1, x2,...)

Parameters

x[1], x[2], ...

-

any integers

Description

• 

The function igcd computes the greatest common divisor of an arbitrary number of integers.  The function ilcm computes the least common multiple of an arbitrary number of integers.

Thread Safety

• 

The igcd command is thread-safe as of Maple 15.

• 

For more information on thread safety, see index/threadsafe.

Examples

igcd

0

(1)

ilcm

1

(2)

igcd10,6,8

2

(3)

ilcm10,6,8

120

(4)

igcda,ab

igcda,ab

(5)

gcda,ab

a

(6)

a6:

b9:

ilcma,b

18

(7)

igcda,b

3

(8)

See Also

gcd

igcdex

lcm