summaryrefslogtreecommitdiff
path: root/2465/CH4/EX4.2/Example_2.sce
blob: d2dbc03d91dacf9e5802db7bfbcf2c25b22890d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
//Chapter-4,Example 2,Page 93
clc;
close;

q= 990*4.2/10^3   //heat in kiloJoule

w= 8.36*10^9/((10^3)*(10^7))  //work  in kiloJoule

delta_E = q-w

printf('the internal energy change of system is %.3f kJ',delta_E)