GCD

From iMath
Jump to: navigation, search

Syntax

GCD ( expression, expression )


Implemented in iMath since version 2.2.0 or earlier.

Explanation

Calculate the greatest common divisor of two expressions. The expressions may be polynomials or numbers.


Example

EXDEF GCD(4 x y + x z + 20 y^2 + 21 y z + 4 z^2, x y + 3 x z + 5 y^2 + 19 y z + 12 z^2) will give the result x + 5 y + 4 z.

See also

LCM