This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)


gives the least common multiple of the polynomials .
PolynomialLCM[poly1, poly2, ..., Modulus->p]
evaluates the LCM modulo the prime p.
  • PolynomialLCM will by default treat algebraic numbers that appear in the as independent variables.
The least common multiple of polynomials:
The least common multiple of polynomials:
Click for copyable input
The LCM of univariate polynomials:
The LCM of multivariate polynomials:
The LCM of more than two polynomials:
The LCM of rational functions:
By default, algebraic numbers are treated as independent variables:
With Extension->Automatic, PolynomialLCM detects algebraically dependent coefficients:
Compute the LCM over the integers modulo 2:
By default, PolynomialLCM treats trigonometric functions as independent variables:
With Trig->True, PolynomialLCM recognizes dependencies between trigonometric functions:
The LCM of polynomials is divisible by the polynomials; use PolynomialMod to prove it:
PolynomialGCD finds the greatest common divisor of polynomials:
New in 2 | Last modified in 3