summaryrefslogtreecommitdiff
path: root/2165/CH1/EX1.1/1_1.sce
blob: 054211b079e8029eaf36945e2c4a06e1f5e5c0a2 (plain)
1
2
3
4
5
6
7
8
9
10
clc
//initialisation of variables
p1=280//lb/in^2
v=2//ft^3
p2=20//lb/in^2
v2=18.03//ft^3
//CALCULATIONS
W=144*(p1*v-p2*v2)/(1.2-1)//ft/lb
//RESULTS
printf('The volume and work done during the expansion=% f ft/lb',W)