powered by
Utility function to convert rectangular (Euclidean) coordinates to polar coordinates.
rectToPolar(x,y)
x-axis in rectangular coords
y-axis in rectangular coords
# NOT RUN { x = runif(100,-1,1) y = runif(100,-1,1) polar_coords = rectToPolar(x,y) # }
Run the code above in your browser using DataLab