Slime wrote:
> You can try replacing atan(y/x) by atan2(y,x) which avoids the division by
> zero and also avoids the problem that 1/2 is equal to -1/-2 and thereby
> gives more useful results for all values of x and y.
Whee, that fixed it. Thanks!
--
Tim Cook
http://home.bellsouth.net/p/PWP-empyrean
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------
Post a reply to this message
|