This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients Rhamphoryncus, christian.heimes, gmcastil, gvanrossum, mark.dickinson, tim.peters
Date 2008-01-20.08:57:06
SpamBayes Score 0.06462243
Marked as misclassified No
Message-id <1200819429.01.0.469826512668.issue1640@psf.upfronthosting.co.za>
In-reply-to
Content
I'm +1 in adding fallbacks for important functions like copysign, asinh,
acosh and atanh. expm1 and log1p may be worth adding, too. Windows
doesn't have any of the functions except of _copysign().

But why write our own version if we can reuse existing implementations?
I found a set of very well written and documented implementations in the
uclibc sources of libm. The sources are under a BSDish license:

 * ====================================================
 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
 *
 * Developed at SunPro, a Sun Microsystems, Inc. business.
 * Permission to use, copy, modify, and distribute this
 * software is freely granted, provided that this notice
 * is preserved.
 * ====================================================

In #1381 I suggested two new files Python/pymath.c and Include/pymath.h.
We could stick all the replacement implementations in the files and
maybe move some of the code from Include/pyport.h and Python/hypot.c to
the new files.
History
Date User Action Args
2008-01-20 08:57:09christian.heimessetspambayes_score: 0.0646224 -> 0.06462243
recipients: + christian.heimes, gvanrossum, tim.peters, mark.dickinson, Rhamphoryncus, gmcastil
2008-01-20 08:57:09christian.heimessetspambayes_score: 0.0646224 -> 0.0646224
messageid: <1200819429.01.0.469826512668.issue1640@psf.upfronthosting.co.za>
2008-01-20 08:57:07christian.heimeslinkissue1640 messages
2008-01-20 08:57:06christian.heimescreate