[Python-bugs-list] [ python-Bugs-409448 ] Complex division is braindead
noreply@sourceforge.net
noreply@sourceforge.net
Sat, 17 Mar 2001 13:45:13 -0800
Bugs item #409448, was updated on 2001-03-17 13:45
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=409448&group_id=5470
Category: Python Interpreter Core
Group: None
Status: Open
Priority: 5
Submitted By: Tim Peters (tim_one)
Assigned to: Tim Peters (tim_one)
Summary: Complex division is braindead
Initial Comment:
>>> x = complex(1e200, 1e200)
>>> x/x
0j
>>> x = complex(1e-200, 1e-200)
>>> x/x
(1.#INF-1.#INDj)
>>>
This is nothing new; it's always been this way; the
algorithm we use is numerically naive, ignoring the
possibility for overflow and underflow in internal
intermediate results. The results will vary across
platforms in such cases, in unpredictable ways (the
above was run on a WinTel box).
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=409448&group_id=5470