summaryrefslogtreecommitdiff
path: root/2465/CH4/EX4.11/Ex4_11.sce
blob: da8cc6183a84541dac17090351f400b84080302c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Chapter-4,Example 11,Page 96
clc;
close;

R= 8.31   //gas constant

T= 273+25   // temperature in Kelvin

P1= 2   //pressure in atm 

P2= 1   //pressure in atm

w= 2.303 *R*T*log10(P1/P2)   //maximum work

printf('maximum work done is %.f J', w)

//mistake in textbook