diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2705/CH5/EX5.5/Ex5_5.sce | |
download | Scilab-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/CH5/EX5.5/Ex5_5.sce')
-rwxr-xr-x | 2705/CH5/EX5.5/Ex5_5.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/2705/CH5/EX5.5/Ex5_5.sce b/2705/CH5/EX5.5/Ex5_5.sce new file mode 100755 index 000000000..894496057 --- /dev/null +++ b/2705/CH5/EX5.5/Ex5_5.sce @@ -0,0 +1,25 @@ +clear;
+clc;
+disp('Example 5.5');
+
+// aim : To determine
+// the new volume of the gas
+
+// Given values
+
+// initial codition
+P1 = 140;// [kN/m^2]
+V1 = .1;// [m^3]
+T1 = 273+25;// [K]
+
+// final condition
+P2 = 700;// [kN/m^2]
+T2 = 273+60;// [K]
+
+// by charasteristic equation, P1*V1/T1=P2*V2/T2
+
+V2=P1*V1*T2/(T1*P2);// final volume, [m^3]
+
+mprintf('\nThe new volume of the gas is = %f m^3\n',V2);
+
+// End
|