Re: math.erfc OverflowError

2010-06-14 Thread D'Arcy J.M. Cain
On 13 Jun 2010 18:23:28 -0700 a...@pythoncraft.com (Aahz) wrote: What's your cite that URLs never end with a period? AFAIK, that's perfectly valid by the rules. Technically that may be true but when do you ever see one? If your email client discards trailing periods I think you can expect it

Re: math.erfc OverflowError

2010-06-14 Thread geremy condra
On Sun, Jun 13, 2010 at 10:36 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: geremy condra debat...@gmail.com writes: You know, I've never been a part of a community in which the URL format was the most contentious part of filing a bug report. Heck no, the bug report is already filed, and

Re: math.erfc OverflowError

2010-06-13 Thread Aahz
In article mailman.1348.1276386991.32709.python-l...@python.org, geremy condra debat...@gmail.com wrote: Bug filed, http://bugs.python.org/issue8986. Please don't put extraneous punctuation on URLs. That period is a valid URL character, but it's invalid for this URL, and it's not obvious to

Re: math.erfc OverflowError

2010-06-13 Thread Mark Dickinson
On Jun 13, 12:56 am, geremy condra debat...@gmail.com wrote: On Sat, Jun 12, 2010 at 4:40 PM, Robert Kern robert.k...@gmail.com wrote: On 2010-06-12 17:49 , geremy condra wrote: In Python3.2, calling math.erfc with a value in [-27.2, -30) raises an OverflowError: math range error. This is

Re: math.erfc OverflowError

2010-06-13 Thread D'Arcy J.M. Cain
On 13 Jun 2010 09:49:03 -0700 a...@pythoncraft.com (Aahz) wrote: Bug filed, http://bugs.python.org/issue8986. Please don't put extraneous punctuation on URLs. That period is a valid URL character, but it's invalid for this URL, and it's not obvious to the reader whether the period should be

Re: math.erfc OverflowError

2010-06-13 Thread Aahz
In article mailman.1409.1276477866.32709.python-l...@python.org, D'Arcy J.M. Cain da...@druid.net wrote: On 13 Jun 2010 09:49:03 -0700 a...@pythoncraft.com (Aahz) wrote: Please don't put extraneous punctuation on URLs. That period is a valid URL character, but it's invalid for this URL, and

Re: math.erfc OverflowError

2010-06-13 Thread Ben Finney
a...@pythoncraft.com (Aahz) writes: In article mailman.1348.1276386991.32709.python-l...@python.org, geremy condra debat...@gmail.com wrote: Bug filed, http://bugs.python.org/issue8986. Please don't put extraneous punctuation on URLs. The punctuation isn't extraneous; it's a necessary

Re: math.erfc OverflowError

2010-06-13 Thread geremy condra
On Sun, Jun 13, 2010 at 6:44 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: a...@pythoncraft.com (Aahz) writes: In article mailman.1348.1276386991.32709.python-l...@python.org, geremy condra  debat...@gmail.com wrote: Bug filed, http://bugs.python.org/issue8986. Please don't put

Re: math.erfc OverflowError

2010-06-13 Thread Steven D'Aprano
On Sun, 13 Jun 2010 19:05:28 -0700, geremy condra wrote: On Sun, Jun 13, 2010 at 6:44 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: a...@pythoncraft.com (Aahz) writes: In article mailman.1348.1276386991.32709.python-l...@python.org, geremy condra  debat...@gmail.com wrote: Bug filed,

Re: math.erfc OverflowError

2010-06-13 Thread Ben Finney
geremy condra debat...@gmail.com writes: You know, I've never been a part of a community in which the URL format was the most contentious part of filing a bug report. Heck no, the bug report is already filed, and contentions about the bug report should presumably be going into that report.

[issue8986] math.erfc OverflowError

2010-06-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +mark.dickinson stage: - unit test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8986 ___

[issue8986] math.erfc OverflowError

2010-06-13 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- assignee: - mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8986 ___ ___

[issue8986] math.erfc OverflowError

2010-06-13 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks for the report. What platform are you on? I'm not seeing this behaviour on OS X: Python 3.2a0 (py3k:81935M, Jun 12 2010, 10:01:38) [GCC 4.2.1 (Apple Inc. build 5659)] on darwin Type help, copyright, credits or license for more

[issue8986] math.erfc OverflowError

2010-06-13 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8986 ___ ___ Python-bugs-list

[issue8986] math.erfc OverflowError

2010-06-13 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Geremy, can you verify that the attached patch fixes the problem? If so, I'll add tests and commit. -- keywords: +patch Added file: http://bugs.python.org/file17654/issue8986.patch ___ Python

[issue8986] math.erfc OverflowError

2010-06-13 Thread geremy condra
geremy condra debat...@gmail.com added the comment: On Sun, Jun 13, 2010 at 5:47 AM, Mark Dickinson rep...@bugs.python.org wrote: Mark Dickinson dicki...@gmail.com added the comment: Geremy, can you verify that the attached patch fixes the problem?  If so, I'll add tests and commit. I've

[issue8986] math.erfc OverflowError

2010-06-13 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Fixed in r81967 (trunk) and r81968 (py3k). I had to weaken the tests for erfc: its accuracy for largish arguments (25.0 or so) is not ideal---I was seeing errors of 100 ulps and more. However, I think this level of error is acceptable in

math.erfc OverflowError

2010-06-12 Thread geremy condra
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

Re: math.erfc OverflowError

2010-06-12 Thread Robert Kern
On 2010-06-12 17:49 , geremy condra wrote: 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

Re: math.erfc OverflowError

2010-06-12 Thread geremy condra
On Sat, Jun 12, 2010 at 4:40 PM, Robert Kern robert.k...@gmail.com wrote: On 2010-06-12 17:49 , geremy condra wrote: 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

Re: math.erfc OverflowError

2010-06-12 Thread Steven D'Aprano
On Sat, 12 Jun 2010 15:49:37 -0700, geremy condra wrote: 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

Re: math.erfc OverflowError

2010-06-12 Thread geremy condra
On Sat, Jun 12, 2010 at 11:05 PM, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: On Sat, 12 Jun 2010 15:49:37 -0700, geremy condra wrote: 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

[issue8986] math.erfc OverflowError

2010-06-12 Thread geremy condra
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