Cartesian to Polar

Description

Conversion from cartesian to polar co-ordinates

Usage

1
2
3
r.xy(x, y)

phi.xy(x, y)

Arguments

x

x co-ordinate

y

y co-ordinate

Value

r or phi respectively from x and y

Functions

  • r.xy: Returns polar co-ordinate r from cartesian co-ordinates x and y.

  • phi.xy: Returns polar co-ordinate phi (anti-clockwise rotation from positive x-axis) from cartesian co-ordinates x and y.