summaryrefslogtreecommitdiff
path: root/551/CH4/EX4.4/4.sce
blob: 21efac61b97850480b44a9d5eff8400321b59d8c (plain)
1
2
3
4
5
6
7
8
9
10
11
clc
p1=105; //kPa
V1=0.4;  //m^3
p2=p1;
V2=0.20; //m^3
Q=-42.5; //kJ
W=p1*(V2-V1);
dU=Q-W;
disp("change in internal energy = ")
disp(dU)
disp("kJ")