Are there functions for conversion between different coordinate systems?
For example, Matlab has [rho,phi] = cart2pol(x,y) for conversion from cartesian
[rho,phi] = cart2pol(x,y)
There is a better way to write polar(), here it is:
def polar(x,y): `returns r, theta(degrees)` return math.hypot(x,y),math.degrees(math.atan2(y,x))