Coordinate conversions in 3D (rectangular, cylindrical and spherical)
|
10-09-2016, 12:42 PM
(This post was last modified: 11-06-2016 11:41 AM by JMB.)
Post: #1
|
|||
|
|||
Coordinate conversions in 3D (rectangular, cylindrical and spherical)
I present here six short programs to convert coordinates in three dimensions, among the three coordinate systems: rectangular, cylindrical and spherical.
To accomplish this task, I use the Prime functions polar_coordinates and rectangular_coordinates. These functions automatically handle special cases (for example: ATAN(y/x) when x, y or both are zero), and place the angles in the correct quadrant. All these functions use the angular mode that is active in the calculator at the moment when they are executed. The names and conventions used for the rectangular, cylindrical and spherical coordinate systems, can be seen in the following image: PHP Code: EXPORT RecToCyl(rec) |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Coordinate conversions in 3D (rectangular, cylindrical and spherical) - JMB - 10-09-2016 12:42 PM
|
User(s) browsing this thread: 1 Guest(s)