]> granicus.if.org Git - python/commit
1) The overflow detection in mpd_qln() has a surprising number of case splits.
authorStefan Krah <skrah@bytereef.org>
Thu, 7 Jun 2012 15:48:47 +0000 (17:48 +0200)
committerStefan Krah <skrah@bytereef.org>
Thu, 7 Jun 2012 15:48:47 +0000 (17:48 +0200)
commit7bda265662769ddffa8c08298ed11670e737ed46
treee702a54985b2e6958e2a4314270289d3ba9a7c5f
parentcbc203e655e0c1184d67f02864353de5b01c7bc0
1) The overflow detection in mpd_qln() has a surprising number of case splits.
   List all of them in the comment.

2) Use the recently stated relative error of _mpd_qln() to generate the
   interval for the exact value of ln(x). See also the comment in mpd_qexp().
Modules/_decimal/libmpdec/mpdecimal.c