This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [PATCH]: Integrate gfortran with MPC
- From: dominiq at lps dot ens dot fr (Dominique Dhumieres)
- To: fortran at gcc dot gnu dot org
- Date: Sun, 31 May 2009 23:52:27 +0200
- Subject: 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