summaryrefslogtreecommitdiff
path: root/Lib/encodings/cp500.py
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2012-06-16 19:45:35 +0200
committerStefan Krah <skrah@bytereef.org>2012-06-16 19:45:35 +0200
commit90eec771926a678cfaf70dbcd967851fa046e25e (patch)
treef458db886393021bd9f14b908e6f26091d1a5302 /Lib/encodings/cp500.py
parente3203efc042e1a29f0dd4f435966d00bca9c79bd (diff)
downloadcpython-90eec771926a678cfaf70dbcd967851fa046e25e.tar.gz
1) State the relative errors of the power functions for integer exponents.
2) _mpd_qpow_mpd(): Abort the loop for all specials, not only infinity. 3) _mpd_qpow_mpd(): Make the function more general and distinguish between zero clamping and folding down the exponent. The latter case is currently handled by setting context->clamp to 0 before calling the function. 4) _mpd_qpow_int(): Add one to the work precision in case of a negative exponent. This is to get the same relative error (0.1 * 10**-prec) for both positive and negative exponents. The previous relative error for negative exponents was (0.2 * 10**-prec). Both errors are _before_ the final rounding to the context precision.
Diffstat (limited to 'Lib/encodings/cp500.py')
0 files changed, 0 insertions, 0 deletions