Least common multiple?

Pondering the philosophy behind the language
Locked
Kazimir Majorinc
Posts: 388
Joined: Thu May 08, 2008 1:24 am
Location: Croatia
Contact:

Least common multiple?

Post by Kazimir Majorinc »

It appears that Newlisp doesn't have least common multiple, right? If not, I propose the addition (with name lcm), at least because of symmetry: its "pair", gcd is already here - alone.

Btw, support for real numbers is impressive: beta, gamma, erf, Fourier's transformation. How these functions found their way to Newlisp?

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Re: Least common multiple?

Post by cormullion »

I think Lutz is a statistician - he probably uses a lot of those functions more than anyone else...

I've often wanted to find a use for Fourier transforms...

Kazimir Majorinc
Posts: 388
Joined: Thu May 08, 2008 1:24 am
Location: Croatia
Contact:

Re: Least common multiple?

Post by Kazimir Majorinc »

Intelligence agency informed me that kosh implemented one lcm : https://gist.github.com/897015

newdep
Posts: 2038
Joined: Mon Feb 23, 2004 7:40 pm
Location: Netherlands

Re: Least common multiple?

Post by newdep »

Always good to have connections with the intelligence agency ;-) Nice one!
Perhaps that could become a buildin? Just try to bribe Lutz with a Beer .. you never know ;-)
-- (define? (Cornflakes))

Locked