- numpy - matplotlib Physim

Spherical to Cartesian Coordinates

In this section you will practice and apply what you have learned from the Spherical and Cartesian Coordinate simulations, creating a conversion calculator from one coordinate system to another and understanding the calculations being done.


If you are looking for a reference for Python consider looking at the Python Reference Sheet on the site.



Below are sample runs of some of the outputs you should get when running the program.


Spherical to Cartesian Coordinates:


For user input r = 13.2, θ = 67.49, and Φ = 33.01, the output should be:


For user input r = 5.7, θ = -163.90, and Φ = 87.45, the output should be:


For user input r = 9.5, θ = 66.33, and Φ = 33.66, the output should be:


For user input r = -11.8, θ = -54.93, and Φ = -126.62, the output should be:


For user input r = 7.4, θ = 11.31, and Φ = 75.36, the output should be:



Here is a code editor so that you can compute your converter program.


# insert your code here


Go Back to Coordinate Exercises Page