summaryrefslogtreecommitdiff
path: root/2870/CH4/EX4.3/Ex4_3.sce
blob: e3ff94ceae33adbabe3d2b660a6d8766b9f094f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc;clear;
//Example 4.3

//given data
P1=100;
V1=0.4;
V2=0.1;

//calculations
//for isothermal W = P1*V1* ln(V2/V1)
W=P1*V1*log(V2/V1);
disp(W,'the work done during this process in kJ')