Kevrumbo
Banned
- Messages
- 5,659
- Reaction score
- 1,366
- # of dives
- 1000 - 2499
How to program an old HP 33s/35s RPN Calculator (HP Focal Language) to calculate breathing gas density for a dive.
Input prompts for Oxygen ("O"), Helium ("H") percentages only, and Depth ("D") in meters.
G0001 LBL G
G0002 INPUT O
G0003 100
G0004 ÷
G0005 1.331 [// Gas Density of O2 //]
G0006 X [// "X" denotes multiplication operation symbol and not a variable "x" //]
G0007 Σ+
G0008 INPUT H
G0009 100
G0010 ÷
G0011 0.1664 [// Gas Density of He //]
G0012 X
G0013 Σ+
G0014 RCL O
G0015 RCL H
G0016 +
G0017 100
G0018 x<>y
G0019 -
G0020 100
G0021 ÷
G0022 1.165 [// Gas Density of N2 //]
G0023 X
G0024 Σ+
G0025 INPUT D
G0026 10
G0027 ÷
G0028 1
G0029 +
G0030 Σx [// Recall Sum Total Gas Density at 1 ata//]
G0031 X [// "X" denotes multiplication operation symbol and not a variable "x" //]
G0032 ENTER
G0033 CLVARS
G0034 CLΣ
G0035 RTN
Input prompts for Oxygen ("O"), Helium ("H") percentages only, and Depth ("D") in meters.
G0001 LBL G
G0002 INPUT O
G0003 100
G0004 ÷
G0005 1.331 [// Gas Density of O2 //]
G0006 X [// "X" denotes multiplication operation symbol and not a variable "x" //]
G0007 Σ+
G0008 INPUT H
G0009 100
G0010 ÷
G0011 0.1664 [// Gas Density of He //]
G0012 X
G0013 Σ+
G0014 RCL O
G0015 RCL H
G0016 +
G0017 100
G0018 x<>y
G0019 -
G0020 100
G0021 ÷
G0022 1.165 [// Gas Density of N2 //]
G0023 X
G0024 Σ+
G0025 INPUT D
G0026 10
G0027 ÷
G0028 1
G0029 +
G0030 Σx [// Recall Sum Total Gas Density at 1 ata//]
G0031 X [// "X" denotes multiplication operation symbol and not a variable "x" //]
G0032 ENTER
G0033 CLVARS
G0034 CLΣ
G0035 RTN