The Museum of HP Calculators


Tank Volume for the HP 42S

This program is by Ken Delsnider and is used here by permission.

This program is supplied without representation or warranty of any kind. Ken Delsnider and The Museum of HP Calculators therefore assume no responsibility and shall have no liability, consequential or otherwise, of any kind arising from the use of this program material or any part thereof.

Overview

Program Name TANK
Function Use to calculate the stored volume in a horizontal circular tank that is at any level.
Where:
DIA = Diameter
HT = Level of storage
LEN = Length of Tank
VOL = Stored Volume in Tank (cubic units)

Listing

00 { 76-Byte Prgm }
01>LBL "TANK"
02 MVAR "DIA"
03 MVAR "HT"
04 MVAR "LEN"
05 MVAR "VOL"
06 RAD
07 RCL "DIA"
08 2
09 
10 STO "R"
11 RCL "HT"
12 -
13 RCL "R"
14 
15 ACOS
16 2
17 
18 ENTER
19 SIN
20 -
21 RCL "R"
22 X^2
23 
24 2
25 
26 RCL "LEN"
27 
28 RCL "VOL"
29 -
30 DEG
31 END

Go back to the software library
Go back to the main exhibit hall