HP Forums
U.S. 1976 Standard Atmosphere - HP Prime - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: HP Prime Software Library (/forum-15.html)
+--- Thread: U.S. 1976 Standard Atmosphere - HP Prime (/thread-18789.html)



U.S. 1976 Standard Atmosphere - HP Prime - cdeaglejr - 09-10-2022 02:05 PM

// program demo_us76 HP Prime

// September 10, 2022

// this HP Prime program demonstrates how to interact with the
// us76_atmos subroutine which computes the properties of the
// U.S. 1976 standard atmosphere between 0 and 950 kilometers altitude

For a user-specified altitude in kilometers, the program provides the following atmospheric properties

print("altitude " + round(alt, 4) + " kilometers");

print("temperature " + round(atmtmp, 4) + " degrees Kelvin");

print("density " + atmdns + " kilograms/meter^3");

print("pressure " + atmprs + " newton/meter^2");

print("speed of sound " + round(atmsos, 4) + " meters/second");