HP Prime Forum

Full Version: geodetic coordinates
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This HP Prime program, demo_geodet1, demonstrates how to compute geodetic latitude and altitude given a geocentric declination and radius. It uses a series solution.

Here's the output created by this program.


geocentric declination = 44.9999999999

geocentric radius = 8000 kilometers

geodetic latitude = 45.1531567167 degrees

geodetic altitude = 1632.57197517 kilometers
This version does not use global variables.

The previous version was developed using the Virtual calculator in the connectivity kit and worked fine with global variables. However, the original program did not work with the physical calculator.
This version does contain global variables. It appears that a program for the calculator must be "complete" in order to use global variables. That is, the main program and all support routines must be included in one single file.
Reference URL's