Perhaps for this particular environment where the C compiler doesn't bundle the required math functions (= only Microsoft?), a proper behavior would be for the configure script to check for optional availability of this external support library for the same math functions (the msun library or similar choice) and if so link it in but for basis provide an internal implementation that's focused on being short and toti-compatible?
2014-01-31 Bakul Shah bakul@bitblocks.com
On Thu, 30 Jan 2014 17:51:26 EST Bradley Lucier lucier@math.purdue.edu wrote:
On Jan 30, 2014, at 5:43 PM, Bakul Shah wrote:
On Thu, 30 Jan 2014 16:27:11 EST Marc Feeley feeley@iro.umontreal.ca
wrote:
Anyone know of a good portable implementation of those functions
(sinh, cosh,
tanh, asinh, acosh, atanh, expm1, log1p, scalbn)? I'll take a poor implementation if a good one doesn't exist...
May be you can use FreeBSD's math lib (originally from Sun). https://github.com/freebsd/freebsd/tree/master/lib/msun
Yes, this library is a good option (I don't know whether FreeBSD made many changes to the original Sun library).
There have been a number of changes, support for more arch, long double, complex number versions, performance imrovements, fixes, etc. etc. You can trawl through its history to see what was done. I don't use them enough to know of their accuracy and I don't know if exhaustive tests are run regularly. You should talk to Bruce Evans and David Schultz for details. _______________________________________________ Gambit-list mailing list Gambit-list@iro.umontreal.ca https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list