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 /3557/CH12/EX12.4/Ex12_4.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 '3557/CH12/EX12.4/Ex12_4.sce')
-rw-r--r-- | 3557/CH12/EX12.4/Ex12_4.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/3557/CH12/EX12.4/Ex12_4.sce b/3557/CH12/EX12.4/Ex12_4.sce new file mode 100644 index 000000000..914ec5631 --- /dev/null +++ b/3557/CH12/EX12.4/Ex12_4.sce @@ -0,0 +1,18 @@ +//Example12.4//
+Al=26.98;//amu //atomic mass of Aluminium
+O=16.00;//amu //atomic mass of Oxygen
+Si=28.09;//amu //atomic mass of Silicon
+H=1.008;//amu //atomic mass of Hydrogen
+i=2;//Number of atoms
+j=3;//Number of atoms
+m1=(i*Al+j*O)+i*(Si+i*O)+i*(i*H+O)
+mprintf("m1 = %f amu",m1)
+m2=i*(i*H+O)//amu
+mprintf("\nm2 = %f amu",m2)
+//As a result the mass of H2O driven off will be
+k=5;//kg //Kilograms
+mH2O=(m2/m1)*k
+mprintf("\nmH2O = %f kg",mH2O)
+j=10^3;//g //As 1Kg = 10^3grams
+m3=mH2O*j
+mprintf(" = %i g ",m3)
|