WOLFRAM

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

Details

Examples

open allclose all

Basic Examples  (2)Summary of the most common use cases

Convert a general point:

Out[1]=1

A specific point:

Out[1]=1

Scope  (2)Survey of the scope of standard use cases

Convert several points:

Out[1]=1

A matrix of points:

Out[1]=1

Properties & Relations  (4)Properties of the function, and connections to other functions

ToSphericalCoordinates[pt] is a special case of CoordinateTransform:

Out[2]=2

ToSphericalCoordinates inverts FromSphericalCoordinates:

Out[1]=1

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

Out[1]=1

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

Out[2]=2

The spherical coordinates used by ToPolarCoordinates generalize to higher dimensions:

Out[3]=3

ToSphericalCoordinates changes the coordinate values of points:

Out[1]=1

TransformedField changes the coordinate expressions for fields:

Out[2]=2
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.

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 ]}

@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 ]}

@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 ]}