Re: Lowest Common Multiple programming
- To: mathgroup at smc.vnet.net
- Subject: [mg85617] Re: [mg85541] Lowest Common Multiple programming
- From: Murray Eisenberg <murray at math.umass.edu>
- Date: Fri, 15 Feb 2008 06:50:23 -0500 (EST)
- Organization: Mathematics & Statistics, Univ. of Mass./Amherst
- References: <200802130927.EAA22054@smc.vnet.net>
- Reply-to: murray at math.umass.edu
There's already a LCM function built in to Mathematica, so why do you
want to program it?
Sounds like a homework assignment. We don't do those here.
Lea Rebanks wrote:
> 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...
>
>
--
Murray Eisenberg murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower phone 413 549-1020 (H)
University of Massachusetts 413 545-2859 (W)
710 North Pleasant Street fax 413 545-1801
Amherst, MA 01003-9305
- References:
- Lowest Common Multiple programming
- From: "Lea Rebanks" <lrebanks@netvigator.com>
- Lowest Common Multiple programming