This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author CliffM
Recipients CliffM
Date 2013-10-12.21:39:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1381613985.13.0.579421159234.issue19237@psf.upfronthosting.co.za>
In-reply-to
Content
While implementing a Least-Common-Multiple function (LCM), I noticed that although python has a Greatest-Common-Divisor (GCD) function in the fractions module, the LCM, its counterpart is not there.

I've attached a patch which implements and tests LCM in the fractions module. 

It would really need documentation, but maybe GCD and LCD should be moved to the math module first ?
History
Date User Action Args
2013-10-12 21:39:45CliffMsetrecipients: + CliffM
2013-10-12 21:39:45CliffMsetmessageid: <1381613985.13.0.579421159234.issue19237@psf.upfronthosting.co.za>
2013-10-12 21:39:45CliffMlinkissue19237 messages
2013-10-12 21:39:45CliffMcreate