Re: [PATCH]: Bug with expt

2000-07-13 Thread Dirk Herrmann
On 12 Jul 2000, Mikael Djurfeldt wrote: The test for exactness if wrong here: Rationals (if supported) could fulfill that predicate as well. I will apply the following patch: diff -u -r1.208 boot-9.scm --- boot-9.scm 2000/07/01 17:01:22 1.208 +++ boot-9.scm 2000/07/12

Re: [PATCH]: Bug with expt

2000-07-13 Thread Mikael Djurfeldt
Dirk Herrmann [EMAIL PROTECTED] writes: - exponent is a negative integer -- result could be a rational if those were supported. This could be handled nicely: cond ((and (integer? z2) ( z2 0)) (/ 1 (integer-expt z1 (- z2 Shall I add this special case to expt? Yes. It

Re: [PATCH]: Bug with expt

2000-07-12 Thread Mikael Djurfeldt
Dirk Herrmann [EMAIL PROTECTED] writes: The test for exactness if wrong here: Rationals (if supported) could fulfill that predicate as well. I will apply the following patch: diff -u -r1.208 boot-9.scm --- boot-9.scm 2000/07/01 17:01:22 1.208 +++ boot-9.scm 2000/07/12 07:23:07 @@