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}.
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 all close allBasic Examples (3)
Scope (3)
Properties & Relations (6)
ToPolarCoordinates preserves the shape of arrays:
ToPolarCoordinates[{{{1, -1}}}]ToPolarCoordinates[{{} , {}}]ToPolarCoordinates[pt] is a special case of CoordinateTransform:
CoordinateTransform["Cartesian" -> "Polar", {x, y}] == ToPolarCoordinates[{x, y}]CoordinateTransform["Cartesian" -> "Hyperspherical", {x, y, z}] == ToPolarCoordinates[{x, y, z}]ToPolarCoordinates inverts FromPolarCoordinates:
Simplify[ToPolarCoordinates[FromPolarCoordinates[{r, θ}]], r > 0 && -Pi < θ < Pi]Simplify[ToPolarCoordinates[FromPolarCoordinates[{r, θ, φ}]], r > 0 && 0 < θ < Pi && -Pi < φ < Pi]ToPolarCoordinates converts pairs of real numbers to their polar representation:
ToPolarCoordinates[{1, 2}]AbsArg converts complex numbers to their polar representation:
AbsArg[1 + 2I]ToPolarCoordinates[{x,y,z}] uses spherical coordinates about the
axis:
ToPolarCoordinates[{x, y, z}]ToSphericalCoordinates[{x,y,z}] uses spherical coordinates about the
axis:
ToSphericalCoordinates[{x, y, z}]ToPolarCoordinates changes the coordinate values of points:
ToPolarCoordinates[{x, y}]TransformedField changes the coordinate expressions for fields:
TransformedField["Cartesian" -> "Polar", {x, y}, {x, y} -> {r, θ}]//SimplifyRelated Guides
History
Text
Wolfram Research (2015), ToPolarCoordinates, Wolfram Language function, https://reference.wolfram.com/language/ref/ToPolarCoordinates.html.
CMS
Wolfram Language. 2015. "ToPolarCoordinates." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ToPolarCoordinates.html.
APA
Wolfram Language. (2015). ToPolarCoordinates. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ToPolarCoordinates.html
BibTeX
@misc{reference.wolfram_2026_topolarcoordinates, author="Wolfram Research", title="{ToPolarCoordinates}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/ToPolarCoordinates.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_topolarcoordinates, organization={Wolfram Research}, title={ToPolarCoordinates}, year={2015}, url={https://reference.wolfram.com/language/ref/ToPolarCoordinates.html}, note=[Accessed: 13-June-2026]}