[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: |
Marco Caliari |
Subject: |
[Octave-bug-tracker] [bug #59890] inf+1i*inf gives nan+1i*inf |
Date: |
Sun, 17 Jan 2021 04:14:13 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0 |
Follow-up Comment #6, bug #59890 (project octave):
I explain you how I met this case: briefly, I noticed that
octave:1> exp(-realmax+1i*realmax)
ans = -0
and then tried
octave:1> exp(-inf+1i*inf)
ans = NaN + NaNi
Matlab gives 0 in this second case and also this simple fortran77 program
program tstexp
double precision d
complex* 16 a
d = 0.0d0
a = cmplx(-1.0/d,1.0d0/d)
write(6,*) a,exp(a)
stop
end
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59890>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/