diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3856/CH19/EX19.2/Ex19_2.sce | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3856/CH19/EX19.2/Ex19_2.sce')
-rw-r--r-- | 3856/CH19/EX19.2/Ex19_2.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/3856/CH19/EX19.2/Ex19_2.sce b/3856/CH19/EX19.2/Ex19_2.sce new file mode 100644 index 000000000..a5b679d48 --- /dev/null +++ b/3856/CH19/EX19.2/Ex19_2.sce @@ -0,0 +1,25 @@ +//Calculate the Partial pressure of Oxygen at an altitude of 30 km (stratosphere)
+
+//Example 19.2
+
+clc;
+
+clear;
+
+Po=0.20; //Partial pressure of Oxygen at an sea level in atm
+
+g=9.81; //Gravitational constant in m s^-2
+
+h=30*10^3; //height in m
+
+mew=0.03200; //Molar mass of Oxygen molucule in kg mol^-1
+
+R=8.314; //Gas constant in J K^-1 mol^-1
+
+T=25+273; //Temperarure in K
+
+P=Po*(exp(-(g*mew*h)/(R*T))); //Partial pressure of Oxygen at an altitude of 30 km (stratosphere)in atm
+
+printf("Partial pressure of Oxygen at an altitude of 30 km = %.1f*10^-3 atm",P*10^3);
+
+
|