You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from 119372: Recover inf's and zeros in _Py_c_quot/_Py_c_quot_real
In some cases, previosly computed as (nan+nanj), we could
recover meaningful component values in the result, see
e.g. the C11, Annex G.5.2, routine _Cdivd():
>>> from cmath import inf, infj, nanj
>>> (1+1j)/(inf+infj) # was (nan+nanj)
0j
>>> (inf+nanj)/complex(2**1000, 2**-1000)
(inf-infj)
0 commit comments