summaryrefslogtreecommitdiff
path: root/2705/CH1/EX1.2
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2705/CH1/EX1.2
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2705/CH1/EX1.2')
-rwxr-xr-x2705/CH1/EX1.2/Ex1_2.sce21
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