Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/main/05Manifold_Spher_Higher_Dim.ipynb
Views: 281
5. Spheres and spherical coordinates in higher dimensions
This notebook is part of the Introduction to manifolds in SageMath by Andrzej Chrzeszczyk (Jan Kochanowski University of Kielce, Poland).
In the EuclideanSpace
class, the transitions from spherical to Cartesian and Cartesian to spherical coordinates are predefined in the case (SageMath 9.5).
Example 5.1
Let us demonstrate spherical coordinates for .
The manifolds.Sphere
module allows for higher dimensions.
We can use predefined embeddings and transition functions on higher dimensional spheres.
Example 5.2
Let us demonstrate the case of 3-dimensional sphere in .
The stereographic projections are also accessible in higher dimensions.
Example 5.3
Stereographic coordinates in .
We have also the corresponding transitions in predefined.
Example 5.4
Spherical coordinates in .
We can use manifolds.Sphere
to obtain the transition from spherical to Cartesian coordinates in .
The result can be used to define the transition spherU -> cartU in .
Inverse transition can be defined as follows:
The failed computations reflect a lack of simplification in SageMath
and can be checked by hand (https://en.wikipedia.org/wiki/Atan2)
Example 5.5
Spherical coordinates in .
Using the result we can define the transition spherU -> cartU in .
Inverse transition:
What's next?
Take a look at the notebook The notion of module.