Back to Symbolic Math (SymEngine)
sym.lcm
Compute the least common multiple of two expressions.
Syntax
sym.lcm(a, b)
Description
Compute the least common multiple of two expressions. For integers, returns the smallest positive integer divisible by both. For polynomials, returns the lowest degree polynomial divisible by both.
Parameters
| Name | Description |
|---|---|
| a | - First expression. |
| b | - Second expression. |
Returns
Expr