[Bug fortran/14921] [gfortran] atan2 intrinsic function result error

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Apr 13 01:59:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-04-13 00:38 -------
Is 0.7853981 really correct, the following C code gives the same as g77: -2.356194?

#include <math.h>
#include <stdio.h>

int main()
{
  double t = atan2(-1., -1.0);
  printf("%f\n", t);
  return 0;
}

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-04-13 00:38:42
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14921



More information about the Gcc-bugs mailing list