Moon Landing Simulation for the HP41

I adapted this program for SIM41 from the original HP25 code found in a page of David G. Hicks.
See detailed instructions in that page.

Contents of MOONLAND.PRG
------------------------


fix 4
lbl 02
rcl 00
1 E4
/
rcl 01
xSUM0?
gto 11
+
gto 13
lbl 11
x<>y
-
lbl 13
stop
rcl 02
xSUMy?
gto 34
rdn
st- 02
5
-
sto 03
2
/                                                        
rcl 00
+
rcl 01
+
sto 00
xSUM0?
gto 44
rcl 03
st+ 01
gto 02
lbl 34
rcl 01
x^2
rcl 00
10
*
+
sqrt
chs
sto 01
lbl 44
rcl 01
fix 0

You need to enter the values for Initial distance in memory 00, initial velocity in memory 01 and initial fuel in memory 02. Then you can execute MOONLAND.PRG

I tried to maintain high compatibility with original HP25 code. The label number used for each label is equal to the corresponding line in the HP25 program code.

My main goal in this translation is to test the behavior of HP25 programs running in HP41 calculators and, of course, in SIM41.

Return to main page