This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH]: Integrate gfortran with MPC


What is the mathematical meaning of inf + inf i?
In my opinion it does not have any since its argument is
based on the value of atan(inf/inf), i.e. atan(nan)==nan.

So, unless specified otherwise by the standard (and I did not find anything
in the f2008 draft about it), I think complex/0.0 or (real/complex)/(0.0,0.0)
should return a nan.

Note that atan2(+Inf,+Inf) returns pi/4, again I think it should return
a nan.

Any better ideas?

Cheers

Dominique


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]