[Chicken-users] Different factorial results

2011-06-03 Thread Steve Graham
In running (factorial 50) (define (factorial n) (if ( n 2) 1 (* n (factorial (- n 1) I found that Chicken Scheme's result differed from Petite Chez, Kawa and Gambit. The former gave 3.04140932017134e+064 and the latter 3 gave

Re: [Chicken-users] Different factorial results

2011-06-03 Thread Mario Domenech Goulart
Hi Steve, On Fri, 3 Jun 2011 07:26:58 -0700 (PDT) Steve Graham jsgraha...@yahoo.com wrote: In running (factorial 50) (define (factorial n) (if ( n 2) 1 (* n (factorial (- n 1) I found that Chicken Scheme's result differed from Petite Chez, Kawa and Gambit. The former gave

Re: [Chicken-users] Different factorial results

2011-06-03 Thread Steve Graham
...@gmail.com wrote: From: Mario Domenech Goulart mario.goul...@gmail.com Subject: Re: [Chicken-users] Different factorial results To: Steve Graham jsgraha...@yahoo.com Cc: Chicken-users chicken-users@nongnu.org Date: Friday, June 3, 2011, 10:36 AM Hi Steve, On Fri, 3 Jun 2011 07:26:58 -0700 (PDT

Re: [Chicken-users] Different factorial results

2011-06-03 Thread John Cowan
Steve Graham scripsit: Thanks, Mario. Worked like a charm. Why is that not part of the base package? Licensing. The numbers egg has to be GPL, because it depends on the GMP (GNU Multi-precision Library) which is GPL. The overall license for Chicken, however, is BSD. There are alternatives

Re: [Chicken-users] Different factorial results

2011-06-03 Thread Kon Lovett
On Jun 3, 2011, at 9:49 AM, John Cowan wrote: Steve Graham scripsit: Thanks, Mario. Worked like a charm. Why is that not part of the base package? Licensing. The numbers egg has to be GPL, because it depends on the GMP (GNU Multi-precision Library) which is GPL. The overall

Re: [Chicken-users] Different factorial results

2011-06-03 Thread Jim Ursetto
On Jun 3, 2011, at 11:49 AM, John Cowan wrote: Steve Graham scripsit: Thanks, Mario. Worked like a charm. Why is that not part of the base package? Licensing. The numbers egg has to be GPL, because it depends on the GMP (GNU Multi-precision Library) which is GPL. numbers is BSD and

Re: [Chicken-users] Different factorial results

2011-06-03 Thread Mario Domenech Goulart
Hi John, On Fri, 3 Jun 2011 12:49:26 -0400 John Cowan co...@mercury.ccil.org wrote: Steve Graham scripsit: Thanks, Mario. Worked like a charm. Why is that not part of the base package? Licensing. The numbers egg has to be GPL, because it depends on the GMP (GNU Multi-precision Library)

Re: [Chicken-users] Different factorial results

2011-06-03 Thread Peter Bex
On Fri, Jun 03, 2011 at 12:49:26PM -0400, John Cowan wrote: Steve Graham scripsit: Thanks, Mario. Worked like a charm. Why is that not part of the base package? Licensing. The numbers egg has to be GPL, because it depends on the GMP (GNU Multi-precision Library) which is GPL. This

Re: [Chicken-users] Different factorial results

2011-06-03 Thread Alex Queiroz
Hallo, On Fri, Jun 3, 2011 at 7:06 PM, Peter Bex peter@xs4all.nl wrote: It's not in core mostly because it would make things slower (though I'm not 100% convinced of that; there's type dispatching for fixnums/flonums already anyway) and because it is an extra-large additional pile of

Re: [Chicken-users] Different factorial results

2011-06-03 Thread Steve Graham
Thanks, John. --- On Fri, 6/3/11, Peter Bex peter@xs4all.nl wrote: From: Peter Bex peter@xs4all.nl Subject: Re: [Chicken-users] Different factorial results To: John Cowan co...@mercury.ccil.org Cc: Steve Graham jsgraha...@yahoo.com, Chicken-users chicken-users@nongnu.org Date