[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-users] Wrong function wrapped by the mathh egg
From: |
Thomas Chust |
Subject: |
[Chicken-users] Wrong function wrapped by the mathh egg |
Date: |
Thu, 11 Jan 2007 19:12:30 +0100 (CET) |
Hello,
I just wrote a few statistical functions and realized that under Linux
gamma and tgamma compute the logarithm of the gamma function (like lgamma)
and under MacOS X gamma and tgamma correctly compute the gamma function.
This is not really a bug in the egg itself but has to do with different C
library implementations: In the glibc gamma is an alias for lgamma, in the
BSD libc gamma is an alias for tgamma -- both behaviours are documented in
the man pages of the systems.
Nevertheless I think this has to be worked around in the mathh egg.
I pushed a patch to the SVN version of the egg such that it uses tgamma
under linux and gamma under other unices.
cu,
Thomas
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Chicken-users] Wrong function wrapped by the mathh egg,
Thomas Chust <=