find the lowest common denominator

01152018, 10:25 AM
Post: #1




find the lowest common denominator
hello
how can i find the lowest common denominator of two numbers with Hp prime ? thanks 

01152018, 12:53 PM
Post: #2




RE: find the lowest common denominator
I'm not sure there is a buildin function providing the lowest common denominator.
So here is a small program doing that: Code: EXPORT LCD(N,M) 

01152018, 12:59 PM
Post: #3




RE: find the lowest common denominator
(01152018 12:53 PM)Didier Lachieze Wrote: I'm not sure there is a buildin function providing the lowest common denominator. There is: it's the lcm function (lowest common multiple). In CAS, it works on integers of any length. lcm(12,18) > 36 1/12+1/18 > 5/36 It also works on polynomials, not just integers. <0ΙΈ0> Joe 

01152018, 01:20 PM
(This post was last modified: 01152018 01:21 PM by Didier Lachieze.)
Post: #4




RE: find the lowest common denominator
Good point, I misunderstood the request as beeing for the lowest common divisor.


01162018, 12:31 AM
Post: #5




RE: find the lowest common denominator
I'm getting to go through this basic math with my kids now.
I think the least common divisor can be found with the "1" function. ;^) On the 50g, this was actually function of sort, at least a token so that this commonly used number parsed faster than a number literal. Don't know that they have done the same with the Prime. jgs 

« Next Oldest  Next Newest »

User(s) browsing this thread: