[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Bug in the numbers egg?

From: Alex Shinn
Subject: Re: [Chicken-users] Bug in the numbers egg?
Date: Wed, 10 Aug 2005 21:04:44 -0500
User-agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/21.3 (i386-pc-linux-gnu) MULE/5.0 (SAKAKI)

At Wed, 10 Aug 2005 20:37:21 -0500, Alex Shinn wrote:
> (define (power base e) ; like expt but e must be an integer

Might as well go all the way.  Attached is a patch to numbers-base.scm
which modifies the above power function to work on any real numbers
and defines the default expt case in terms of that.  It's not the
fastest implementation but it's probably better to be correct first
then optimize later.


Attachment: numbers-base.scm.diff
Description: Binary data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]