octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #61715] Inconsistent NaN results for exponenti


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #61715] Inconsistent NaN results for exponential function (0+0i)^0 with libc++ and libstdc++
Date: Wed, 22 Dec 2021 10:28:13 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36 Edg/96.0.1054.62

Update of bug #61715 (project octave):

                Category:         Octave Function => Interpreter            
                  Status:                    None => Confirmed              
                 Release:                   6.4.0 => dev                    
        Operating System:                  Mac OS => Any                    
                 Summary: Inconsistent NaN results when calculating
exponential function (0+0i)^0 with Apple Silicon M1 => Inconsistent NaN
results for exponential function (0+0i)^0 with libc++ and libstdc++

    _______________________________________________________

Follow-up Comment #1:

Might be related to bug #57908.

I checked with Octave on Ubuntu Linux. When it is linked with libstdc++,
`complex(0).^0` is `1`. When it is linked with libc++, `complex(0) .^0` is
`NaN - NaNi`.
So this might indeed be another case of the standard libraries implementing
`std::pow` differently.


Still an issue on the default branch.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61715>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]