mglib

Personal IDL library for M. Galloy

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

analysis/

mg_lcm.pro


Routines

top 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 May 14 15:07:14 2014
Lines: 6
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.