idllib

Personal IDL library for M. Galloy

single page | use frames     summary     class     fields     routine details     file attributes

analysis/

mg_lcm.pro


top source mg_lcm

result = mg_lcm(a, b)

Find the least common multiple (LCM) for two positive integers.

Return value

integer

Parameters

a in required type=integer

first integer

b in required type=integer

second integer

Examples

For example, try:

IDL> print, mg_lcm(3, 4) 12 IDL> print, mg_lcm(4, 6) 12

File attributes

Modification date: Wed Sep 14 10:39:49 2011
Lines: 30
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.