lcm(x: ExpressionInput, y: ExpressionInput): Expression
Returns the least common multiple of two expressions.
Numeric inputs reuse exact
`Rational`
arithmetic. Polynomial expressions use
the existing GCD normalization so shared symbolic factors are retained.
Returns
Expression — Zero when either operand is zero; otherwise a non-negative numeric LCM or the symbolic product divided by gcd.