ToPolarCoordinates

ToPolarCoordinates[{x,y}]

gives the {r,θ} polar coordinates corresponding to the Cartesian coordinates {x,y}.

ToPolarCoordinates[{x1,x2,,xn}]

gives the hyperspherical coordinates corresponding to the Cartesian coordinates {x1,x2,,xn}.

Details

  • ToPolarCoordinates produces points in the standard range , in two dimensions, and , , in higher dimensions.
  • ToPolarCoordinates automatically threads over arrays of coordinate lists.

Examples

open allclose all

Basic Examples  (3)

Convert a general point:

In[1]:=
Click for copyable input
Out[1]=

A specific point:

In[1]:=
Click for copyable input
Out[1]=

A conversion in dimension 3:

In[1]:=
Click for copyable input
Out[1]=

Scope  (3)

Properties & Relations  (6)

See Also

FromPolarCoordinates  CoordinateTransform  ToSphericalCoordinates  AbsArg  Norm  ArcTan  CoordinateTransformData  CoordinateChartData

Introduced in 2015
(10.1)