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 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.



_______________________________________________
Chicken-users mailing list
Chicken-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to