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/CH1/EX1.9/1_9.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/CH1/EX1.9/1_9.sce')
-rw-r--r-- | 1427/CH1/EX1.9/1_9.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/1427/CH1/EX1.9/1_9.sce b/1427/CH1/EX1.9/1_9.sce new file mode 100644 index 000000000..3b007aead --- /dev/null +++ b/1427/CH1/EX1.9/1_9.sce @@ -0,0 +1,17 @@ +//ques-1.9
+//Calculating amount of lime and soda required to soften one million litres of water
+clc
+A=30;//content of Calcium cation (in mg/L)
+B=24;//content of Magnesium cation (in mg/L)
+C=24;//content of CO2 (in mg/L)
+D=50;//content of HCl (in mg/L)
+V=1000000;//volume of water sample (in L)
+p1=90;//Purity percentage of lime
+p2=94;//Purity percentage of soda
+a1=(A/40)*100;//CaCO3 equivalent of A (in mg/L)
+a2=(B/24)*100;//CaCO3 equivalent of A (in mg/L)
+a3=(C/44)*100;//CaCO3 equivalent of A (in mg/L)
+a4=(D/73)*100;//CaCO3 equivalent of A (in mg/L)
+lime=(a2+a3+a4)*(74/100)*V*(100/p1);//lime required (in mg)
+soda=(a1+a2+a4)*(106/100)*V*(100/p2);//soda required (in mg)
+printf("Lime required to soften one mllion litres of given water is %.1f kg and Soda required is %.1f kg.",lime/1000000,soda/1000000);
|