summaryrefslogtreecommitdiff
path: root/2165/CH1/EX1.4/1_4.sce
blob: ff44a3ae2b45262532e7ea6e5eda0f21a3d81b77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc
//initialisation of variables
Cp=0.24//lb/in^2
Cv=0.18//ft^3
p1=5//lb/in^2
T1=20//Degree C
T2=150//Degree C
//CALCULATIONS
W=p1*Cp*(T2-T1)//C.H.U
H=p1*Cv*(T2-T1)//C.H.U
Gamma=Cp/Cv//lb/in^2
//RESULTS
printf('the constant pressure=% f C.H.U',W)
printf('the constant volume the value of gas=% f lb/in^2',Gamma)