ToSphericalCoordinates
✖
ToSphericalCoordinates
gives the {r,θ,ϕ} spherical coordinates corresponding to the Cartesian coordinates {x,y,z}.
Details

- ToSphericalCoordinates produces points in the standard range
,
,
.
- ToSphericalCoordinates automatically threads over arrays of {x,y,z} triples.

Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Scope (2)Survey of the scope of standard use cases
Properties & Relations (4)Properties of the function, and connections to other functions
ToSphericalCoordinates[pt] is a special case of CoordinateTransform:

https://wolfram.com/xid/0v5rb59ehoub6-6epzk4

ToSphericalCoordinates inverts FromSphericalCoordinates:

https://wolfram.com/xid/0v5rb59ehoub6-sz06xa

ToSphericalCoordinates[{x,y,z}] uses spherical coordinates about the axis:

https://wolfram.com/xid/0v5rb59ehoub6-mxdwg7

ToPolarCoordinates[{x,y,z}] uses spherical coordinates about the axis:

https://wolfram.com/xid/0v5rb59ehoub6-fs682w

The spherical coordinates used by ToPolarCoordinates generalize to higher dimensions:

https://wolfram.com/xid/0v5rb59ehoub6-o5vhod

ToSphericalCoordinates changes the coordinate values of points:

https://wolfram.com/xid/0v5rb59ehoub6-8ymbgz

TransformedField changes the coordinate expressions for fields:

https://wolfram.com/xid/0v5rb59ehoub6-4naww

Wolfram Research (2015), ToSphericalCoordinates, Wolfram Language function, https://reference.wolfram.com/language/ref/ToSphericalCoordinates.html.
Text
Wolfram Research (2015), ToSphericalCoordinates, Wolfram Language function, https://reference.wolfram.com/language/ref/ToSphericalCoordinates.html.
Wolfram Research (2015), ToSphericalCoordinates, Wolfram Language function, https://reference.wolfram.com/language/ref/ToSphericalCoordinates.html.
CMS
Wolfram Language. 2015. "ToSphericalCoordinates." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ToSphericalCoordinates.html.
Wolfram Language. 2015. "ToSphericalCoordinates." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ToSphericalCoordinates.html.
APA
Wolfram Language. (2015). ToSphericalCoordinates. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ToSphericalCoordinates.html
Wolfram Language. (2015). ToSphericalCoordinates. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ToSphericalCoordinates.html
BibTeX
@misc{reference.wolfram_2025_tosphericalcoordinates, author="Wolfram Research", title="{ToSphericalCoordinates}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/ToSphericalCoordinates.html}", note=[Accessed: 29-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_tosphericalcoordinates, organization={Wolfram Research}, title={ToSphericalCoordinates}, year={2015}, url={https://reference.wolfram.com/language/ref/ToSphericalCoordinates.html}, note=[Accessed: 29-March-2025
]}