From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2465/CH17/EX17.6/Ex17_6.sce | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 2465/CH17/EX17.6/Ex17_6.sce (limited to '2465/CH17/EX17.6') diff --git a/2465/CH17/EX17.6/Ex17_6.sce b/2465/CH17/EX17.6/Ex17_6.sce new file mode 100644 index 000000000..f138207aa --- /dev/null +++ b/2465/CH17/EX17.6/Ex17_6.sce @@ -0,0 +1,29 @@ +//Chapter-17,Example 6,Page 371 +clc(); +close(); + +v= 10^6 //volume of water + +m1 = 40 //mass of Ca+2 + +m2 = 24 //mass of Mg+2 + +m3 = 44 //mass of CO2 + +m4 = 122 //mass of HCO3- + +amnt_1 = 20 //amount of Ca+2 in ppm + +amnt_2 = 25 //amount of Mg+2 in ppm + +amnt_3 = 30 //amount of CO2 in ppm + +amnt_4 = 150 //amount of HCO3- in ppm + +lime_1 = (74/100)*[(amnt_2*100/m2)+(amnt_3*100/m3)+(amnt_4*100/m4)]*v + +soda = (106/100)*[(amnt_1*100/m1)+(amnt_2*100/m2)-(amnt_4*100/m4)]*v + +printf("the lime required is = %.3f mg",lime_1) + +printf("\n the soda required is = %.3f mg",soda) -- cgit