[New-bugs-announce] [issue8986] math.erfc OverflowError

geremy condra report at bugs.python.org
Sun Jun 13 01:51:00 CEST 2010

New submission from geremy condra <debatem1 at gmail.com>:

In Python3.2, calling math.erfc with a value in [-27.2, -30) raises
an OverflowError: math range error. This is inconsistent with the
erfc function from scipy (scipy.special.erfc) as well as with the C99
function by the same name, both of which return 2. I suspect that
this is the result of the cutoff for the use of the continuing fraction
approximation of erfc beginning when abs(x) > 30, but I'm not sure.

components: Library (Lib)
messages: 107718
nosy: debatem1
priority: normal
severity: normal
status: open
title: math.erfc OverflowError
type: behavior
versions: Python 3.2

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list