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/CH13/EX13.5/Ex13_5.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/CH13/EX13.5/Ex13_5.sce')
-rw-r--r-- | 3557/CH13/EX13.5/Ex13_5.sce | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/3557/CH13/EX13.5/Ex13_5.sce b/3557/CH13/EX13.5/Ex13_5.sce new file mode 100644 index 000000000..d462b9ed7 --- /dev/null +++ b/3557/CH13/EX13.5/Ex13_5.sce @@ -0,0 +1,22 @@ +//Example13.5//
+
+a=33.3;//g // of each components (acrylonitrile, butadiene, and sytrene)
+C=12.01;//amu //atomic mass of carbon //(From Appendix 1)
+H=1.008;//amu //atomic mass of hydrogen //(From Appendix 1)
+N=14.01;//amu //atomic mass of Nitrogen //(From Appendix 1)
+b=3;//Number of atoms
+A=a/((b*C)+(b*H)+(N))
+mprintf("A = %f mol",A)
+c=4;//Number of atoms
+d=6;//Number of atoms
+B=a/((c*C)+(d*H))
+mprintf("\nB = %f mol",B)
+d=8;//Number of atoms
+S=a/((d*C)+(d*H))
+mprintf("\nS = %f mol",S)
+fA=A/(A+B+S)
+mprintf("\nfA = %f ",fA)
+fB=B/(A+B+S)
+mprintf("\nfB = %f",fB)
+fS=S/(A+B+S)
+mprintf("\nfS = %f",fS)
|