blob: 1b05ded2f0692530d114b23e0bb160a8107be1a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Exa 3.5
clc;
clear;
close;
// Given data
P1 = 1.1;// in MN/m^2
P1 = P1 * 10^6;// in N/m^2
V1 = 1.5;// in m^3
V2 = 7.5;// in m^3
P2 = (P1*V1)/V2;// in kN/m^2
P2 = P2 * 10^-6;// in MN/m^2
P2 = P2 * 10^3;// in kN/m^2
disp(P2,"The final pressure in kN/m^2 is");
W = P1*V1*log(V2/V1);// in J
W = W * 10^-3;// in kJ
disp(W,"The work done in kJ is");
// Note : There is an error in calculation to find the value of Work Done. So the answer in the book is wrong
|