blob: a44e8cd19bbf174027628945b16d620469ed140f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//example 4.2
clc; funcprot(0);
// Initialization of Variable
m=0.1;
v1=2.2661;
P2=20;//pressure
v2=2.6704;
V1=m*v1;
disp(V1,"volume in ft^3");
V2=m*v2;
disp(V2,"volume in ft^3");
W=P2*(V2-V1)*144/778;
disp(W,"Work done in Btu");
clear()
|