atan(%inf, %inf)==%pi/4. Should be %nan
Reported by Samuel GOUGEON (@sgougeon)
BUG DESCRIPTION:
----------------
atan(%inf, %inf) answers %pi/4
This is wrong. We only know that the angle is somewhere on [0,%pi/2], but we don't know where => isnan.
ERROR LOG:
----------
none. Wrong result
HOW TO REPRODUCE THE BUG:
-------------------------
atan( %inf, %inf)
atan(-%inf, %inf)
atan (%inf,-%inf)
atan(-%inf,-%inf)
OTHER INFORMATION:
------------------
octave-3.2.4.exe:6> atan2(inf,inf)
ans = NaN
is correct