From owner-bug-octave at bevo dot che dot wisc dot edu Sat Nov 11 13:23:28 1995 Subject: atan2 From: John Eaton To: Jack Mott Cc: bug-octave at che dot utexas dot edu Date: Sat, 11 Nov 1995 13:23:20 -0600 Jack Mott wrote: : The atan2 function in octave does not appear to correctly handle : arguments in the second quadrant: : : octave:40> atan2(1,-1) : ans = -2.3562 : : The answer should have been positive. This appears to be fixed in my current sources: $ octave Octave, version ss-951108 (alpha-dec-osf3.2). Copyright (C) 1992, 1993, 1994, 1995 John W. Eaton. This is free software with ABSOLUTELY NO WARRANTY. For details, type `warranty'. octave:1> atan2 (1, -1) ans = 2.3562 It also appears to work correctly for me in version 1.1.1. What version do you have? Thanks, jwe