From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,42a26ec63763bfa7,start X-Google-Attributes: gidfee84,public From: Isabeau's mom Subject: atan2 on an alpha Date: 1996/09/11 Message-ID: <3236E6F0.FF6D5DF@fndaut.fnal.gov>#1/1 X-Deja-AN: 179957527 content-type: text/plain; charset=us-ascii organization: FERMILAB, Batavia, IL mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 3.0Gold (X11; I; SunOS 4.1.3 sun4c) hi, can anyone tell me why the following program - #include #include int main(void) { double ans, y = 0, x = 0; ans = atan2(y,x); (void)printf("atan2(%g,%g) = %g\n",y,x,ans); return(0); } when built like cc -fptm su -D_POSIX_SOURCE -lm aa.c outputs atan2(0,0) = 0 but when built like this cc -fptm su -D_POSIX_SOURCE -migrate -lm aa.c outputs atan2(0,0) = NaNQ i do know that x = y = 0 is listed as "invalid argument" in the atan2 man pages. thanks eileen -- It's a wonderful thing to be an afternoon