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 /858/CH1/EX1.4/example_4.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 '858/CH1/EX1.4/example_4.sce')
-rwxr-xr-x | 858/CH1/EX1.4/example_4.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/858/CH1/EX1.4/example_4.sce b/858/CH1/EX1.4/example_4.sce new file mode 100755 index 000000000..af15455ac --- /dev/null +++ b/858/CH1/EX1.4/example_4.sce @@ -0,0 +1,17 @@ +clc
+clear
+printf("example 1.4 page number 24\n\n")
+//to find volume of NH3 dissolvable in water
+
+p=1 //atm
+H=2.7 //atm
+x=p/H;
+
+mole_ratio = (x)/(1-x);
+moles_of_water=(100*1000)/18;
+moles_of_NH3=mole_ratio*moles_of_water;
+
+printf("moles of NH3 dissolved = %f\n\n",moles_of_NH3)
+
+volume_NH3=(moles_of_NH3*22.4*293)/273;
+printf("volume of NH3 dissolved = %f liters",volume_NH3)
|