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 /1427/CH2/EX2.10/2_10.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 '1427/CH2/EX2.10/2_10.sce')
-rw-r--r-- | 1427/CH2/EX2.10/2_10.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/1427/CH2/EX2.10/2_10.sce b/1427/CH2/EX2.10/2_10.sce new file mode 100644 index 000000000..e7d1bb64f --- /dev/null +++ b/1427/CH2/EX2.10/2_10.sce @@ -0,0 +1,14 @@ +//ques-2.10
+//Calculating percentage results of the analysis
+clc
+W=2.5;//Weight of sample (in g)
+w1=2.415;//Mass of residue after step-1 (in g)
+w2=1.528;//Mass of residue after step-2 (in g)
+w3=0.245;//Mass of ash (in g)
+m1=W-w1;//Mass of moisture in coal sample (in g)
+m2=w1-w2;//Mass of volatile matter (in g)
+p1=(m1/W)*100;//Percentage of moisture
+p2=(m2/W)*100;////Percentage of volatile matter
+p3=(w3/W)*100;//Percentage of ash
+C=100-(p1+p2+p3);//Percentage of fixed carbon
+printf("The percentage of moisture, volatile matter, ash and fixed carbon are %.1f, %.2f, %.1f and %.2f respectively.\n",p1,p2,p3,C);
|