spherical coordinates

Paul Rubin http
Wed Apr 14 06:25:27 EDT 2004


Peter Maas <peter.maas at mplusr.de> writes:
> r = sqrt(x**2 + y**2)
> phi = atan(y/x)

Better use phi=atan2(y,x) in case x=0.  Similarly for the other atan calls.



More information about the Python-list mailing list