


SOLVE program to compute the Great Circle Distance between two points on the Earth. Coordinates should be entered in decimal degrees distance is computed in kilometers. SOLVE program to compute the height of the sun above the horizon. Variables used: TILT: the angle between the Earth's axis of rotation and the normal of the ecliptic (23.5 degrees) LAT: observer's latitude (use positive values for Northern latitudes, negative values for Southern latitudes) SEAS: the current season, given as an angle between 0 and 360 degrees, with 0 being mid-winter in the Northern hemisphere, 90 being the Northern Spring equinox, etc. TOD: time of day (solar time, from 0-24, where 12 is noon solar time differs from official time, depending on where you are within your time zone) HGHT: height of the sun above the horizon, in degrees negative numbers mean nighttime. Original version of Erik Ehrling's PRM? program. NOTE: this program relies on decimal math, and will NOT produce correct results on Free42 Binary. Modified version of PRM? works with binary math, enabling it to run on Free42 Binary.īefore using, store 2^20 in "E6" and 2^40 in "E12" (you can use 2^26 and 2^52, respectively, too that way the program can work with even larger numbers).Ĭonstructs band-diagonal matrices. Put the desired dimension in X, and put a vector containing the (off-)diagonal elements in Y. If the vector's length is odd, its middle element will go on the diagonal if its length is even, the element just before the middle will go on the diagonal. Not actually a functional program just contains all the HP-42S instructions with all legal types of arguments. I used this to test the "raw" mode program import/export in Free42. The classic Master Mind number-guessing game. Numbers can contain digits 1 to 6, with duplicates allowed.

Results are displayed as B.W, with B the number of black pegs (right color AND right position), and W the number of white pegs (right color, wrong position). Use the "up" and "down" keys to scroll through the current game's history.
