Path: utzoo!utgpu!watmath!watcgl!fjhenigman From: fjhenigman@watcgl.waterloo.edu (Frank J. Henigman) Newsgroups: comp.sys.sgi Subject: atan2(0, 0) = ??? Keywords: math Message-ID: <9868@watcgl.waterloo.edu> Date: 24 May 89 00:01:26 GMT Distribution: comp Organization: U of Waterloo, Ontario Lines: 13 The man page for atan2 explicitly states that atan2(0, 0) = 0. However the following program outputs NaN. #include main() { printf("%f\n", atan2(0.0, 0.0)); } Which is wrong: the man page or atan2? (I tried both libm and libm43 on a Personal Iris and a 4D.) -- fjhenigman@watcgl.uwaterloo.ca Computer Graphics Lab fjhenigman@watcgl.waterloo.edu Frank J. Henigman University of Waterloo ...!watmath!watcgl!fjhenigman Waterloo, Ontario, Canada