diff options
Diffstat (limited to '2705/CH1/EX1.2/Ex1_2.sce')
-rwxr-xr-x | 2705/CH1/EX1.2/Ex1_2.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/2705/CH1/EX1.2/Ex1_2.sce b/2705/CH1/EX1.2/Ex1_2.sce new file mode 100755 index 000000000..dab25d43a --- /dev/null +++ b/2705/CH1/EX1.2/Ex1_2.sce @@ -0,0 +1,21 @@ +clear; +clc; +disp('Example 1.2'); + + + +//Given values +P1 = 138; // initial pressure,[kN/m^2] +V1 = .112; //initial volume,[m^3] +P2 = 690; // final pressure,[kN/m^2] +Gama=1.4; // heat capacity ratio + +// solution + +// since gas is following, PV^1.4=constant,hence + +V2 =V1*(P1/P2)^(1/Gama); // final volume, [m^3] + +mprintf('\n The new volume of the gas is = %f m^3\n',V2) + +//End |