MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Lowest Common Multiple programming

  • To: mathgroup at smc.vnet.net
  • Subject: [mg85541] Lowest Common Multiple programming
  • From: "Lea Rebanks" <lrebanks at netvigator.com>
  • Date: Wed, 13 Feb 2008 04:27:09 -0500 (EST)

Hi All,

I am trying to make a programming code to find the LCM between the following
numbers.
I DO NOT want to use Prime Factorization but wish to setup some kind of
table multiplication process until required results are found.

Here are the correct results shown using LCM function

LCM[Rationalize[1.4137, 0], 
   Rationalize[2.5, 0], 5, 
   Rationalize[12.5, 0]]
353425
N[%/{Rationalize[1.4137, 0], 
       Rationalize[2.5, 0], 5, 
       Rationalize[12.5, 0]}]
{250000., 141370., 70685., 28274.}

Any help & advice gratefully received.
Many thanks for your help & attention.

Best Regards - Lea Rebanks...



  • Prev by Date: ImageResolution bug In Mathematica 6.0
  • Next by Date: NearestFunction Algorithm
  • Previous by thread: ImageResolution bug In Mathematica 6.0
  • Next by thread: Re: Lowest Common Multiple programming