The polar coordinates of the Cartesian point are
and
Hence, . Note the use of the two-argument arctangent function, which returns an angle in one of the four quadrants. Although it is easier to use for normal manipulations, the one-argument arctangent function, namely, returns an angle in either the first or fourth quadrants.