
Patrick B. answered 05/13/19
Tutor
4.7
(31)
Math and computer tutor/teacher
Other than checking for division by zero, you are definitely on the right track.
Some other things to consider:
(3 , -sqrt(3)) ---> the angle is either 330 or 150...
what does the arctangent function in java return