Example: Working with Polar Angles
1. Define two vectors of equal length, describing x and y-coordinates.
2. Use the
angle and
atan2 functions to get the corresponding angles of the x and y-coordinates.
| atan2 is not defined at (0,0). |
3. Calculate the radius vector using the x-coordinate and plot the outcome.
4. Calculate the radius using the results of the atan2 function, plot it, and compare it to the previous plot.
The two plots are identical.