The Museum of HP Calculators


CVOL (volume in a rectangular holding cell) 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 CVOL
Function Use to calculate the volume in a rectangular holding cell.
Where:
Vol = Cell Volume in cubic metres
Len = Length of side at toe
Wide = Width of side at toe
HT = Height of stored volume
Slope = Side slope of cell
VOL = Holding Cell Volume (cubic units)

Listing

00 { 112-Byte Prgm }
01>LBL "CVOL"
02 MVAR "LEN"
03 MVAR "WIDE"
04 MVAR "HT"
05 MVAR "SLOPE"
06 MVAR "VOL"
07 RCL "LEN"
08 RCL "WIDE"
09 
10 RCL "HT"
11 
12 RCL "HT"
13 2
14 Y^X
15 RCL "SLOPE"
16 
17 RCL "LEN"
18 RCL "WIDE"
19 +
20 
21 +
22 RCL "HT"
23 3
24 Y^X
25 RCL "SLOPE"
26 2
27 Y^X
28 
29 4
30 
31 3
32 
33 +
34 RCL "VOL"
35 -
36 END

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