[ python-Feature Requests-1163139 ] expm1 and log1p
SourceForge.net
noreply at sourceforge.net
Fri Jun 3 03:34:53 CEST 2005
Feature Requests item #1163139, was opened at 2005-03-14 12:24
Message generated for change (Comment added) made by rhettinger
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1163139&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: None
>Status: Closed
>Resolution: Rejected
Priority: 5
Submitted By: Keith Briggs (kbriggs)
Assigned to: Nobody/Anonymous (nobody)
Summary: expm1 and log1p
Initial Comment:
Could we please have expm1 and log1p interfaced in the
math module (where these exist in libm)? These are
essential for any serious mathematical applications.
lgamma would be nice too.
----------------------------------------------------------------------
>Comment By: Raymond Hettinger (rhettinger)
Date: 2005-06-02 20:34
Message:
Logged In: YES
user_id=80475
For the reasons mentioned by Tim, closing this RFE.
----------------------------------------------------------------------
Comment By: Tim Peters (tim_one)
Date: 2005-03-14 13:20
Message:
Logged In: YES
user_id=31435
Python code intends to be portable, and the math module
hasn't yet included any platform-specific functions.
I used to write math libraries for a living, so I know about
netlib <wink>. If that's the intended approach to portability ,
it still needs someone to volunteer to do all the non-trivial
coding, testing, doc, license-hassling, and x-platform config
work. Won't be me because I can't make time for it.
Note that you could easily write an extension module
exposing these functions on _your_ platform (assuming your
platform C supplies them).
----------------------------------------------------------------------
Comment By: Keith Briggs (kbriggs)
Date: 2005-03-14 12:59
Message:
Logged In: YES
user_id=888261
Is there an objection in principle to including something in the
math module only if it is found in the system's libm?
If so, a solution would be to use a C implementation of expm1
when it is not already supplied, for example from fdlibm:
http://www.netlib.org/fdlibm/
----------------------------------------------------------------------
Comment By: Tim Peters (tim_one)
Date: 2005-03-14 12:39
Message:
Logged In: YES
user_id=31435
Hard one, since none of those functions are required by the
C89 standard, Python doesn't require more than C89, and the
math module overwhelmingly consists of thin wrappers
around the platform C's implementations. When C99 is
universally available, then it will be easy. Before then,
someone would have to volunteer non-trivial work (for
example, Microsoft's C runtime doesn't supply any of these --
it's a x-platform mess).
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1163139&group_id=5470
More information about the Python-bugs-list
mailing list