|
From: | Thomas Chust |
Subject: | Re: [Chicken-users] Bug in the numbers egg? |
Date: | Thu, 11 Aug 2005 21:29:25 +0200 |
User-agent: | Mozilla Thunderbird 1.0.6 (Macintosh/20050716) |
Hello,thank you for the patch. I don't even think it is too slow, as it is still comparable in speed with dc, which is really fast.
With this problem removed, the numbers egg is really cool! cu, Thomas Chust Alex Shinn wrote:
At Wed, 10 Aug 2005 20:37:21 -0500, Alex Shinn wrote:(define (power base e) ; like expt but e must be an integerMight 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.
[Prev in Thread] | Current Thread | [Next in Thread] |