Re: atan2 weirdness

2008-07-21 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Carsten Haese wrote: > Since pi is close to 3 ... "Biblical pi" = 3. -- http://mail.python.org/mailman/listinfo/python-list

Re: atan2 weirdness

2008-07-19 Thread Raymond Hettinger
On Jul 19, 9:12 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > hi > > atan2 is supposed to return the angle to x-axis when given y and x, I > suppose if I take [x,y] to one full circle, I should get 0-360 degree > back but no, I get 3 full revolutions! > maybe my understanding is wrong. >

Re: atan2 weirdness

2008-07-19 Thread Carsten Haese
[EMAIL PROTECTED] wrote: hi atan2 is supposed to return the angle to x-axis when given y and x, I suppose if I take [x,y] to one full circle, I should get 0-360 degree back but no, I get 3 full revolutions! maybe my understanding is wrong. from math import * def f(ang): a=ang if a>360: a