Re: [ILUG] impressive...

From: John P . Looney (valen at domain tuatha.org)
Date: Thu 28 Oct 1999 - 15:20:14 IST


On Thu, Oct 28, 1999 at 08:59:44AM -0500, John_White at domain dell.com mentioned:
> as easy as it would be to write one that gets the factorial of 5 :)
> but you'd need a mad data type to store the result in . . .

 That's part of the point! Lisp doesn't mind!

 Question though. I was doing the lotto calculation, and:

==> (/ (factorial 42) (factorial 36))
3776965920

 Is it really a 3.777 billion to one chance of winning now ?

    42*41*40*39*38*37=3776965920

Kate

-- 
Microsoft. The best reason in the world to drink beer.
http://www.redbrick.dcu.ie/~valen


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:04:48 GMT