LCM Command

From GeoGebra Manual
Revision as of 22:15, 9 March 2013 by Zbynek (talk | contribs) (Text replace - "<div class="box info"> 48px|left This page is part of the official manual for print and pdf. For structural reasons normal users can't edit this page. If you found any errors on this page please contact )
Jump to: navigation, search



UK English: LCM = lowest common multiple

LCM[ <Number a>, <Number b>]
Calculates the least common multiple of two numbers a and b.
Example:
LCM[12, 15] yields 60.
LCM[ <List of numbers>]
Calculates the least common multiple of the elements of the list.
Example:
LCM[{12, 30, 18}] yields 180.

CAS Syntax

LCM[ <Number a>, <Number b> ]
Calculates the least common multiple of numbers a and b.
Example:
LCM[12, 15] yields 60.
LCM[ <List of Numbers> ]
Calculates the least common multiple of the list of numbers.
Example:
LCM[{12, 30, 18}] yields 180.
LCM[ <Polynomial>, <Polynomial> ]
Calculates the least common multiple of the two polynomials.
Example:
LCM[x^2 + 4 x + 4, x^2 - x - 6] yields x^3 + x^2 - 8 x - 12.
LCM[ <List of Polynomials> ]
Calculates the least common multiple of the list of polynomials.
Example:
LCM[{x^2 + 4 x + 4, x^2 - x - 6, x^3 - 4 x^2 - 3 x + 18}] yields x^4 - 2 x^3 - 11 x^2 + 12 x + 36.
© 2024 International GeoGebra Institute