summaryrefslogtreecommitdiff
path: root/884/CH5/EX5.5/Example5_5.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /884/CH5/EX5.5/Example5_5.sce
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 '884/CH5/EX5.5/Example5_5.sce')
-rwxr-xr-x884/CH5/EX5.5/Example5_5.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/884/CH5/EX5.5/Example5_5.sce b/884/CH5/EX5.5/Example5_5.sce
new file mode 100755
index 000000000..907c107b1
--- /dev/null
+++ b/884/CH5/EX5.5/Example5_5.sce
@@ -0,0 +1,18 @@
+//Ideal Gas Equation
+
+clear;
+clc;
+
+printf("\t Example 5.5\n");
+
+V1=0.55;//volume, L
+P1=1;//pressure at sea level, atm
+P2=0.4;//pressurea at 6.5km height, atm
+
+//n1=n2 and T1=T2 given hence P1V1=P2V2
+
+V2=P1*V1/P2;
+
+printf("\t the volume of He balloon at height 6.5km above sea level is : %4.1f L\n",V2);
+
+//End