blob: 997d15cf3325d1a81efdc2551534f615ea4cbbad (
plain)
1
2
3
4
5
6
7
8
9
10
|
clc
//initialisation of variables
T= 250 //F
hg= 1164.0 //Btu/lb
P= 29.825 //Psia
Vg= 13.821 //cu ft/lb
//CALCULATIONS
ug= hg-(P*Vg*144/778)
//RESULTS
printf ('Internal energy= %.1f Btu/lb',ug)
|