[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #59890] inf+1i*inf gives nan+1i*inf
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #59890] inf+1i*inf gives nan+1i*inf |
Date: |
Sat, 16 Jan 2021 11:56:42 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 |
Follow-up Comment #1, bug #59890 (project octave):
Are you expecting NaN+NaNi?
There is no pure imaginary type and we just use C++ complex arithmetic
operations. So you are seeing
Inf + (0,1)*Inf =>
Inf + (NaN,Inf) =>
(NaN,Inf)
Isn't that what C++ <complex> always does or is that behavior unspecified by
the standard?
Even if we fixed this for Octave (by introducing special cases or our own
special complex class, it would not fix it for external libraries that perform
complex arithmetic.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59890>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #59890] inf+1i*inf gives nan+1i*inf, Marco Caliari, 2021/01/16
- [Octave-bug-tracker] [bug #59890] inf+1i*inf gives nan+1i*inf,
John W. Eaton <=
- [Octave-bug-tracker] [bug #59890] inf+1i*inf gives nan+1i*inf, Marco Caliari, 2021/01/16
- [Octave-bug-tracker] [bug #59890] inf+1i*inf gives nan+1i*inf, Dmitri A. Sergatskov, 2021/01/16
- [Octave-bug-tracker] [bug #59890] inf+1i*inf gives nan+1i*inf, Rik, 2021/01/16
- [Octave-bug-tracker] [bug #59890] inf+1i*inf gives nan+1i*inf, Rik, 2021/01/16
- [Octave-bug-tracker] [bug #59890] inf+1i*inf gives nan+1i*inf, Marco Caliari, 2021/01/17
- [Octave-bug-tracker] [bug #59890] inf+1i*inf gives nan+1i*inf, Markus Mützel, 2021/01/17