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 --- 2966/CH1/EX1.1/Ex1_1.sce | 25 +++++++++++++++++++++++++ 2966/CH1/EX1.10/Ex1_10.sce | 20 ++++++++++++++++++++ 2966/CH1/EX1.11/Ex1_11.sce | 20 ++++++++++++++++++++ 2966/CH1/EX1.12/Ex1_12.sce | 20 ++++++++++++++++++++ 2966/CH1/EX1.13/Ex1_13.sce | 20 ++++++++++++++++++++ 2966/CH1/EX1.14/Ex1_14.sce | 20 ++++++++++++++++++++ 2966/CH1/EX1.15/Ex1_15.sce | 20 ++++++++++++++++++++ 2966/CH1/EX1.16/Ex1_16.sce | 20 ++++++++++++++++++++ 2966/CH1/EX1.17/Ex1_17.sce | 25 +++++++++++++++++++++++++ 2966/CH1/EX1.18/Ex1_18.sce | 27 +++++++++++++++++++++++++++ 2966/CH1/EX1.19/Ex1_19.sce | 24 ++++++++++++++++++++++++ 2966/CH1/EX1.2/Ex1_2.sce | 22 ++++++++++++++++++++++ 2966/CH1/EX1.20/Ex1_20.sce | 25 +++++++++++++++++++++++++ 2966/CH1/EX1.21/Ex1_21.sce | 18 ++++++++++++++++++ 2966/CH1/EX1.22/Ex1_22.sce | 18 ++++++++++++++++++ 2966/CH1/EX1.23/Ex1_23.sce | 22 ++++++++++++++++++++++ 2966/CH1/EX1.24/Ex1_24.sce | 24 ++++++++++++++++++++++++ 2966/CH1/EX1.25/Ex1_25.sce | 24 ++++++++++++++++++++++++ 2966/CH1/EX1.26/Ex1_26.sce | 28 ++++++++++++++++++++++++++++ 2966/CH1/EX1.27/Ex1_27.sce | 28 ++++++++++++++++++++++++++++ 2966/CH1/EX1.28/Ex1_28.sce | 31 +++++++++++++++++++++++++++++++ 2966/CH1/EX1.29/Ex1_29.sce | 34 ++++++++++++++++++++++++++++++++++ 2966/CH1/EX1.3/Ex1_3.sce | 11 +++++++++++ 2966/CH1/EX1.30/Ex1_30.sce | 25 +++++++++++++++++++++++++ 2966/CH1/EX1.31/Ex1_31.sce | 33 +++++++++++++++++++++++++++++++++ 2966/CH1/EX1.32/Ex1_32.sce | 28 ++++++++++++++++++++++++++++ 2966/CH1/EX1.33/Ex1_33.sce | 25 +++++++++++++++++++++++++ 2966/CH1/EX1.34/Ex1_34.sce | 28 ++++++++++++++++++++++++++++ 2966/CH1/EX1.35/Ex1_35.sce | 30 ++++++++++++++++++++++++++++++ 2966/CH1/EX1.36/Ex1_36.sce | 12 ++++++++++++ 2966/CH1/EX1.37/Ex1_37.sce | 12 ++++++++++++ 2966/CH1/EX1.38/Ex1_38.sce | 12 ++++++++++++ 2966/CH1/EX1.39/Ex1_39.sce | 12 ++++++++++++ 2966/CH1/EX1.4/Ex1_4.sce | 9 +++++++++ 2966/CH1/EX1.40/Ex1_40.sce | 12 ++++++++++++ 2966/CH1/EX1.41/Ex1_41.sce | 12 ++++++++++++ 2966/CH1/EX1.42/Ex1_42.sce | 10 ++++++++++ 2966/CH1/EX1.43/Ex1_43.sce | 12 ++++++++++++ 2966/CH1/EX1.44/Ex1_44.sce | 11 +++++++++++ 2966/CH1/EX1.45/Ex1_45.sce | 11 +++++++++++ 2966/CH1/EX1.46/Ex1_46.sce | 11 +++++++++++ 2966/CH1/EX1.47/Ex1_47.sce | 12 ++++++++++++ 2966/CH1/EX1.48/Ex1_48.sce | 9 +++++++++ 2966/CH1/EX1.49/Ex1_49.sce | 10 ++++++++++ 2966/CH1/EX1.5/Ex1_5.sce | 18 ++++++++++++++++++ 2966/CH1/EX1.50/Ex1_50.sce | 9 +++++++++ 2966/CH1/EX1.51/Ex1_51.sce | 12 ++++++++++++ 2966/CH1/EX1.52/Ex1_52.sce | 28 ++++++++++++++++++++++++++++ 2966/CH1/EX1.53/Ex1_53.sce | 18 ++++++++++++++++++ 2966/CH1/EX1.54/Ex1_54.sce | 28 ++++++++++++++++++++++++++++ 2966/CH1/EX1.55/Ex1_55.sce | 20 ++++++++++++++++++++ 2966/CH1/EX1.56/Ex1_56.sce | 31 +++++++++++++++++++++++++++++++ 2966/CH1/EX1.57/Ex1_57.sce | 10 ++++++++++ 2966/CH1/EX1.58/Ex1_58.sce | 22 ++++++++++++++++++++++ 2966/CH1/EX1.59/Ex1_59.sce | 34 ++++++++++++++++++++++++++++++++++ 2966/CH1/EX1.6/Ex1_6.sce | 22 ++++++++++++++++++++++ 2966/CH1/EX1.60/Ex1_60.sce | 20 ++++++++++++++++++++ 2966/CH1/EX1.61/Ex1_61.sce | 21 +++++++++++++++++++++ 2966/CH1/EX1.62/Ex1_62.sce | 25 +++++++++++++++++++++++++ 2966/CH1/EX1.63/Ex1_63.sce | 33 +++++++++++++++++++++++++++++++++ 2966/CH1/EX1.64/Ex1_64.sce | 12 ++++++++++++ 2966/CH1/EX1.65/Ex1_65.sce | 11 +++++++++++ 2966/CH1/EX1.66/Ex1_66.sce | 28 ++++++++++++++++++++++++++++ 2966/CH1/EX1.67/Ex1_67.sce | 20 ++++++++++++++++++++ 2966/CH1/EX1.68/Ex1_68.sce | 21 +++++++++++++++++++++ 2966/CH1/EX1.69/Ex1_69.sce | 25 +++++++++++++++++++++++++ 2966/CH1/EX1.7/Ex1_7.sce | 21 +++++++++++++++++++++ 2966/CH1/EX1.70/Ex1_70.sce | 20 ++++++++++++++++++++ 2966/CH1/EX1.71/Ex1_71.sce | 11 +++++++++++ 2966/CH1/EX1.72/Ex1_72.sce | 11 +++++++++++ 2966/CH1/EX1.73/Ex1_73.sce | 20 ++++++++++++++++++++ 2966/CH1/EX1.74/Ex1_74.sce | 28 ++++++++++++++++++++++++++++ 2966/CH1/EX1.75/Ex1_75.sce | 30 ++++++++++++++++++++++++++++++ 2966/CH1/EX1.76/Ex1_76.sce | 12 ++++++++++++ 2966/CH1/EX1.8/Ex1_8.sce | 21 +++++++++++++++++++++ 2966/CH1/EX1.9/Ex1_9.sce | 13 +++++++++++++ 76 files changed, 1517 insertions(+) create mode 100644 2966/CH1/EX1.1/Ex1_1.sce create mode 100644 2966/CH1/EX1.10/Ex1_10.sce create mode 100644 2966/CH1/EX1.11/Ex1_11.sce create mode 100644 2966/CH1/EX1.12/Ex1_12.sce create mode 100644 2966/CH1/EX1.13/Ex1_13.sce create mode 100644 2966/CH1/EX1.14/Ex1_14.sce create mode 100644 2966/CH1/EX1.15/Ex1_15.sce create mode 100644 2966/CH1/EX1.16/Ex1_16.sce create mode 100644 2966/CH1/EX1.17/Ex1_17.sce create mode 100644 2966/CH1/EX1.18/Ex1_18.sce create mode 100644 2966/CH1/EX1.19/Ex1_19.sce create mode 100644 2966/CH1/EX1.2/Ex1_2.sce create mode 100644 2966/CH1/EX1.20/Ex1_20.sce create mode 100644 2966/CH1/EX1.21/Ex1_21.sce create mode 100644 2966/CH1/EX1.22/Ex1_22.sce create mode 100644 2966/CH1/EX1.23/Ex1_23.sce create mode 100644 2966/CH1/EX1.24/Ex1_24.sce create mode 100644 2966/CH1/EX1.25/Ex1_25.sce create mode 100644 2966/CH1/EX1.26/Ex1_26.sce create mode 100644 2966/CH1/EX1.27/Ex1_27.sce create mode 100644 2966/CH1/EX1.28/Ex1_28.sce create mode 100644 2966/CH1/EX1.29/Ex1_29.sce create mode 100644 2966/CH1/EX1.3/Ex1_3.sce create mode 100644 2966/CH1/EX1.30/Ex1_30.sce create mode 100644 2966/CH1/EX1.31/Ex1_31.sce create mode 100644 2966/CH1/EX1.32/Ex1_32.sce create mode 100644 2966/CH1/EX1.33/Ex1_33.sce create mode 100644 2966/CH1/EX1.34/Ex1_34.sce create mode 100644 2966/CH1/EX1.35/Ex1_35.sce create mode 100644 2966/CH1/EX1.36/Ex1_36.sce create mode 100644 2966/CH1/EX1.37/Ex1_37.sce create mode 100644 2966/CH1/EX1.38/Ex1_38.sce create mode 100644 2966/CH1/EX1.39/Ex1_39.sce create mode 100644 2966/CH1/EX1.4/Ex1_4.sce create mode 100644 2966/CH1/EX1.40/Ex1_40.sce create mode 100644 2966/CH1/EX1.41/Ex1_41.sce create mode 100644 2966/CH1/EX1.42/Ex1_42.sce create mode 100644 2966/CH1/EX1.43/Ex1_43.sce create mode 100644 2966/CH1/EX1.44/Ex1_44.sce create mode 100644 2966/CH1/EX1.45/Ex1_45.sce create mode 100644 2966/CH1/EX1.46/Ex1_46.sce create mode 100644 2966/CH1/EX1.47/Ex1_47.sce create mode 100644 2966/CH1/EX1.48/Ex1_48.sce create mode 100644 2966/CH1/EX1.49/Ex1_49.sce create mode 100644 2966/CH1/EX1.5/Ex1_5.sce create mode 100644 2966/CH1/EX1.50/Ex1_50.sce create mode 100644 2966/CH1/EX1.51/Ex1_51.sce create mode 100644 2966/CH1/EX1.52/Ex1_52.sce create mode 100644 2966/CH1/EX1.53/Ex1_53.sce create mode 100644 2966/CH1/EX1.54/Ex1_54.sce create mode 100644 2966/CH1/EX1.55/Ex1_55.sce create mode 100644 2966/CH1/EX1.56/Ex1_56.sce create mode 100644 2966/CH1/EX1.57/Ex1_57.sce create mode 100644 2966/CH1/EX1.58/Ex1_58.sce create mode 100644 2966/CH1/EX1.59/Ex1_59.sce create mode 100644 2966/CH1/EX1.6/Ex1_6.sce create mode 100644 2966/CH1/EX1.60/Ex1_60.sce create mode 100644 2966/CH1/EX1.61/Ex1_61.sce create mode 100644 2966/CH1/EX1.62/Ex1_62.sce create mode 100644 2966/CH1/EX1.63/Ex1_63.sce create mode 100644 2966/CH1/EX1.64/Ex1_64.sce create mode 100644 2966/CH1/EX1.65/Ex1_65.sce create mode 100644 2966/CH1/EX1.66/Ex1_66.sce create mode 100644 2966/CH1/EX1.67/Ex1_67.sce create mode 100644 2966/CH1/EX1.68/Ex1_68.sce create mode 100644 2966/CH1/EX1.69/Ex1_69.sce create mode 100644 2966/CH1/EX1.7/Ex1_7.sce create mode 100644 2966/CH1/EX1.70/Ex1_70.sce create mode 100644 2966/CH1/EX1.71/Ex1_71.sce create mode 100644 2966/CH1/EX1.72/Ex1_72.sce create mode 100644 2966/CH1/EX1.73/Ex1_73.sce create mode 100644 2966/CH1/EX1.74/Ex1_74.sce create mode 100644 2966/CH1/EX1.75/Ex1_75.sce create mode 100644 2966/CH1/EX1.76/Ex1_76.sce create mode 100644 2966/CH1/EX1.8/Ex1_8.sce create mode 100644 2966/CH1/EX1.9/Ex1_9.sce (limited to '2966/CH1') diff --git a/2966/CH1/EX1.1/Ex1_1.sce b/2966/CH1/EX1.1/Ex1_1.sce new file mode 100644 index 000000000..b23d8f23d --- /dev/null +++ b/2966/CH1/EX1.1/Ex1_1.sce @@ -0,0 +1,25 @@ +//water// +//page 1.7 example 1// +clc +W1=16.8;//Mg(HCO3)2 in water in mg/L// +W2=19;//MgCl2 in water in mg/L// +W3=24;//MgSO4 in water in mg/L// +W4=29.6;//Mg(NO3)2 in water in mg/L// +W5=04;//CaCO3 in water in mg/L// +W6=10;//MgCO3 in water in mg/L// +M1=100/146;//multiplication factor of Mg(HCO3)2// +M2=100/95;//multiplication factor of MgCl2// +M3=100/120;//multiplication factor of MgSO4// +M4=100/148;//multiplication factor of Mg(NO3)2// +M5=100/100;//multiplication factor of CaCO3// +M6=100/84;//multiplication factor of MgCO3// +P1=W1*M1;//Mg(HCO3)2 in terms of CaCO3 equivalent/litre// +P2=W2*M2;//MgCl2 in terms of CaCO3 equivalent/litre// +P3=W3*M3;//MgSO4 in terms of CaCO3 equivalent/litre// +P4=W4*M4;//Mg(NO3)2 in terms of CaCO3 equivalent/litre// +P5=W5*M5;//CaCO3 in terms of CaCO3 equivalent/litre// +P6=W6*M6;//MgCO3 in terms of CaCO3 equivalent/litre// +T=P1+P5+P6; +printf("\nTemporary hardness is %.1f mg CaCO3 equivalent/litre",T); +P=P2+P3+P4; +printf("\nPermanant hardness is %.0f mg CaCO3 equivalent/litre",P); \ No newline at end of file diff --git a/2966/CH1/EX1.10/Ex1_10.sce b/2966/CH1/EX1.10/Ex1_10.sce new file mode 100644 index 000000000..cc136e540 --- /dev/null +++ b/2966/CH1/EX1.10/Ex1_10.sce @@ -0,0 +1,20 @@ +//water// +//page 1.16 example 2// +clc +conc_SH=0.28/1000//in terms of g/lit// +strength_SH=conc_SH*1000//in terms of mgs/lit// +volume_SH=100//in terms of ml// +volume_H=100//in terms of ml// +EDTA_SH=28//volume for Std hardwater(ml)// +EDTA_H=33//volume for sample hardwater(ml)// +AB_EDTA=10//volume required after boiling(ml)// +CaCO3_equivalent_SH=strength_SH*volume_SH//in terms of CaCO3 equivalent// +one_ml_EDTA=CaCO3_equivalent_SH/EDTA_SH//in terms of CaCO3 equivalent// +To_sample=one_ml_EDTA*EDTA_H/volume_H//total hardness for given volume// +To=To_sample*1000//total hardness per litre(ppm)// +P_sample=AB_EDTA*one_ml_EDTA/volume_H//permanent hardness for given volume// +P=P_sample*1000//permanent hardness per litre(ppm)// +T=To-P +printf("\nTotal Hardness is %.f ppm",To); +printf("\nPermanent Hardness is %.f ppm",P); +printf("\nTemporary Hardness is %.f ppm",T); \ No newline at end of file diff --git a/2966/CH1/EX1.11/Ex1_11.sce b/2966/CH1/EX1.11/Ex1_11.sce new file mode 100644 index 000000000..1a7bf03a8 --- /dev/null +++ b/2966/CH1/EX1.11/Ex1_11.sce @@ -0,0 +1,20 @@ +//water// +//page 1.17 example 3// +clc +conc_SH=1/1000//in terms of g/lit// +strength_SH=conc_SH*1000//in terms of mgs/lit// +volume_SH=50//in terms of ml// +volume_H=50//in terms of ml// +EDTA_SH=20//volume for Std hardwater(ml)// +EDTA_H=25//volume for sample hardwater(ml)// +AB_EDTA=18//volume required after boiling(ml)// +CaCO3_equivalent_SH=strength_SH*volume_SH//in terms of CaCO3 equivalent// +one_ml_EDTA=CaCO3_equivalent_SH/EDTA_SH//in terms of CaCO3 equivalent// +To_sample=one_ml_EDTA*EDTA_H/volume_H//total hardness for given volume// +To=To_sample*1000//total hardness per litre(ppm)// +P_sample=AB_EDTA*one_ml_EDTA/volume_H//permanent hardness for given volume// +P=P_sample*1000//permanent hardness per litre(ppm)// +T=To-P +printf("\nTotal Hardness is %.f ppm",To); +printf("\nPermanent Hardness is %.f ppm",P); +printf("\nTemporary Hardness is %.f ppm",T); \ No newline at end of file diff --git a/2966/CH1/EX1.12/Ex1_12.sce b/2966/CH1/EX1.12/Ex1_12.sce new file mode 100644 index 000000000..793c5d935 --- /dev/null +++ b/2966/CH1/EX1.12/Ex1_12.sce @@ -0,0 +1,20 @@ +//water// +//page 1.18 example 4// +clc +conc_SH=15/1000//in terms of g/lit// +strength_SH=conc_SH*1000//in terms of mgs/lit// +volume_SH=20//in terms of ml// +volume_H=100//in terms of ml// +EDTA_SH=25//volume for Std hardwater(ml)// +EDTA_H=18//volume for sample hardwater(ml)// +AB_EDTA=12//volume required after boiling(ml)// +CaCO3_equivalent_SH=strength_SH*volume_SH//in terms of CaCO3 equivalent// +one_ml_EDTA=CaCO3_equivalent_SH/EDTA_SH//in terms of CaCO3 equivalent// +To_sample=one_ml_EDTA*EDTA_H/volume_H//total hardness for given volume// +To=To_sample*1000//total hardness per litre(ppm)// +P_sample=AB_EDTA*one_ml_EDTA/volume_H//permanent hardness for given volume// +P=P_sample*1000//permanent hardness per litre(ppm)// +T=To-P +printf("\nTotal Hardness is %.f ppm",To); +printf("\nPermanent Hardness is %.f ppm",P);//Final answer in book is incorrect// +printf("\nTemporary Hardness is %.f ppm",T);//Final answer in book is incorrect// \ No newline at end of file diff --git a/2966/CH1/EX1.13/Ex1_13.sce b/2966/CH1/EX1.13/Ex1_13.sce new file mode 100644 index 000000000..c40cb928d --- /dev/null +++ b/2966/CH1/EX1.13/Ex1_13.sce @@ -0,0 +1,20 @@ +//water// +//page 1.19 example 5// +clc +conc_SH=0.5/500//in terms of g/lit// +strength_SH=conc_SH*1000//in terms of mgs/lit// +volume_SH=50//in terms of ml// +volume_H=50//in terms of ml// +EDTA_SH=48//volume for Std hardwater(ml)// +EDTA_H=15//volume for sample hardwater(ml)// +AB_EDTA=10//volume required after boiling(ml)// +CaCO3_equivalent_SH=strength_SH*volume_SH//in terms of CaCO3 equivalent// +one_ml_EDTA=CaCO3_equivalent_SH/EDTA_SH//in terms of CaCO3 equivalent// +To_sample=one_ml_EDTA*EDTA_H/volume_H//total hardness for given volume// +To=To_sample*1000//total hardness per litre(ppm)// +P_sample=AB_EDTA*one_ml_EDTA/volume_H//permanent hardness for given volume// +P=P_sample*1000//permanent hardness per litre(ppm)// +T=To-P +printf("\nTotal Hardness is %.1f ppm",To); +printf("\nPermanent Hardness is %.2f ppm",P); +printf("\nTemporary Hardness is %.2f ppm",T); \ No newline at end of file diff --git a/2966/CH1/EX1.14/Ex1_14.sce b/2966/CH1/EX1.14/Ex1_14.sce new file mode 100644 index 000000000..33aaafda1 --- /dev/null +++ b/2966/CH1/EX1.14/Ex1_14.sce @@ -0,0 +1,20 @@ +//water// +//page 1.20 example 6// +clc +conc_SH=1/1000//in terms of g/lit// +strength_SH=conc_SH*1000//in terms of mgs/lit// +volume_SH=50//in terms of ml// +volume_H=50//in terms of ml// +EDTA_SH=45//volume for Std hardwater(ml)// +EDTA_H=25//volume for sample hardwater(ml)// +AB_EDTA=15//volume required after boiling(ml)// +CaCO3_equivalent_SH=strength_SH*volume_SH//in terms of CaCO3 equivalent// +one_ml_EDTA=CaCO3_equivalent_SH/EDTA_SH//in terms of CaCO3 equivalent// +To_sample=one_ml_EDTA*EDTA_H/volume_H//total hardness for given volume// +To=To_sample*1000//total hardness per litre(ppm)// +P_sample=AB_EDTA*one_ml_EDTA/volume_H//permanent hardness for given volume// +P=P_sample*1000//permanent hardness per litre(ppm)// +T=To-P +printf("\nTotal Hardness is %.2f ppm",To); +printf("\nPermanent Hardness is %.2f ppm",P); +printf("\nTemporary Hardness is %.2f ppm",T); \ No newline at end of file diff --git a/2966/CH1/EX1.15/Ex1_15.sce b/2966/CH1/EX1.15/Ex1_15.sce new file mode 100644 index 000000000..e983bb4ff --- /dev/null +++ b/2966/CH1/EX1.15/Ex1_15.sce @@ -0,0 +1,20 @@ +//water// +//page 1.21 example 7// +clc +conc_SH=1/20//in terms of g/lit// +strength_SH=conc_SH*1000//in terms of mgs/lit// +volume_SH=50//in terms of ml// +volume_H=50//in terms of ml// +EDTA_SH=1000//volume for Std hardwater(ml)// +EDTA_H=7.2//volume for sample hardwater(ml)// +AB_EDTA=4//volume required after boiling(ml)// +CaCO3_equivalent_SH=strength_SH*volume_SH//in terms of CaCO3 equivalent// +one_ml_EDTA=CaCO3_equivalent_SH/EDTA_SH//in terms of CaCO3 equivalent// +To_sample=one_ml_EDTA*EDTA_H/volume_H//total hardness for given volume// +To=To_sample*1000//total hardness per litre(ppm)// +P_sample=AB_EDTA*one_ml_EDTA/volume_H//permanent hardness for given volume// +P=P_sample*1000//permanent hardness per litre(ppm)// +T=To-P +printf("\nTotal Hardness is %.f ppm",To); +printf("\nPermanent Hardness is %.f ppm",P); +printf("\nTemporary Hardness is %.f ppm",T); \ No newline at end of file diff --git a/2966/CH1/EX1.16/Ex1_16.sce b/2966/CH1/EX1.16/Ex1_16.sce new file mode 100644 index 000000000..374a7008d --- /dev/null +++ b/2966/CH1/EX1.16/Ex1_16.sce @@ -0,0 +1,20 @@ +//water// +//page 1.22 example 8// +clc +conc_SH=1.2/1000//in terms of g/lit// +strength_SH=conc_SH*1000//in terms of mgs/lit// +volume_SH=20//in terms of ml// +volume_H=50//in terms of ml// +EDTA_SH=35//volume for Std hardwater(ml)// +EDTA_H=30//volume for sample hardwater(ml)// +AB_EDTA=25//volume required after boiling(ml)// +CaCO3_equivalent_SH=strength_SH*volume_SH//in terms of CaCO3 equivalent// +one_ml_EDTA=CaCO3_equivalent_SH/EDTA_SH//in terms of CaCO3 equivalent// +To_sample=one_ml_EDTA*EDTA_H/volume_H//total hardness for given volume// +To=To_sample*1000//total hardness per litre(ppm)// +P_sample=AB_EDTA*one_ml_EDTA/volume_H//permanent hardness for given volume// +P=P_sample*1000//permanent hardness per litre(ppm)// +T=To-P +printf("\nTotal Hardness is %.f ppm",To); +printf("\nPermanent Hardness is %.1f ppm",P); +printf("\nTemporary Hardness is %.1f ppm",T); \ No newline at end of file diff --git a/2966/CH1/EX1.17/Ex1_17.sce b/2966/CH1/EX1.17/Ex1_17.sce new file mode 100644 index 000000000..cae53386a --- /dev/null +++ b/2966/CH1/EX1.17/Ex1_17.sce @@ -0,0 +1,25 @@ +//water// +//page 1.31 example 1// +clc +Purity_Lime=.90 +Purity_soda=1 +W1=136;//amount of CaSO4 in ppm// +W2=49;//amount of H2SO4 in ppm// +W3=95;//amount of MgCl2 in ppm// +W4=60;//amount of MgSO4 in ppm// +M1=100/136;//multiplication factor of CaSO4// +M2=100/98;//multiplication factor of H2SO4// +M3=100/95;//multiplication factor of MgCl2// +M4=100/120;//multiplication factor of MgSO4// +P1=W1*M1;//in terms of CaCO3//S +P2=W2*M2;//in terms of CaCO3//L+S +P3=W3*M3;//in terms of CaCO3//L+S +P4=W4*M4;//in terms of CaCO3//L+S +printf ("We do not take SiO2 since it does not react with lime/soda"); +V=1000000;//volume of water in litres// +L=0.74*(P2+P3+P4)*V/Purity_Lime;//lime required in mg// +L=L/10^3; +printf("\n Amount of Lime required is %.f g",L); +S=1.06*(P1+P2+P3+P4)*V/Purity_soda;//soda required in mg// +S=S/10^3; +printf("\n Amount of Soda required is %.f g",S) \ No newline at end of file diff --git a/2966/CH1/EX1.18/Ex1_18.sce b/2966/CH1/EX1.18/Ex1_18.sce new file mode 100644 index 000000000..071773165 --- /dev/null +++ b/2966/CH1/EX1.18/Ex1_18.sce @@ -0,0 +1,27 @@ +//water// +//page 1.31 example 2// +clc +Purity_Lime=.90 +Purity_soda=.95 +W1=156;//amount of Mg(HCO3)2 in ppm// +W2=4.9;//amount of H2SO4 in ppm// +W3=23.75;//amount of MgCl2 in ppm// +W4=5.6;//amount of NaCl in ppm// +W5=111;//amount of CaCl2 in ppm// +W6=16.2;//amount of SiO2 in ppm// +M1=100/146;//multiplication factor of Mg(HCO3)2// +M2=100/98;//multiplication factor of H2SO4// +M3=100/95;//multiplication factor of MgCl2// +M5=100/111;//multiplication factor of CaCl2// +P1=W1*M1;//in terms of CaCO3//2*L +P2=W2*M2;//in terms of CaCO3//L+S +P3=W3*M3;//in terms of CaCO3//L+S +P5=W5*M5;//in terms of CaCO3//S +printf ("We do not take NaCl and SiO2 since they do not react with lime/soda"); +V=50000;//volume of water in litres// +L=0.74*(2*P1+P2+P3)*V/Purity_Lime;//lime required in mg// +L=L/10^3; +printf("\n Amount of Lime required is %.2f g",L); +S=1.06*(P2+P3+P5)*V/Purity_soda;//soda required in mg// +S=S/10^3; +printf("\n Amount of Soda required is %.2f g",S) \ No newline at end of file diff --git a/2966/CH1/EX1.19/Ex1_19.sce b/2966/CH1/EX1.19/Ex1_19.sce new file mode 100644 index 000000000..ab6d5d75e --- /dev/null +++ b/2966/CH1/EX1.19/Ex1_19.sce @@ -0,0 +1,24 @@ +//water// +//page 1.32 example 3// +clc +Purity_Lime=.74 +Purity_soda=.90 +W1=73;//amount of Mg(HCO3)2 in ppm// +W2=222;//amount of CaCl2 in ppm// +W3=120;//amount of MgSO4 in ppm// +W4=164;//amount of Ca(NO3)2 in ppm// +M1=100/146;//multiplication factor of Mg(HCO3)2// +M2=100/111;//multiplication factor of CaCl2// +M3=100/120;//multiplication factor of MgSO4// +M4=100/164;//multiplication factor of Ca(NO3)2// +P1=W1*M1;//in terms of CaCO3//2*L +P2=W2*M2;//in terms of CaCO3//S +P3=W3*M3;//in terms of CaCO3//L+S +P4=W4*M4;//in terms of CaCO3//S +V=5000;//volume of water in litres// +L=0.74*(2*P1+P3)*V/Purity_Lime;//lime required in mg// +L=L/10^3; +printf("\n Amount of Lime required is %.f g",L); +S=1.06*(P2+P3+P4)*V/Purity_soda;//soda required in mg// +S=S/10^3; +printf("\n Amount of Soda required is %.2f g",S) \ No newline at end of file diff --git a/2966/CH1/EX1.2/Ex1_2.sce b/2966/CH1/EX1.2/Ex1_2.sce new file mode 100644 index 000000000..992d95c1e --- /dev/null +++ b/2966/CH1/EX1.2/Ex1_2.sce @@ -0,0 +1,22 @@ +//water// +//page 1.8 example 2// +clc +W1=7.1;//Mg(HCO3)2 in water in mg/L// +W2=8.1;//Ca(HCO3)2 in water in mg/L// +W3=4.2;//MgCO3 in water in mg/L// +W4=10;//CaCO3 in water in mg/L// +W5=24;//MgSO4 in water in mg/L// +M1=100/146;//multiplication factor of Mg(HCO3)2// +M2=100/162;//multiplication factor of Ca(HCO3)2// +M3=100/84;//multiplication factor of MgCO3// +M4=100/100;//multiplication factor of CaCO3// +M5=100/120;//multiplication factor of MgSO4// +P1=W1*M1;//Mg(HCO3)2 in terms of CaCO3// +P2=W2*M2;//Ca(HCO3)2 in terms of CaCO3// +P3=W3*M3;//MgCO3 in terms of CaCO3// +P4=W4*M4;//CaCO3 in terms of CaCO3// +P5=W5*M5;//MgSO4 in terms of CaCO3// +C=P1+P2+P3+P4; +printf("\nCarbonate hardness is %.0f ppm",C); +NC=P5; +printf("\nNon-Carbonate hardness is %.0f ppm",NC); \ No newline at end of file diff --git a/2966/CH1/EX1.20/Ex1_20.sce b/2966/CH1/EX1.20/Ex1_20.sce new file mode 100644 index 000000000..88ca42036 --- /dev/null +++ b/2966/CH1/EX1.20/Ex1_20.sce @@ -0,0 +1,25 @@ +//water// +//page 1.33 example 4// +clc +Purity_Lime=1 +Purity_soda=1 +W1=144;//amount of MgCO3 in ppm// +W2=95;//amount of MgCl2 in ppm// +W3=25;//amount of CaCO3 in ppm// +W4=111;//amount of CaCl2 in ppm// +M1=100/84;//multiplication factor of MgCO3// +M2=100/95;//multiplication factor of MgCl2// +M3=100/100;//multiplication factor of CaCO3// +M4=100/111;//multiplication factor of CaCl2// +P1=W1*M1;//in terms of CaCO3//2*L +P2=W2*M2;//in terms of CaCO3//L+S +P3=W3*M3;//in terms of CaCO3//L +P4=W4*M4;//in terms of CaCO3//S +printf ("We do not take Fe2O3 and Na2SO4 since they do not react with lime/soda"); +V=50000;//volume of water in litres// +L=0.74*(2*P1+P2+P3)*V/Purity_Lime;//lime required in mg// +L=L/10^3; +printf("\n Amount of Lime required is %.2f g",L); +S=1.06*(P2+P4)*V/Purity_soda;//soda required in mg// +S=S/10^3; +printf("\n Amount of Soda required is %.f g",S) \ No newline at end of file diff --git a/2966/CH1/EX1.21/Ex1_21.sce b/2966/CH1/EX1.21/Ex1_21.sce new file mode 100644 index 000000000..8c3bf1051 --- /dev/null +++ b/2966/CH1/EX1.21/Ex1_21.sce @@ -0,0 +1,18 @@ +//water// +//page 1.34 example 5// +clc +Purity_Lime=1 +W1=13.6;//amount of CaSO4 in ppm// +W2=8.4;//amount of MgCO3 in ppm// +W3=05;//amount of CaCO3 in ppm// +M1=100/136;//multiplication factor of CaSO4// +M2=100/84;//multiplication factor of MgCO3// +M3=100/100;//multiplication factor of CaCO3// +P1=W1*M1;//in terms of CaCO3//S +P2=W2*M2;//in terms of CaCO3//2*L +P3=W3*M3;//in terms of CaCO3//L +printf ("We do not take KNO3 since it does not react with lime/soda"); +V=5000;//volume of water in litres// +L=0.74*(2*P2+P3)*V/Purity_Lime;//lime required in mg// +L=L/10^3; +printf("\n Amount of Lime required is %.1f g",L); \ No newline at end of file diff --git a/2966/CH1/EX1.22/Ex1_22.sce b/2966/CH1/EX1.22/Ex1_22.sce new file mode 100644 index 000000000..fbe882cbc --- /dev/null +++ b/2966/CH1/EX1.22/Ex1_22.sce @@ -0,0 +1,18 @@ +//water// +//page 1.35 example 6// +clc +Purity_soda=1 +W1=5;//amount of CaCO3 in ppm// +W2=22.2;//amount of CaCl2 in ppm// +W3=2;//amount of MgSO4 in ppm// +M1=100/100;//multiplication factor of CaCO3// +M2=100/111;//multiplication factor of CaCl2// +M3=100/120;//multiplication factor of MgSO4// +P1=W1*M1;//in terms of CaCO3//L +P2=W2*M2;//in terms of CaCO3//S +P3=W3*M3;//in terms of CaCO3//L+S +printf ("We do not take Na2SO4 and SiO2 since they do not react with lime/soda"); +V=10000;//volume of water in litres// +S=1.06*(P2+P3)*V/Purity_soda;//soda required in mg// +S=S/10^3; +printf("\n Amount of Soda required is %.1f g",S) \ No newline at end of file diff --git a/2966/CH1/EX1.23/Ex1_23.sce b/2966/CH1/EX1.23/Ex1_23.sce new file mode 100644 index 000000000..03d811ced --- /dev/null +++ b/2966/CH1/EX1.23/Ex1_23.sce @@ -0,0 +1,22 @@ +//water// +//page 1.36 example 7// +clc +Purity_Lime=1 +Purity_soda=1 +W1=10;//amount of CaCO3 in ppm// +W2=36.5;//amount of Mg(HCO3)2 in ppm// +W3=19;//amount of MgCl2 in ppm// +M1=100/100;//multiplication factor of CaCO3// +M2=100/146;//multiplication factor of Mg(HCO3)2// +M3=100/95;//multiplication factor of MgCl2// +P1=W1*M1;//in terms of CaCO3//L +P2=W2*M2;//in terms of CaCO3//2*L +P3=W3*M3;//in terms of CaCO3//L+S +printf ("We do not take SiO2 since it does not react with lime/soda"); +V=1000000;//volume of water in litres// +L=0.74*(P1+2*P2+P3)*V/Purity_Lime;//lime required in mg// +L=L/10^3; +printf("\n Amount of Lime required is %.f g",L); +S=1.06*(P3)*V/Purity_soda;//soda required in mg// +S=S/10^3; +printf("\n Amount of Soda required is %.f g",S) \ No newline at end of file diff --git a/2966/CH1/EX1.24/Ex1_24.sce b/2966/CH1/EX1.24/Ex1_24.sce new file mode 100644 index 000000000..7d01037df --- /dev/null +++ b/2966/CH1/EX1.24/Ex1_24.sce @@ -0,0 +1,24 @@ +//water// +//page 1.37 example 8// +clc +Purity_Lime=.8 +Purity_soda=.9 +W1=7.1;//amount of Mg(HCO3)2 in ppm// +W2=8.1;//amount of Ca(HCO3)2 in ppm// +W3=4.195;//amount of MgCO3 in ppm// +W4=10;//amount of CaCO3 in ppm// +M1=100/146;//multiplication factor of Mg(HCO3)2// +M2=100/162;//multiplication factor of Ca(HCO3)2// +M3=100/84;//multiplication factor of MgCO3// +M4=100/100;//multiplication factor of CaCO3// +P1=W1*M1;//in terms of CaCO3//2*L +P2=W2*M2;//in terms of CaCO3//L +P3=W3*M3;//in terms of CaCO3//2*L +P4=W4*M4;//in terms of CaCO3//L +V=100000;//volume of water in litres// +L=0.74*(2*P1+P2+2*P3+P4)*V/Purity_Lime;//lime required in mg// +L=L/10^3; +printf("\n Amount of Lime required is %.f g",L); +S=1.06*(0)*V/Purity_soda;//soda required in mg// +S=S/10^3; +printf("\n Amount of Soda required is %.f g",S) \ No newline at end of file diff --git a/2966/CH1/EX1.25/Ex1_25.sce b/2966/CH1/EX1.25/Ex1_25.sce new file mode 100644 index 000000000..67a2678a1 --- /dev/null +++ b/2966/CH1/EX1.25/Ex1_25.sce @@ -0,0 +1,24 @@ +//water// +//page 1.38 example 9// +clc +Purity_Lime=.9 +Purity_soda=.9 +W1=19;//amount of MgCl2 in ppm// +W2=27.2;//amount of CaSO4 in ppm// +W3=4.9;//amount of H2SO4 in ppm// +W4=6;//amount of AL3+ in ppm// +M1=100/95;//multiplication factor of MgCl2// +M2=100/136;//multiplication factor of CaSO4// +M3=100/49;//multiplication factor of H2SO4// +M4=100/18.0018;//multiplication factor of AL3+// +P1=W1*M1;//in terms of CaCO3//L+S +P2=W2*M2;//in terms of CaCO3//S +P3=W3*M3;//in terms of CaCO3//L+S +P4=W4*M4;//in terms of CaCO3//L+S +V=500000;//volume of water in litres// +L=0.74*(P1+P3+P4)*V/Purity_Lime;//lime required in mg// +L=L/10^3; +printf("\n Amount of Lime required is %.2f g",L); +S=1.06*(P1+P2+P3+P4)*V/Purity_soda;//soda required in mg// +S=S/10^3; +printf("\n Amount of Soda required is %.f g",S) \ No newline at end of file diff --git a/2966/CH1/EX1.26/Ex1_26.sce b/2966/CH1/EX1.26/Ex1_26.sce new file mode 100644 index 000000000..91f960724 --- /dev/null +++ b/2966/CH1/EX1.26/Ex1_26.sce @@ -0,0 +1,28 @@ +//water// +//page 1.38 example 10// +clc +Purity_Lime=.9 +Purity_soda=.95 +W1=81;//amount of Ca(HCO3)2 in ppm// +W2=42;//amount of MgCO3 in ppm// +W3=4.1;//amount of NaAlO2 in ppm// +W4=3.65;//amount of HCl in ppm// +W5=82;//amount of Ca(NO3)2 in ppm// +M1=100/162;//multiplication factor of Ca(HCO3)2// +M2=100/84;//multiplication factor of MgCO3// +M3=100/82;//multiplication factor of NaAlO2// +M4=100/36.5;//multiplication factor of HCl// +M5=100/164;//multiplication factor of Ca(NO3)2// +P1=W1*M1;//in terms of CaCO3//L +P2=W2*M2;//in terms of CaCO3//2*L +P3=W3*M3;//in terms of CaCO3//-L +P4=W4*M4;//in terms of CaCO3//L+S +P5=W5*M5;//in terms of CaCO3//S +printf ("We do not take NaCl since it does not react with lime/soda"); +V=20000;//volume of water in litres// +L=0.74*(P1+2*P2+P4-P3)*V/Purity_Lime;//lime required in mg// +L=L/10^3; +printf("\n Amount of Lime required is %.2f g",L); +S=1.06*(P4+P5)*V/Purity_soda;//soda required in mg// +S=S/10^3; +printf("\n Amount of Soda required is %.3f g",S) \ No newline at end of file diff --git a/2966/CH1/EX1.27/Ex1_27.sce b/2966/CH1/EX1.27/Ex1_27.sce new file mode 100644 index 000000000..90a6a007a --- /dev/null +++ b/2966/CH1/EX1.27/Ex1_27.sce @@ -0,0 +1,28 @@ +//water// +//page 1.39 example 11// +clc +Purity_Lime=.85 +Purity_soda=.9 +W1=16.2;//amount of Ca(HCO3)2 in ppm// +W2=6.8;//amount of CaSO4 in ppm// +W3=11.1;//amount of CaCl2 in ppm// +W4=6;//amount of MgSO4 in ppm// +W5=8.4;//amount of Mg(HCO3)2 in ppm// +M1=100/162;//multiplication factor of Ca(HCO3)2// +M2=100/136;//multiplication factor of CaSO4// +M3=100/111;//multiplication factor of CaCl2// +M4=100/120;//multiplication factor of MgSO4// +M5=100/146;//multiplication factor of Mg(HCO3)2// +P1=W1*M1;//in terms of CaCO3//L +P2=W2*M2;//in terms of CaCO3//S +P3=W3*M3;//in terms of CaCO3//S +P4=W4*M4;//in terms of CaCO3//L+S +P5=W5*M5;//in terms of CaCO3//2*L +printf ("We do not take NaCl since it does not react with lime/soda"); +V=10000;//volume of water in litres// +L=0.74*(P1+P4+2*P5)*V/Purity_Lime;//lime required in mg// +L=L/10^3; +printf("\n Amount of Lime required is %.1f g",L); +S=1.06*(P2+P3+P4)*V/Purity_soda;//soda required in mg// +S=S/10^3; +printf("\n Amount of Soda required is %.2f g",S) \ No newline at end of file diff --git a/2966/CH1/EX1.28/Ex1_28.sce b/2966/CH1/EX1.28/Ex1_28.sce new file mode 100644 index 000000000..2d4c06119 --- /dev/null +++ b/2966/CH1/EX1.28/Ex1_28.sce @@ -0,0 +1,31 @@ +//water// +//page 1.40 example 12// +clc +Purity_Lime=.7 +Purity_soda=.85 +W1=30.2;//amount of Ca(HCO3)2 in ppm// +W2=20.8;//amount of Mg(HCO3)2 in ppm// +W3=28.31;//amount of CaCl2 in ppm// +W4=8.7;//amount of MgCl2 in ppm// +W5=35;//amount of CaSO4 in ppm// +W6=6.7;//amount of MgSO4 in ppm// +M1=100/162;//multiplication factor of Ca(HCO3)2// +M2=100/146;//multiplication factor of Mg(HCO3)2// +M3=100/111;//multiplication factor of CaCl2// +M4=100/95;//multiplication factor of MgCl2// +M5=100/136;//multiplication factor of CaSO4// +M6=100/120;//multiplication factor of MgSO4// +P1=W1*M1;//in terms of CaCO3//L +P2=W2*M2;//in terms of CaCO3//2*L +P3=W3*M3;//in terms of CaCO3//S +P4=W4*M4;//in terms of CaCO3//L+S +P5=W5*M5;//in terms of CaCO3//S +P6=W6*M6;//in terms of CaCO3//L+S +printf ("We do not take Na2SO4 since it does not react with lime/soda"); +V=100000;//volume of water in litres// +L=0.74*(P1+2*P2+P4+P6)*V/Purity_Lime;//lime required in mg// +L=L/10^3; +printf("\n Amount of Lime required is %.1f g",L); +S=1.06*(P3+P4+P5+P6)*V/Purity_soda;//soda required in mg// +S=S/10^3; +printf("\n Amount of Soda required is %.f g",S) \ No newline at end of file diff --git a/2966/CH1/EX1.29/Ex1_29.sce b/2966/CH1/EX1.29/Ex1_29.sce new file mode 100644 index 000000000..9d6a384c8 --- /dev/null +++ b/2966/CH1/EX1.29/Ex1_29.sce @@ -0,0 +1,34 @@ +//water// +//page 1.41 example 13// +clc +Purity_Lime=.8 +Purity_soda=.85 +W1=162;//amount of Ca(HCO3)2 in ppm// +W2=7.3;//amount of Mg(HCO3)2 in ppm// +W3=9.5;//amount of MgCl2 in ppm// +W4=36.5;//amount of HCl in ppm// +W5=44;//amount of CO2 in ppm// +W6=111;//amount of CaCl2 in ppm// +W7=60;//amount of MgSO4 in ppm// +M1=100/162;//multiplication factor of Ca(HCO3)2// +M2=100/146;//multiplication factor of Mg(HCO3)2// +M3=100/95;//multiplication factor of MgCl2// +M4=100/73;//multiplication factor of HCl// +M5=100/44;//multiplication factor of CO2// +M6=100/111;//multiplication factor of CaCl2// +M7=100/120;//multiplication factor of MgSO4// +P1=W1*M1;//in terms of CaCO3//L +P2=W2*M2;//in terms of CaCO3//2*L +P3=W3*M3;//in terms of CaCO3//L+S +P4=W4*M4;//in terms of CaCO3//L+S +P5=W5*M5;//in terms of CaCO3//L +P6=W6*M6;//in terms of CaCO3//S +P7=W7*M7;//in terms of CaCO3//L+S +printf ("We do not take NaCl since it does not react with lime/soda"); +V=1000000;//volume of water in litres// +L=0.74*(P1+2*P2+P3+P4+P5+P7)*V/Purity_Lime;//lime required in mg// +L=L/10^3; +printf("\n Amount of Lime required is %.f g",L); +S=1.06*(P3+P4+P6+P7)*V/Purity_soda;//soda required in mg// +S=S/10^3; +printf("\n Amount of Soda required is %.f g",S) \ No newline at end of file diff --git a/2966/CH1/EX1.3/Ex1_3.sce b/2966/CH1/EX1.3/Ex1_3.sce new file mode 100644 index 000000000..1eded4e6d --- /dev/null +++ b/2966/CH1/EX1.3/Ex1_3.sce @@ -0,0 +1,11 @@ +//water// +//page 1.9 example 3// +clc +W1=150;//Ca2+ in water in mg/L// +W2=60;//Mg2+ in water in mg/L// +M1=100/40;//multiplication factor of Ca2+// +M2=100/24;//multiplication factor of Mg2+// +P1=W1*M1;//Ca2+ in terms of CaCO3// +P2=W2*M2;//Mg2+ in terms of CaCO3// +T=P1+P2; +printf("\nTotal hardness is %.0f mg/L",T); \ No newline at end of file diff --git a/2966/CH1/EX1.30/Ex1_30.sce b/2966/CH1/EX1.30/Ex1_30.sce new file mode 100644 index 000000000..dfdfbccaf --- /dev/null +++ b/2966/CH1/EX1.30/Ex1_30.sce @@ -0,0 +1,25 @@ +//water// +//page 1.42 example 14// +clc +Purity_Lime=1 +Purity_soda=1 +W1=222;//amount of CaCl2 in ppm// +W2=296;//amount of Mg(NO3)2 in ppm// +W3=324;//amount of Ca(HCO3)2 in ppm// +W4=196;//amount of H2SO4 in ppm// +M1=100/111;//multiplication factor of CaCl2// +M2=100/148;//multiplication factor of Ca(HCO3)2// +M3=100/162;//multiplication factor of MgCO3// +M4=100/98;//multiplication factor of H2SO4// +P1=W1*M1;//in terms of CaCO3//S +P2=W2*M2;//in terms of CaCO3//L+S +P3=W3*M3;//in terms of CaCO3//L +P4=W4*M4;//in terms of CaCO3//L+S +printf ("We do not take organic matter since it does not react with lime/soda"); +V=50000;//volume of water in litres// +L=0.74*(P2+P3+P4)*V/Purity_Lime;//lime required in mg// +L=L/10^3; +printf("\n Amount of Lime required is %.f g",L); +S=1.06*(P1+P2+P4)*V/Purity_soda;//soda required in mg// +S=S/10^3; +printf("\n Amount of Soda required is %.f g",S) \ No newline at end of file diff --git a/2966/CH1/EX1.31/Ex1_31.sce b/2966/CH1/EX1.31/Ex1_31.sce new file mode 100644 index 000000000..8dba3fd28 --- /dev/null +++ b/2966/CH1/EX1.31/Ex1_31.sce @@ -0,0 +1,33 @@ +//water// +//page 1.43 example 15// +clc +Purity_Lime=.85 +Purity_soda=.95 +W1=12.5;//amount of CaCO3 in ppm// +W2=8.4;//amount of MgCO3 in ppm// +W3=22.2;//amount of CaCl2 in ppm// +W4=9.5;//amount of MgCl2 in ppm// +W5=33;//amount of CO2 in ppm// +W6=7.3;//amount of HCl in ppm// +W7=16.8;//amount of NaHCO3 in ppm// +M1=100/100;//multiplication factor of CaCO3// +M2=100/84;//multiplication factor of MgCO3// +M3=100/111;//multiplication factor of CaCl2// +M4=100/95;//multiplication factor of MgCl2// +M5=100/44;//multiplication factor of CO2// +M6=100/73;//multiplication factor of HCl// +M7=100/168;//multiplication factor of NaHCO3// +P1=W1*M1;//in terms of CaCO3//L +P2=W2*M2;//in terms of CaCO3//2*L +P3=W3*M3;//in terms of CaCO3//S +P4=W4*M4;//in terms of CaCO3//L+S +P5=W5*M5;//in terms of CaCO3//L +P6=W6*M6;//in terms of CaCO3//L+S +P7=W7*M7;//in terms of CaCO3//L-S +V=1000000;//volume of water in litres// +L=0.74*(P1+2*P2+P4+P5+P6+P7)*V/Purity_Lime;//lime required in mg// +L=L/10^3; +printf("\n Amount of Lime required is %.f g",L); +S=1.06*(P3+P4+P6-P7)*V/Purity_soda;//soda required in mg// +S=S/10^3; +printf("\n Amount of Soda required is %.f g",S) \ No newline at end of file diff --git a/2966/CH1/EX1.32/Ex1_32.sce b/2966/CH1/EX1.32/Ex1_32.sce new file mode 100644 index 000000000..eb406ee60 --- /dev/null +++ b/2966/CH1/EX1.32/Ex1_32.sce @@ -0,0 +1,28 @@ +//water// +//page 1.44 example 16// +clc +Purity_Lime=1 +Purity_soda=1 +W1=8.1;//amount of Ca(HCO3)2 in ppm// +W2=7.5;//amount of Mg(HCO3)2 in ppm// +W3=13.6;//amount of CaSO4 in ppm// +W4=12;//amount of MgSO4 in ppm// +W5=2;//amount of MgCl2 in ppm// +M1=100/162;//multiplication factor of Ca(HCO3)2// +M2=100/146;//multiplication factor of Mg(HCO3)2// +M3=100/136;//multiplication factor of CaSO4// +M4=100/120;//multiplication factor of MgSO4// +M5=100/95;//multiplication factor of MgCl2// +P1=W1*M1;//in terms of CaCO3//L +P2=W2*M2;//in terms of CaCO3//2*L +P3=W3*M3;//in terms of CaCO3//S +P4=W4*M4;//in terms of CaCO3//L+S +P5=W5*M5;//in terms of CaCO3//S +printf ("We do not take NaCl since it does not react with lime/soda"); +V=50000;//volume of water in litres// +L=0.74*(P1+2*P2+P4+P5)*V/Purity_Lime;//lime required in mg// +L=L/10^3; +printf("\n Amount of Lime required is %.2f g",L); +S=1.06*(P3+P4+P5)*V/Purity_soda;//soda required in mg// +S=S/10^3; +printf("\n Amount of Soda required is %.2f g",S) \ No newline at end of file diff --git a/2966/CH1/EX1.33/Ex1_33.sce b/2966/CH1/EX1.33/Ex1_33.sce new file mode 100644 index 000000000..b61e017e7 --- /dev/null +++ b/2966/CH1/EX1.33/Ex1_33.sce @@ -0,0 +1,25 @@ +//water// +//page 1.45 example 17// +clc +Purity_Lime=.9 +Purity_soda=.95 +W1=155;//amount of Mg(HCO3)2 in ppm// +W2=23;//amount of MgCl2 in ppm// +W3=5;//amount of H2SO4 in ppm// +W4=111;//amount of CaCl2 in ppm// +M1=100/146;//multiplication factor of Mg(HCO3)2// +M2=100/95;//multiplication factor of MgCl2// +M3=100/98;//multiplication factor of H2SO4// +M4=100/111;//multiplication factor of CaCl2// +P1=W1*M1;//in terms of CaCO3//2*L +P2=W2*M2;//in terms of CaCO3//L+S +P3=W3*M3;//in terms of CaCO3//L+S +P4=W4*M4;//in terms of CaCO3//S +printf ("We do not take NaCl and Na2SO4 since they do not react with lime/soda"); +V=50000;//volume of water in litres// +L=0.74*(2*P1+P2+P3)*V/Purity_Lime;//lime required in mg// +L=L/10^3; +printf("\n Amount of Lime required is %.2f g",L);//Final answer in book is incorrect// +S=1.06*(P2+P3+P4)*V/Purity_soda;//soda required in mg// +S=S/10^3; +printf("\n Amount of Soda required is %.2f g",S)//Final answer in book is incorrect// \ No newline at end of file diff --git a/2966/CH1/EX1.34/Ex1_34.sce b/2966/CH1/EX1.34/Ex1_34.sce new file mode 100644 index 000000000..3ff96bdec --- /dev/null +++ b/2966/CH1/EX1.34/Ex1_34.sce @@ -0,0 +1,28 @@ +//water// +//page 1.45 example 18// +clc +Purity_Lime=.9 +Purity_soda=.95 +W1=81;//amount of Ca(HCO3)2 in ppm// +W2=95;//amount of MgCl2 in ppm// +W3=68;//amount of CaSO4 in ppm// +W4=146;//amount of Mg(HCO3)2 in ppm// +W5=49;//amount of H2SO4 in ppm// +M1=100/162;//multiplication factor of Ca(HCO3)2// +M2=100/95;//multiplication factor of MgCl2// +M3=100/136;//multiplication factor of CaSO4// +M4=100/146;//multiplication factor of Mg(HCO3)2// +M5=100/98;//multiplication factor of H2SO4// +P1=W1*M1;//in terms of CaCO3//L +P2=W2*M2;//in terms of CaCO3//L+S +P3=W3*M3;//in terms of CaCO3//S +P4=W4*M4;//in terms of CaCO3//2*L +P5=W5*M5;//in terms of CaCO3//L+S +printf ("We do not take SiO2 since it does not react with lime/soda"); +V=50000;//volume of water in litres// +L=0.74*(P1+P2+2*P4+P5)*V/Purity_Lime;//lime required in mg// +L=L/10^3; +printf("\n Amount of Lime required is %.2f g",L); +S=1.06*(P2+P3+P5)*V/Purity_soda;//soda required in mg// +S=S/10^3; +printf("\n Amount of Soda required is %.2f g",S) \ No newline at end of file diff --git a/2966/CH1/EX1.35/Ex1_35.sce b/2966/CH1/EX1.35/Ex1_35.sce new file mode 100644 index 000000000..613679e08 --- /dev/null +++ b/2966/CH1/EX1.35/Ex1_35.sce @@ -0,0 +1,30 @@ +//water// +//page 1.46 example 19// +clc +Purity_Lime=.95 +Purity_soda=.9 +W1=81;//amount of Ca(HCO3)2 in ppm// +W2=73;//amount of Mg(HCO3)2 in ppm// +W3=68;//amount of CaSO4 in ppm// +W4=95;//amount of MgCl2 in ppm// +W5=14.8;//amount of Mg(NO3)2 in ppm// +W6=14.7;//amount of H2SO4 in ppm// +M1=100/162;//multiplication factor of Ca(HCO3)2// +M2=100/146;//multiplication factor of Mg(HCO3)2// +M3=100/136;//multiplication factor of CaSO4// +M4=100/95;//multiplication factor of MgCl2// +M5=100/148;//multiplication factor of Mg(NO3)2// +M6=100/98;//multiplication factor of H2SO4// +P1=W1*M1;//in terms of CaCO3//L +P2=W2*M2;//in terms of CaCO3//2*L +P3=W3*M3;//in terms of CaCO3//S +P4=W4*M4;//in terms of CaCO3//L+S +P5=W5*M5;//in terms of CaCO3//L+S +P6=W6*M6;//in terms of CaCO3//L+S +V=1000000;//volume of water in litres// +L=0.74*(P1+2*P2+P4+P5+P6)*V/Purity_Lime;//lime required in mg// +L=L/10^3; +printf("\n Amount of Lime required is %.1f g",L); +S=1.06*(P3+P4+P5+P6)*V/Purity_soda;//soda required in mg// +S=S/10^3; +printf("\n Amount of Soda required is %.1f g",S); \ No newline at end of file diff --git a/2966/CH1/EX1.36/Ex1_36.sce b/2966/CH1/EX1.36/Ex1_36.sce new file mode 100644 index 000000000..16990b627 --- /dev/null +++ b/2966/CH1/EX1.36/Ex1_36.sce @@ -0,0 +1,12 @@ +//water// +//page 1.50 example 1// +clc +volume_hardwater=10000//in litres// +volume_NaCl=5000//Volume of NaCl in litres// +conc_NaCl=1170/10000//% NaCl consumed by zeolite bed// +Wt_per_Litre=conc_NaCl*10//gms NaCl consumed by zeolite bed per litre// +total_wt=Wt_per_Litre*volume_NaCl//total gms NaCl consumed by zeolite bed// +CaCO3_equivalent=total_wt*50/58.5//in terms of (gms/lit)// +H=CaCO3_equivalent/volume_hardwater//Hardness of water(gms/lit)// +Hardness=H*1000//Hardness of water(mg/lit) or ppm// +printf("\nHardness of water sample is %.f ppm",Hardness); \ No newline at end of file diff --git a/2966/CH1/EX1.37/Ex1_37.sce b/2966/CH1/EX1.37/Ex1_37.sce new file mode 100644 index 000000000..61b7958a2 --- /dev/null +++ b/2966/CH1/EX1.37/Ex1_37.sce @@ -0,0 +1,12 @@ +//water// +//page 1.50 example 2// +clc +volume_hardwater=75000//in litres// +volume_NaCl=1500//Volume of NaCl in litres// +conc_NaCl=1.170/100//% NaCl consumed by zeolite bed// +Wt_per_Litre=conc_NaCl*10//gms NaCl consumed by zeolite bed per litre// +total_wt=Wt_per_Litre*volume_NaCl//total gms NaCl consumed by zeolite bed// +CaCO3_equivalent=total_wt*50/58.5//in terms of (gms/lit)// +H=CaCO3_equivalent/volume_hardwater//Hardness of water(gms/lit)// +Hardness=H*1000//Hardness of water(mg/lit) or ppm// +printf("\nHardness of water sample is %.f ppm",Hardness); \ No newline at end of file diff --git a/2966/CH1/EX1.38/Ex1_38.sce b/2966/CH1/EX1.38/Ex1_38.sce new file mode 100644 index 000000000..f19e0d2d4 --- /dev/null +++ b/2966/CH1/EX1.38/Ex1_38.sce @@ -0,0 +1,12 @@ +//water// +//page 1.51 example 3// +clc +Hardness=300//Hardness of water(mg/lit) or ppm// +H=Hardness/100//Hardness of water(gms/lit)// +volume_NaCl=75//Volume of NaCl// +conc_NaCl=75//% NaCl consumed by zeolite bed// +Wt_per_Litre=conc_NaCl*10//gms NaCl consumed by zeolite bed per litre// +total_wt=Wt_per_Litre*volume_NaCl//total gms NaCl consumed by zeolite bed// +CaCO3_equivalent=total_wt*50/58.5//in terms of (gms/lit)// +volume_hardwater=CaCO3_equivalent/H +printf("\nQuantity of water softened using zeolite bed is %.f litres",volume_hardwater); \ No newline at end of file diff --git a/2966/CH1/EX1.39/Ex1_39.sce b/2966/CH1/EX1.39/Ex1_39.sce new file mode 100644 index 000000000..e5f8678d8 --- /dev/null +++ b/2966/CH1/EX1.39/Ex1_39.sce @@ -0,0 +1,12 @@ +//water// +//page 1.51 example 4// +clc +Hardness=400//Hardness of water(mg/lit) or ppm// +H=Hardness/100//Hardness of water(gms/lit)// +volume_NaCl=100//Volume of NaCl// +conc_NaCl=60//% NaCl consumed by zeolite bed// +Wt_per_Litre=conc_NaCl*10//gms NaCl consumed by zeolite bed per litre// +total_wt=Wt_per_Litre*volume_NaCl//total gms NaCl consumed by zeolite bed// +CaCO3_equivalent=total_wt*50/58.5//in terms of (gms/lit)// +volume_hardwater=CaCO3_equivalent/H +printf("\nQuantity of water softened using zeolite bed is %.f litres",volume_hardwater); \ No newline at end of file diff --git a/2966/CH1/EX1.4/Ex1_4.sce b/2966/CH1/EX1.4/Ex1_4.sce new file mode 100644 index 000000000..a447c14a4 --- /dev/null +++ b/2966/CH1/EX1.4/Ex1_4.sce @@ -0,0 +1,9 @@ +//water// +//page 1.9 example 4// +clc +H=210.5;//hardness in ppm// +M1=100;//molecular weight of CaCO3// +M2=136;//molecular weight of FeSO4// +M=M1/M2;//multiplication factor of FeSO4// +W=H/M;//weight of FeSO4 required// +printf("\nFeSO4 required is %.1f ppm",W); \ No newline at end of file diff --git a/2966/CH1/EX1.40/Ex1_40.sce b/2966/CH1/EX1.40/Ex1_40.sce new file mode 100644 index 000000000..89f988a5e --- /dev/null +++ b/2966/CH1/EX1.40/Ex1_40.sce @@ -0,0 +1,12 @@ +//water// +//page 1.52 example 5// +clc +volume_hardwater=100000//in litres// +volume_NaCl=400//Volume of NaCl in litres// +conc_NaCl=100//% NaCl consumed by zeolite bed// +Wt_per_Litre=conc_NaCl*10//gms NaCl consumed by zeolite bed per litre// +total_wt=Wt_per_Litre*volume_NaCl//total gms NaCl consumed by zeolite bed// +CaCO3_equivalent=total_wt*50/58.5//in terms of (gms/lit)// +H=CaCO3_equivalent/volume_hardwater//Hardness of water(gms/lit)// +Hardness=H*100//Hardness of water(mg/lit) or ppm// +printf("\nHardness of water sample is %.1f mg/L",Hardness); \ No newline at end of file diff --git a/2966/CH1/EX1.41/Ex1_41.sce b/2966/CH1/EX1.41/Ex1_41.sce new file mode 100644 index 000000000..2fc244fd2 --- /dev/null +++ b/2966/CH1/EX1.41/Ex1_41.sce @@ -0,0 +1,12 @@ +//water// +//page 1.52 example 6// +clc +volume_hardwater=800//in litres// +volume_NaCl=40//Volume of NaCl in litres// +conc_NaCl=110//% NaCl consumed by zeolite bed// +Wt_per_Litre=conc_NaCl*10//gms NaCl consumed by zeolite bed per litre// +total_wt=Wt_per_Litre*volume_NaCl//total gms NaCl consumed by zeolite bed// +CaCO3_equivalent=total_wt*50/58.5//in terms of (gms/lit)// +H=CaCO3_equivalent/volume_hardwater//Hardness of water(gms/lit)// +Hardness=H*100//Hardness of water(mg/lit) or ppm// +printf("\nHardness of water sample is %.2f ppm",Hardness); \ No newline at end of file diff --git a/2966/CH1/EX1.42/Ex1_42.sce b/2966/CH1/EX1.42/Ex1_42.sce new file mode 100644 index 000000000..359e31ab3 --- /dev/null +++ b/2966/CH1/EX1.42/Ex1_42.sce @@ -0,0 +1,10 @@ +//water// +//page 1.53 example 7// +clc +volume_hardwater=1//in litres// +CaCl2=4.5//Hardness of water(gms/lit)// +moles_NaCl=2;//Na3Ze giving NaCl and CaZe// +mol_wt_NaCl=58.5; +mol_wt_Na3Ze=111; +NaCl=CaCl2*moles_NaCl*mol_wt_NaCl/mol_wt_Na3Ze; +printf("\Quantity of NaCl produced is %.2f gm",NaCl); \ No newline at end of file diff --git a/2966/CH1/EX1.43/Ex1_43.sce b/2966/CH1/EX1.43/Ex1_43.sce new file mode 100644 index 000000000..6a15fa04d --- /dev/null +++ b/2966/CH1/EX1.43/Ex1_43.sce @@ -0,0 +1,12 @@ +//water// +//page 1.53 example 8// +clc +Hardness=500//Hardness of water(mg/lit) or ppm// +H=Hardness/100//Hardness of water(gms/lit)// +volume_NaCl=100//Volume of NaCl// +conc_NaCl=120//% NaCl consumed by zeolite bed// +Wt_per_Litre=conc_NaCl*10//gms NaCl consumed by zeolite bed per litre// +total_wt=Wt_per_Litre*volume_NaCl//total gms NaCl consumed by zeolite bed// +CaCO3_equivalent=total_wt*50/58.48//in terms of (gms/lit)// +volume_hardwater=CaCO3_equivalent/H +printf("\nQuantity of water softened using zeolite bed is %.f litres",volume_hardwater); \ No newline at end of file diff --git a/2966/CH1/EX1.44/Ex1_44.sce b/2966/CH1/EX1.44/Ex1_44.sce new file mode 100644 index 000000000..4254db402 --- /dev/null +++ b/2966/CH1/EX1.44/Ex1_44.sce @@ -0,0 +1,11 @@ +//water// +//page 1.54 example 9// +clc +volume_hardwater=4500//in litres// +volume_NaCl=30//Volume of NaCl in litres// +Wt_per_Litre=100//% NaCl consumed by zeolite bed// +total_wt=Wt_per_Litre*volume_NaCl//total gms NaCl consumed by zeolite bed// +CaCO3_equivalent=total_wt*50/58.55//in terms of (gms/lit)// +H=CaCO3_equivalent/volume_hardwater//Hardness of water(gms/lit)// +Hardness=H*1000//Hardness of water(mg/lit) or ppm// +printf("\nHardness of water sample is %.f ppm",Hardness); \ No newline at end of file diff --git a/2966/CH1/EX1.45/Ex1_45.sce b/2966/CH1/EX1.45/Ex1_45.sce new file mode 100644 index 000000000..068073176 --- /dev/null +++ b/2966/CH1/EX1.45/Ex1_45.sce @@ -0,0 +1,11 @@ +//water// +//page 1.54 example 10// +clc +volume_hardwater=3500//in litres// +volume_NaCl=25//Volume of NaCl in litres// +Wt_per_Litre=100//% NaCl consumed by zeolite bed// +total_wt=Wt_per_Litre*volume_NaCl//total gms NaCl consumed by zeolite bed// +CaCO3_equivalent=total_wt*50/58.5//in terms of (gms/lit)// +H=CaCO3_equivalent/volume_hardwater//Hardness of water(gms/lit)// +Hardness=H*1000//Hardness of water(mg/lit) or ppm// +printf("\nHardness of water sample is %.1f ppm",Hardness); \ No newline at end of file diff --git a/2966/CH1/EX1.46/Ex1_46.sce b/2966/CH1/EX1.46/Ex1_46.sce new file mode 100644 index 000000000..01d0e9942 --- /dev/null +++ b/2966/CH1/EX1.46/Ex1_46.sce @@ -0,0 +1,11 @@ +//water// +//page 1.55 example 11// +clc +volume_hardwater=15000//in litres// +volume_NaCl=120//Volume of NaCl in litres// +Wt_per_Litre=30//% NaCl consumed by zeolite bed// +total_wt=Wt_per_Litre*volume_NaCl//total gms NaCl consumed by zeolite bed// +CaCO3_equivalent=total_wt*50/58.5//in terms of (gms/lit)// +H=CaCO3_equivalent/volume_hardwater//Hardness of water(gms/lit)// +Hardness=H*1000//Hardness of water(mg/lit) or ppm// +printf("\nHardness of water sample is %.1f ppm",Hardness); \ No newline at end of file diff --git a/2966/CH1/EX1.47/Ex1_47.sce b/2966/CH1/EX1.47/Ex1_47.sce new file mode 100644 index 000000000..027dc9bbc --- /dev/null +++ b/2966/CH1/EX1.47/Ex1_47.sce @@ -0,0 +1,12 @@ +//water// +//page 1.55 example 12// +clc +Hardness=480//Hardness of water(mg/lit) or ppm// +H=Hardness/100//Hardness of water(gms/lit)// +volume_NaCl=300//Volume of NaCl// +conc_NaCl=150//% NaCl consumed by zeolite bed// +Wt_per_Litre=conc_NaCl*10//gms NaCl consumed by zeolite bed per litre// +total_wt=Wt_per_Litre*volume_NaCl//total gms NaCl consumed by zeolite bed// +CaCO3_equivalent=total_wt*50/58.5//in terms of (gms/lit)// +volume_hardwater=CaCO3_equivalent/H +printf("\nQuantity of water softened using zeolite bed is %.f litres",volume_hardwater); \ No newline at end of file diff --git a/2966/CH1/EX1.48/Ex1_48.sce b/2966/CH1/EX1.48/Ex1_48.sce new file mode 100644 index 000000000..e08103c37 --- /dev/null +++ b/2966/CH1/EX1.48/Ex1_48.sce @@ -0,0 +1,9 @@ +//water// +//page 1.59 example 1// +clc +volume_water=10^4//in litres// +volume_HCl=200//in litres// +conc_HCl=0.1//in Normals// +totl_hardness=volume_HCl*conc_HCl*50//in terms of g CaCO3 equivalent// +h=totl_hardness/volume_water//in terms of g CaCO3 equivalent// +printf("\nHardness of water sample is %.f mg/L",h*1000); \ No newline at end of file diff --git a/2966/CH1/EX1.49/Ex1_49.sce b/2966/CH1/EX1.49/Ex1_49.sce new file mode 100644 index 000000000..98376c849 --- /dev/null +++ b/2966/CH1/EX1.49/Ex1_49.sce @@ -0,0 +1,10 @@ +//water// +//page 1.72 example 1// +clc +vol_init=50//initial volume of sample in ml// +vol_fin=80//final volume of sample in ml// +DOb=840//dissolved O2 present in effluent sample before incubation in ppm// +DOi=230//dissolved O2 present in effluent sample after incubation in ppm// +DF=vol_fin/vol_init//dilution factor// +BOD=(DOb-DOi)*DF//in ppm// +printf("\nBiological Oxygen Demand(BOD) of the sample is %.f ppm",BOD); \ No newline at end of file diff --git a/2966/CH1/EX1.5/Ex1_5.sce b/2966/CH1/EX1.5/Ex1_5.sce new file mode 100644 index 000000000..3453872de --- /dev/null +++ b/2966/CH1/EX1.5/Ex1_5.sce @@ -0,0 +1,18 @@ +//water// +//page 1.10 example 5// +clc +W1=32.4;//Ca(HCO3)2 in water in mg/L// +W2=29.2;//Mg(HCO3)2 in water in mg/L// +W3=13.6;//CaSO4 in water in mg/L// +M1=100/162;//multiplication factor of Ca(HCO3)2// +M2=100/146;//multiplication factor of Mg(HCO3)2// +M3=100/136;//multiplication factor of CaSO4// +P1=W1*M1;//Ca(HCO3)2 in terms of CaCO3// +P2=W2*M2;//Mg(HCO3)2 in terms of CaCO3// +P3=W3*M3;//CaSO4 in terms of CaCO3// +T=P1+P2; +printf("\nTemporary hardness is %.0f ppm",T); +P=P3; +printf("\nPermanant hardness is %.0f ppm",P); +To=T+P; +printf("\nTotal hardness is %.0f ppm",To); \ No newline at end of file diff --git a/2966/CH1/EX1.50/Ex1_50.sce b/2966/CH1/EX1.50/Ex1_50.sce new file mode 100644 index 000000000..08d73c0d3 --- /dev/null +++ b/2966/CH1/EX1.50/Ex1_50.sce @@ -0,0 +1,9 @@ +//water// +//page 1.73 example 2// +clc +Vb=27//volume of ferrous ammonium sulphate in blank experiment in ml// +Vt=6.5//volume of ferrous ammonium sulphate in test experiment in ml// +N=0.1//concentration in Normals// +Ve=25//volume of water sample taken in test in ml// +COD=(Vb-Vt)*N*8/Ve//in ppm// +printf("\nChemical Oxygen Demand(COD) of the sample is %.3f ppm",COD); \ No newline at end of file diff --git a/2966/CH1/EX1.51/Ex1_51.sce b/2966/CH1/EX1.51/Ex1_51.sce new file mode 100644 index 000000000..a4f56deb9 --- /dev/null +++ b/2966/CH1/EX1.51/Ex1_51.sce @@ -0,0 +1,12 @@ +//water// +//page 1.84 example 2// +clc +volume_hardwater=800//in litres// +volume_NaCl=40//Volume of NaCl in litres// +conc_NaCl=110//% NaCl consumed by zeolite bed// +Wt_per_Litre=conc_NaCl*10//gms NaCl consumed by zeolite bed per litre// +total_wt=Wt_per_Litre*volume_NaCl//total gms NaCl consumed by zeolite bed// +CaCO3_equivalent=total_wt*50/58.5//in terms of (gms/lit)// +H=CaCO3_equivalent/volume_hardwater//Hardness of water(gms/lit)// +Hardness=H*100//Hardness of water(mg/lit) or ppm// +printf("\nHardness of water sample is %.2f ppm",Hardness); \ No newline at end of file diff --git a/2966/CH1/EX1.52/Ex1_52.sce b/2966/CH1/EX1.52/Ex1_52.sce new file mode 100644 index 000000000..d595e7ce5 --- /dev/null +++ b/2966/CH1/EX1.52/Ex1_52.sce @@ -0,0 +1,28 @@ +//water// +//page 1.84 example 3// +clc +Purity_Lime=.9 +Purity_soda=.95 +W1=81;//amount of Ca(HCO3)2 in ppm// +W2=42;//amount of MgCO3 in ppm// +W3=4.1;//amount of NaAlO2 in ppm// +W4=3.65;//amount of HCl in ppm// +W5=82;//amount of Ca(NO3)2 in ppm// +M1=100/162;//multiplication factor of Ca(HCO3)2// +M2=100/84;//multiplication factor of MgCO3// +M3=100/82;//multiplication factor of NaAlO2// +M4=100/36.5;//multiplication factor of HCl// +M5=100/164;//multiplication factor of Ca(NO3)2// +P1=W1*M1;//in terms of CaCO3//L +P2=W2*M2;//in terms of CaCO3//2*L +P3=W3*M3;//in terms of CaCO3//-L +P4=W4*M4;//in terms of CaCO3//L+S +P5=W5*M5;//in terms of CaCO3//S +printf ("We do not take NaCl since it does not react with lime/soda"); +V=20000;//volume of water in litres// +L=0.74*(P1+2*P2+P4-P3)*V/Purity_Lime;//lime required in mg// +L=L/10^3; +printf("\n Amount of Lime required is %.2f g",L); +S=1.06*(P4+P5)*V/Purity_soda;//soda required in mg// +S=S/10^3; +printf("\n Amount of Soda required is %.3f g",S) \ No newline at end of file diff --git a/2966/CH1/EX1.53/Ex1_53.sce b/2966/CH1/EX1.53/Ex1_53.sce new file mode 100644 index 000000000..464776870 --- /dev/null +++ b/2966/CH1/EX1.53/Ex1_53.sce @@ -0,0 +1,18 @@ +//water// +//page 1.84 example 1// +clc +W1=32.4;//Ca(HCO3)2 in water in mg/L// +W2=29.2;//Mg(HCO3)2 in water in mg/L// +W3=13.6;//CaSO4 in water in mg/L// +M1=100/162;//multiplication factor of Ca(HCO3)2// +M2=100/146;//multiplication factor of Mg(HCO3)2// +M3=100/136;//multiplication factor of CaSO4// +P1=W1*M1;//Ca(HCO3)2 in terms of CaCO3// +P2=W2*M2;//Mg(HCO3)2 in terms of CaCO3// +P3=W3*M3;//CaSO4 in terms of CaCO3// +T=P1+P2; +printf("\nTemporary hardness is %.0f ppm",T); +P=P3; +printf("\nPermanant hardness is %.0f ppm",P); +To=T+P; +printf("\nTotal hardness is %.0f ppm",To); \ No newline at end of file diff --git a/2966/CH1/EX1.54/Ex1_54.sce b/2966/CH1/EX1.54/Ex1_54.sce new file mode 100644 index 000000000..524a74953 --- /dev/null +++ b/2966/CH1/EX1.54/Ex1_54.sce @@ -0,0 +1,28 @@ +//water// +//page 1.85 example 3// +clc +Purity_Lime=.85 +Purity_soda=.9 +W1=16.2;//amount of Ca(HCO3)2 in ppm// +W2=6.8;//amount of CaSO4 in ppm// +W3=11.1;//amount of CaCl2 in ppm// +W4=6;//amount of MgSO4 in ppm// +W5=8.4;//amount of Mg(HCO3)2 in ppm// +M1=100/162;//multiplication factor of Ca(HCO3)2// +M2=100/136;//multiplication factor of CaSO4// +M3=100/111;//multiplication factor of CaCl2// +M4=100/120;//multiplication factor of MgSO4// +M5=100/146;//multiplication factor of Mg(HCO3)2// +P1=W1*M1;//in terms of CaCO3//L +P2=W2*M2;//in terms of CaCO3//S +P3=W3*M3;//in terms of CaCO3//S +P4=W4*M4;//in terms of CaCO3//L+S +P5=W5*M5;//in terms of CaCO3//2*L +printf ("We do not take NaCl since it does not react with lime/soda"); +V=10000;//volume of water in litres// +L=0.74*(P1+P4+2*P5)*V/Purity_Lime;//lime required in mg// +L=L/10^3; +printf("\n Amount of Lime required is %.1f g",L); +S=1.06*(P2+P3+P4)*V/Purity_soda;//soda required in mg// +S=S/10^3; +printf("\n Amount of Soda required is %.2f g",S) \ No newline at end of file diff --git a/2966/CH1/EX1.55/Ex1_55.sce b/2966/CH1/EX1.55/Ex1_55.sce new file mode 100644 index 000000000..785f4b8e0 --- /dev/null +++ b/2966/CH1/EX1.55/Ex1_55.sce @@ -0,0 +1,20 @@ +//water// +//page 1.85 example 4// +clc +conc_SH=15/1000//in terms of g/lit// +strength_SH=conc_SH*1000//in terms of mgs/lit// +volume_SH=20//in terms of ml// +volume_H=100//in terms of ml// +EDTA_SH=25//volume for Std hardwater(ml)// +EDTA_H=18//volume for sample hardwater(ml)// +AB_EDTA=12//volume required after boiling(ml)// +CaCO3_equivalent_SH=strength_SH*volume_SH//in terms of CaCO3 equivalent// +one_ml_EDTA=CaCO3_equivalent_SH/EDTA_SH//in terms of CaCO3 equivalent// +To_sample=one_ml_EDTA*EDTA_H/volume_H//total hardness for given volume// +To=To_sample*1000//total hardness per litre(ppm)// +P_sample=AB_EDTA*one_ml_EDTA/volume_H//permanent hardness for given volume// +P=P_sample*1000//permanent hardness per litre(ppm)// +T=To-P +printf("\nTotal Hardness is %.f ppm",To); +printf("\nPermanent Hardness is %.f ppm",P); +printf("\nTemporary Hardness is %.f ppm",T); \ No newline at end of file diff --git a/2966/CH1/EX1.56/Ex1_56.sce b/2966/CH1/EX1.56/Ex1_56.sce new file mode 100644 index 000000000..e04aa3a22 --- /dev/null +++ b/2966/CH1/EX1.56/Ex1_56.sce @@ -0,0 +1,31 @@ +//water// +//page 1.85 example 2// +clc +Purity_Lime=.7 +Purity_soda=.85 +W1=30.2;//amount of Ca(HCO3)2 in ppm// +W2=20.8;//amount of Mg(HCO3)2 in ppm// +W3=28.31;//amount of CaCl2 in ppm// +W4=8.7;//amount of MgCl2 in ppm// +W5=35;//amount of CaSO4 in ppm// +W6=6.7;//amount of MgSO4 in ppm// +M1=100/162;//multiplication factor of Ca(HCO3)2// +M2=100/146;//multiplication factor of Mg(HCO3)2// +M3=100/111;//multiplication factor of CaCl2// +M4=100/95;//multiplication factor of MgCl2// +M5=100/136;//multiplication factor of CaSO4// +M6=100/120;//multiplication factor of MgSO4// +P1=W1*M1;//in terms of CaCO3//L +P2=W2*M2;//in terms of CaCO3//2*L +P3=W3*M3;//in terms of CaCO3//S +P4=W4*M4;//in terms of CaCO3//L+S +P5=W5*M5;//in terms of CaCO3//S +P6=W6*M6;//in terms of CaCO3//L+S +printf ("We do not take Na2SO4 since it does not react with lime/soda"); +V=100000;//volume of water in litres// +L=0.74*(P1+2*P2+P4+P6)*V/Purity_Lime;//lime required in mg// +L=L/10^3; +printf("\n Amount of Lime required is %.1f g",L); +S=1.06*(P3+P4+P5+P6)*V/Purity_soda;//soda required in mg// +S=S/10^3; +printf("\n Amount of Soda required is %.f g",S) \ No newline at end of file diff --git a/2966/CH1/EX1.57/Ex1_57.sce b/2966/CH1/EX1.57/Ex1_57.sce new file mode 100644 index 000000000..411b6cf32 --- /dev/null +++ b/2966/CH1/EX1.57/Ex1_57.sce @@ -0,0 +1,10 @@ +//water// +//page 1.85 example 1// +clc +volume_hardwater=1//in litres// +CaCl2=4.5//Hardness of water(gms/lit)// +moles_NaCl=2;//Na3Ze giving NaCl and CaZe// +mol_wt_NaCl=58.5; +mol_wt_Na3Ze=111; +NaCl=CaCl2*moles_NaCl*mol_wt_NaCl/mol_wt_Na3Ze; +printf("\Quantity of NaCl produced is %.2f gm",NaCl); \ No newline at end of file diff --git a/2966/CH1/EX1.58/Ex1_58.sce b/2966/CH1/EX1.58/Ex1_58.sce new file mode 100644 index 000000000..153f0bf04 --- /dev/null +++ b/2966/CH1/EX1.58/Ex1_58.sce @@ -0,0 +1,22 @@ +//water// +//page 1.86 example 1// +clc +W1=14.6;//Mg(HCO3)2 in water in mg/L// +W2=8.1;//Ca(HCO3)2 in water in mg/L// +W3=29.6;//Mg(NO3)2 in water in mg/L// +W4=19;//MgCl2 in water in mg/L// +W5=24;//MgSO4 in water in mg/L// +M1=100/146;//multiplication factor of Mg(HCO3)2// +M2=100/162;//multiplication factor of Ca(HCO3)2// +M3=100/148;//multiplication factor of Mg(NO3)2// +M4=100/95;//multiplication factor of MgCl2// +M5=100/120;//multiplication factor of MgSO4// +P1=W1*M1;//Mg(HCO3)2 in terms of CaCO3// +P2=W2*M2;//Ca(HCO3)2 in terms of CaCO3// +P3=W3*M3;//Mg(NO3)2 in terms of CaCO3// +P4=W4*M4;//MgCl2 in terms of CaCO3// +P5=W5*M5;//MgSO4 in terms of CaCO3// +T=P1+P2; +printf("\nTemporary hardness is %.0f ppm",T); +P=P3+P4+P5; +printf("\nPermanant hardness is %.0f ppm",P); \ No newline at end of file diff --git a/2966/CH1/EX1.59/Ex1_59.sce b/2966/CH1/EX1.59/Ex1_59.sce new file mode 100644 index 000000000..5363a0339 --- /dev/null +++ b/2966/CH1/EX1.59/Ex1_59.sce @@ -0,0 +1,34 @@ +//water// +//page 1.86 example 3// +clc +Purity_Lime=.8 +Purity_soda=.85 +W1=162;//amount of Ca(HCO3)2 in ppm// +W2=7.3;//amount of Mg(HCO3)2 in ppm// +W3=9.5;//amount of MgCl2 in ppm// +W4=36.5;//amount of HCl in ppm// +W5=44;//amount of CO2 in ppm// +W6=111;//amount of CaCl2 in ppm// +W7=60;//amount of MgSO4 in ppm// +M1=100/162;//multiplication factor of Ca(HCO3)2// +M2=100/146;//multiplication factor of Mg(HCO3)2// +M3=100/95;//multiplication factor of MgCl2// +M4=100/73;//multiplication factor of HCl// +M5=100/44;//multiplication factor of CO2// +M6=100/111;//multiplication factor of CaCl2// +M7=100/120;//multiplication factor of MgSO4// +P1=W1*M1;//in terms of CaCO3//L +P2=W2*M2;//in terms of CaCO3//2*L +P3=W3*M3;//in terms of CaCO3//L+S +P4=W4*M4;//in terms of CaCO3//L+S +P5=W5*M5;//in terms of CaCO3//L +P6=W6*M6;//in terms of CaCO3//S +P7=W7*M7;//in terms of CaCO3//L+S +printf ("We do not take NaCl since it does not react with lime/soda"); +V=1000000;//volume of water in litres// +L=0.74*(P1+2*P2+P3+P4+P5+P7)*V/Purity_Lime;//lime required in mg// +L=L/10^3; +printf("\n Amount of Lime required is %.f g",L); +S=1.06*(P3+P4+P6+P7)*V/Purity_soda;//soda required in mg// +S=S/10^3; +printf("\n Amount of Soda required is %.f g",S) \ No newline at end of file diff --git a/2966/CH1/EX1.6/Ex1_6.sce b/2966/CH1/EX1.6/Ex1_6.sce new file mode 100644 index 000000000..11a1fc2eb --- /dev/null +++ b/2966/CH1/EX1.6/Ex1_6.sce @@ -0,0 +1,22 @@ +//water// +//page 1.10 example 6// +clc +W1=14.6;//Mg(HCO3)2 in water in mg/L// +W2=8.1;//Ca(HCO3)2 in water in mg/L// +W3=29.6;//Mg(NO3)2 in water in mg/L// +W4=19;//MgCl2 in water in mg/L// +W5=24;//MgSO4 in water in mg/L// +M1=100/146;//multiplication factor of Mg(HCO3)2// +M2=100/162;//multiplication factor of Ca(HCO3)2// +M3=100/148;//multiplication factor of Mg(NO3)2// +M4=100/95;//multiplication factor of MgCl2// +M5=100/120;//multiplication factor of MgSO4// +P1=W1*M1;//Mg(HCO3)2 in terms of CaCO3// +P2=W2*M2;//Ca(HCO3)2 in terms of CaCO3// +P3=W3*M3;//Mg(NO3)2 in terms of CaCO3// +P4=W4*M4;//MgCl2 in terms of CaCO3// +P5=W5*M5;//MgSO4 in terms of CaCO3// +T=P1+P2; +printf("\nTemporary hardness is %.0f ppm",T); +P=P3+P4+P5; +printf("\nPermanant hardness is %.0f ppm",P); \ No newline at end of file diff --git a/2966/CH1/EX1.60/Ex1_60.sce b/2966/CH1/EX1.60/Ex1_60.sce new file mode 100644 index 000000000..a8b5874d9 --- /dev/null +++ b/2966/CH1/EX1.60/Ex1_60.sce @@ -0,0 +1,20 @@ +//water// +//page 1.86 example 4// +clc +conc_SH=0.5/500//in terms of g/lit// +strength_SH=conc_SH*1000//in terms of mgs/lit// +volume_SH=50//in terms of ml// +volume_H=50//in terms of ml// +EDTA_SH=48//volume for Std hardwater(ml)// +EDTA_H=15//volume for sample hardwater(ml)// +AB_EDTA=10//volume required after boiling(ml)// +CaCO3_equivalent_SH=strength_SH*volume_SH//in terms of CaCO3 equivalent// +one_ml_EDTA=CaCO3_equivalent_SH/EDTA_SH//in terms of CaCO3 equivalent// +To_sample=one_ml_EDTA*EDTA_H/volume_H//total hardness for given volume// +To=To_sample*1000//total hardness per litre(ppm)// +P_sample=AB_EDTA*one_ml_EDTA/volume_H//permanent hardness for given volume// +P=P_sample*1000//permanent hardness per litre(ppm)// +T=To-P +printf("\nTotal Hardness is %.1f ppm",To); +printf("\nPermanent Hardness is %.2f ppm",P); +printf("\nTemporary Hardness is %.2f ppm",T); \ No newline at end of file diff --git a/2966/CH1/EX1.61/Ex1_61.sce b/2966/CH1/EX1.61/Ex1_61.sce new file mode 100644 index 000000000..c82dd9707 --- /dev/null +++ b/2966/CH1/EX1.61/Ex1_61.sce @@ -0,0 +1,21 @@ +//water// +//page 1.87 example 1// +clc +W1=7.3;//Mg(HCO3)2 in water in mg/L// +W2=9.5;//MgCl2 in water in mg/L// +W3=16.2;//Ca(HCO3)2 in water in mg/L// +W4=13.6;//CaSO4 in water in mg/L// +M1=100/146;//multiplication factor of Mg(HCO3)2// +M2=100/95;//multiplication factor of MgCl2// +M3=100/162;//multiplication factor of Ca(HCO3)2// +M4=100/136;//multiplication factor of CaSO4// +P1=W1*M1;//Mg(HCO3)2 in terms of CaCO3// +P2=W2*M2;//MgCl2 in terms of CaCO3// +P3=W3*M3;//Ca(HCO3)2 in terms of CaCO3// +P4=W4*M4;//CaSO4 in terms of CaCO3// +T=P1+P3; +printf("\nTemporary hardness is %.0f ppm",T); +P=P2+P4; +printf("\nPermanant hardness is %.0f ppm",P); +To=T+P; +printf("\nTotal hardness is %.0f ppm",To); \ No newline at end of file diff --git a/2966/CH1/EX1.62/Ex1_62.sce b/2966/CH1/EX1.62/Ex1_62.sce new file mode 100644 index 000000000..b1c28c82a --- /dev/null +++ b/2966/CH1/EX1.62/Ex1_62.sce @@ -0,0 +1,25 @@ +//water// +//page 1.87 example 2// +clc +Purity_Lime=1 +Purity_soda=1 +W1=222;//amount of CaCl2 in ppm// +W2=296;//amount of Mg(NO3)2 in ppm// +W3=324;//amount of Ca(HCO3)2 in ppm// +W4=196;//amount of H2SO4 in ppm// +M1=100/111;//multiplication factor of CaCl2// +M2=100/148;//multiplication factor of Ca(HCO3)2// +M3=100/162;//multiplication factor of MgCO3// +M4=100/98;//multiplication factor of H2SO4// +P1=W1*M1;//in terms of CaCO3//S +P2=W2*M2;//in terms of CaCO3//L+S +P3=W3*M3;//in terms of CaCO3//L +P4=W4*M4;//in terms of CaCO3//L+S +printf ("We do not take organic matter since it does not react with lime/soda"); +V=50000;//volume of water in litres// +L=0.74*(P2+P3+P4)*V/Purity_Lime;//lime required in mg// +L=L/10^3; +printf("\n Amount of Lime required is %.f g",L); +S=1.06*(P1+P2+P4)*V/Purity_soda;//soda required in mg// +S=S/10^3; +printf("\n Amount of Soda required is %.f g",S) \ No newline at end of file diff --git a/2966/CH1/EX1.63/Ex1_63.sce b/2966/CH1/EX1.63/Ex1_63.sce new file mode 100644 index 000000000..27a11a12f --- /dev/null +++ b/2966/CH1/EX1.63/Ex1_63.sce @@ -0,0 +1,33 @@ +//water// +//page 1.87 example 3// +clc +Purity_Lime=.85 +Purity_soda=.95 +W1=12.5;//amount of CaCO3 in ppm// +W2=8.4;//amount of MgCO3 in ppm// +W3=22.2;//amount of CaCl2 in ppm// +W4=9.5;//amount of MgCl2 in ppm// +W5=33;//amount of CO2 in ppm// +W6=7.3;//amount of HCl in ppm// +W7=16.8;//amount of NaHCO3 in ppm// +M1=100/100;//multiplication factor of CaCO3// +M2=100/84;//multiplication factor of MgCO3// +M3=100/111;//multiplication factor of CaCl2// +M4=100/95;//multiplication factor of MgCl2// +M5=100/44;//multiplication factor of CO2// +M6=100/73;//multiplication factor of HCl// +M7=100/168;//multiplication factor of NaHCO3// +P1=W1*M1;//in terms of CaCO3//L +P2=W2*M2;//in terms of CaCO3//2*L +P3=W3*M3;//in terms of CaCO3//S +P4=W4*M4;//in terms of CaCO3//L+S +P5=W5*M5;//in terms of CaCO3//L +P6=W6*M6;//in terms of CaCO3//L+S +P7=W7*M7;//in terms of CaCO3//L-S +V=1000000;//volume of water in litres// +L=0.74*(P1+2*P2+P4+P5+P6+P7)*V/Purity_Lime;//lime required in mg// +L=L/10^3; +printf("\n Amount of Lime required is %.f g",L); +S=1.06*(P3+P4+P6-P7)*V/Purity_soda;//soda required in mg// +S=S/10^3; +printf("\n Amount of Soda required is %.f g",S) \ No newline at end of file diff --git a/2966/CH1/EX1.64/Ex1_64.sce b/2966/CH1/EX1.64/Ex1_64.sce new file mode 100644 index 000000000..1a302e59d --- /dev/null +++ b/2966/CH1/EX1.64/Ex1_64.sce @@ -0,0 +1,12 @@ +//water// +//page 1.87 example 4// +clc +Hardness=500//Hardness of water(mg/lit) or ppm// +H=Hardness/100//Hardness of water(gms/lit)// +volume_NaCl=100//Volume of NaCl// +conc_NaCl=120//% NaCl consumed by zeolite bed// +Wt_per_Litre=conc_NaCl*10//gms NaCl consumed by zeolite bed per litre// +total_wt=Wt_per_Litre*volume_NaCl//total gms NaCl consumed by zeolite bed// +CaCO3_equivalent=total_wt*50/58.48//in terms of (gms/lit)// +volume_hardwater=CaCO3_equivalent/H +printf("\nQuantity of water softened using zeolite bed is %.f litres",volume_hardwater); \ No newline at end of file diff --git a/2966/CH1/EX1.65/Ex1_65.sce b/2966/CH1/EX1.65/Ex1_65.sce new file mode 100644 index 000000000..8ba166f7c --- /dev/null +++ b/2966/CH1/EX1.65/Ex1_65.sce @@ -0,0 +1,11 @@ +//water// +//page 1.88 example 3// +clc +volume_hardwater=4500//in litres// +volume_NaCl=30//Volume of NaCl in litres// +Wt_per_Litre=100//% NaCl consumed by zeolite bed// +total_wt=Wt_per_Litre*volume_NaCl//total gms NaCl consumed by zeolite bed// +CaCO3_equivalent=total_wt*50/58.55//in terms of (gms/lit)// +H=CaCO3_equivalent/volume_hardwater//Hardness of water(gms/lit)// +Hardness=H*1000//Hardness of water(mg/lit) or ppm// +printf("\nHardness of water sample is %.f ppm",Hardness); \ No newline at end of file diff --git a/2966/CH1/EX1.66/Ex1_66.sce b/2966/CH1/EX1.66/Ex1_66.sce new file mode 100644 index 000000000..d0cca419e --- /dev/null +++ b/2966/CH1/EX1.66/Ex1_66.sce @@ -0,0 +1,28 @@ +//water// +//page 1.88 example 4// +clc +Purity_Lime=1 +Purity_soda=1 +W1=8.1;//amount of Ca(HCO3)2 in ppm// +W2=7.5;//amount of Mg(HCO3)2 in ppm// +W3=13.6;//amount of CaSO4 in ppm// +W4=12;//amount of MgSO4 in ppm// +W5=2;//amount of MgCl2 in ppm// +M1=100/162;//multiplication factor of Ca(HCO3)2// +M2=100/146;//multiplication factor of Mg(HCO3)2// +M3=100/136;//multiplication factor of CaSO4// +M4=100/120;//multiplication factor of MgSO4// +M5=100/95;//multiplication factor of MgCl2// +P1=W1*M1;//in terms of CaCO3//L +P2=W2*M2;//in terms of CaCO3//2*L +P3=W3*M3;//in terms of CaCO3//S +P4=W4*M4;//in terms of CaCO3//L+S +P5=W5*M5;//in terms of CaCO3//S +printf ("We do not take NaCl since it does not react with lime/soda"); +V=50000;//volume of water in litres// +L=0.74*(P1+2*P2+P4+P5)*V/Purity_Lime;//lime required in mg// +L=L/10^3; +printf("\n Amount of Lime required is %.2f g",L); +S=1.06*(P3+P4+P5)*V/Purity_soda;//soda required in mg// +S=S/10^3; +printf("\n Amount of Soda required is %.2f g",S) \ No newline at end of file diff --git a/2966/CH1/EX1.67/Ex1_67.sce b/2966/CH1/EX1.67/Ex1_67.sce new file mode 100644 index 000000000..865f22344 --- /dev/null +++ b/2966/CH1/EX1.67/Ex1_67.sce @@ -0,0 +1,20 @@ +//water// +//page 1.88 example 4// +clc +conc_SH=1/1000//in terms of g/lit// +strength_SH=conc_SH*1000//in terms of mgs/lit// +volume_SH=50//in terms of ml// +volume_H=50//in terms of ml// +EDTA_SH=45//volume for Std hardwater(ml)// +EDTA_H=25//volume for sample hardwater(ml)// +AB_EDTA=15//volume required after boiling(ml)// +CaCO3_equivalent_SH=strength_SH*volume_SH//in terms of CaCO3 equivalent// +one_ml_EDTA=CaCO3_equivalent_SH/EDTA_SH//in terms of CaCO3 equivalent// +To_sample=one_ml_EDTA*EDTA_H/volume_H//total hardness for given volume// +To=To_sample*1000//total hardness per litre(ppm)// +P_sample=AB_EDTA*one_ml_EDTA/volume_H//permanent hardness for given volume// +P=P_sample*1000//permanent hardness per litre(ppm)// +T=To-P +printf("\nTotal Hardness is %.2f ppm",To); +printf("\nPermanent Hardness is %.2f ppm",P); +printf("\nTemporary Hardness is %.2f ppm",T); \ No newline at end of file diff --git a/2966/CH1/EX1.68/Ex1_68.sce b/2966/CH1/EX1.68/Ex1_68.sce new file mode 100644 index 000000000..d9c9ba97e --- /dev/null +++ b/2966/CH1/EX1.68/Ex1_68.sce @@ -0,0 +1,21 @@ +//water// +//page 1.89 example 1// +clc +W1=19;//MgCl2 in water in mg/L// +W2=5;//CaCO3 in water in mg/L// +W3=29.5;//Ca(HCO3)2 in water in mg/L// +W4=13;//CaSO4 in water in mg/L// +M1=100/95;//multiplication factor of MgCl2// +M2=100/100;//multiplication factor of CaCO3// +M3=100/162;//multiplication factor of Ca(HCO3)2// +M4=100/136;//multiplication factor of CaSO4// +P1=W1*M1;//MgCl2 in terms of CaCO3// +P2=W2*M2;//CaCO3 in terms of CaCO3// +P3=W3*M3;//Ca(HCO3)2 in terms of CaCO3// +P4=W4*M4;//CaSO4 in terms of CaCO3// +T=P2+P3; +printf("\nTemporary hardness is %.2f ppm",T); +P=P1+P4; +printf("\nPermanant hardness is %.2f ppm",P); +To=T+P; +printf("\nTotal hardness is %.2f ppm",To); \ No newline at end of file diff --git a/2966/CH1/EX1.69/Ex1_69.sce b/2966/CH1/EX1.69/Ex1_69.sce new file mode 100644 index 000000000..0029526f8 --- /dev/null +++ b/2966/CH1/EX1.69/Ex1_69.sce @@ -0,0 +1,25 @@ +//water// +//page 1.89 example 2// +clc +Purity_Lime=.9 +Purity_soda=.95 +W1=155;//amount of Mg(HCO3)2 in ppm// +W2=23;//amount of MgCl2 in ppm// +W3=5;//amount of H2SO4 in ppm// +W4=111;//amount of CaCl2 in ppm// +M1=100/146;//multiplication factor of Mg(HCO3)2// +M2=100/95;//multiplication factor of MgCl2// +M3=100/98;//multiplication factor of H2SO4// +M4=100/111;//multiplication factor of CaCl2// +P1=W1*M1;//in terms of CaCO3//2*L +P2=W2*M2;//in terms of CaCO3//L+S +P3=W3*M3;//in terms of CaCO3//L+S +P4=W4*M4;//in terms of CaCO3//S +printf ("We do not take NaCl and Na2SO4 since they do not react with lime/soda"); +V=50000;//volume of water in litres// +L=0.74*(2*P1+P2+P3)*V/Purity_Lime;//lime required in mg// +L=L/10^3; +printf("\n Amount of Lime required is %.2f g",L); +S=1.06*(P2+P3+P4)*V/Purity_soda;//soda required in mg// +S=S/10^3; +printf("\n Amount of Soda required is %.2f g",S) \ No newline at end of file diff --git a/2966/CH1/EX1.7/Ex1_7.sce b/2966/CH1/EX1.7/Ex1_7.sce new file mode 100644 index 000000000..aae59c350 --- /dev/null +++ b/2966/CH1/EX1.7/Ex1_7.sce @@ -0,0 +1,21 @@ +//water// +//page 1.11 example 7// +clc +W1=7.3;//Mg(HCO3)2 in water in mg/L// +W2=9.5;//MgCl2 in water in mg/L// +W3=16.2;//Ca(HCO3)2 in water in mg/L// +W4=13.6;//CaSO4 in water in mg/L// +M1=100/146;//multiplication factor of Mg(HCO3)2// +M2=100/95;//multiplication factor of MgCl2// +M3=100/162;//multiplication factor of Ca(HCO3)2// +M4=100/136;//multiplication factor of CaSO4// +P1=W1*M1;//Mg(HCO3)2 in terms of CaCO3// +P2=W2*M2;//MgCl2 in terms of CaCO3// +P3=W3*M3;//Ca(HCO3)2 in terms of CaCO3// +P4=W4*M4;//CaSO4 in terms of CaCO3// +T=P1+P3; +printf("\nTemporary hardness is %.0f ppm",T); +P=P2+P4; +printf("\nPermanant hardness is %.0f ppm",P); +To=T+P; +printf("\nTotal hardness is %.0f ppm",To); \ No newline at end of file diff --git a/2966/CH1/EX1.70/Ex1_70.sce b/2966/CH1/EX1.70/Ex1_70.sce new file mode 100644 index 000000000..81e77c47e --- /dev/null +++ b/2966/CH1/EX1.70/Ex1_70.sce @@ -0,0 +1,20 @@ +//water// +//page 1.89 example 3// +clc +conc_SH=1/20//in terms of g/lit// +strength_SH=conc_SH*1000//in terms of mgs/lit// +volume_SH=50//in terms of ml// +volume_H=50//in terms of ml// +EDTA_SH=1000//volume for Std hardwater(ml)// +EDTA_H=7.2//volume for sample hardwater(ml)// +AB_EDTA=4//volume required after boiling(ml)// +CaCO3_equivalent_SH=strength_SH*volume_SH//in terms of CaCO3 equivalent// +one_ml_EDTA=CaCO3_equivalent_SH/EDTA_SH//in terms of CaCO3 equivalent// +To_sample=one_ml_EDTA*EDTA_H/volume_H//total hardness for given volume// +To=To_sample*1000//total hardness per litre(ppm)// +P_sample=AB_EDTA*one_ml_EDTA/volume_H//permanent hardness for given volume// +P=P_sample*1000//permanent hardness per litre(ppm)// +T=To-P +printf("\nTotal Hardness is %.f ppm",To); +printf("\nPermanent Hardness is %.f ppm",P); +printf("\nTemporary Hardness is %.f ppm",T); \ No newline at end of file diff --git a/2966/CH1/EX1.71/Ex1_71.sce b/2966/CH1/EX1.71/Ex1_71.sce new file mode 100644 index 000000000..e0390c996 --- /dev/null +++ b/2966/CH1/EX1.71/Ex1_71.sce @@ -0,0 +1,11 @@ +//water// +//page 1.89 example 4// +clc +volume_hardwater=3500//in litres// +volume_NaCl=25//Volume of NaCl in litres// +Wt_per_Litre=100//% NaCl consumed by zeolite bed// +total_wt=Wt_per_Litre*volume_NaCl//total gms NaCl consumed by zeolite bed// +CaCO3_equivalent=total_wt*50/58.5//in terms of (gms/lit)// +H=CaCO3_equivalent/volume_hardwater//Hardness of water(gms/lit)// +Hardness=H*1000//Hardness of water(mg/lit) or ppm// +printf("\nHardness of water sample is %.1f ppm",Hardness); \ No newline at end of file diff --git a/2966/CH1/EX1.72/Ex1_72.sce b/2966/CH1/EX1.72/Ex1_72.sce new file mode 100644 index 000000000..d22c3667d --- /dev/null +++ b/2966/CH1/EX1.72/Ex1_72.sce @@ -0,0 +1,11 @@ +//water// +//page 1.90 example 5// +clc +volume_hardwater=15000//in litres// +volume_NaCl=120//Volume of NaCl in litres// +Wt_per_Litre=30//% NaCl consumed by zeolite bed// +total_wt=Wt_per_Litre*volume_NaCl//total gms NaCl consumed by zeolite bed// +CaCO3_equivalent=total_wt*50/58.5//in terms of (gms/lit)// +H=CaCO3_equivalent/volume_hardwater//Hardness of water(gms/lit)// +Hardness=H*1000//Hardness of water(mg/lit) or ppm// +printf("\nHardness of water sample is %.1f ppm",Hardness); \ No newline at end of file diff --git a/2966/CH1/EX1.73/Ex1_73.sce b/2966/CH1/EX1.73/Ex1_73.sce new file mode 100644 index 000000000..d2ff560ca --- /dev/null +++ b/2966/CH1/EX1.73/Ex1_73.sce @@ -0,0 +1,20 @@ +//water// +//page 1.90 example 6// +clc +conc_SH=1.2/1000//in terms of g/lit// +strength_SH=conc_SH*1000//in terms of mgs/lit// +volume_SH=20//in terms of ml// +volume_H=50//in terms of ml// +EDTA_SH=35//volume for Std hardwater(ml)// +EDTA_H=30//volume for sample hardwater(ml)// +AB_EDTA=25//volume required after boiling(ml)// +CaCO3_equivalent_SH=strength_SH*volume_SH//in terms of CaCO3 equivalent// +one_ml_EDTA=CaCO3_equivalent_SH/EDTA_SH//in terms of CaCO3 equivalent// +To_sample=one_ml_EDTA*EDTA_H/volume_H//total hardness for given volume// +To=To_sample*1000//total hardness per litre(ppm)// +P_sample=AB_EDTA*one_ml_EDTA/volume_H//permanent hardness for given volume// +P=P_sample*1000//permanent hardness per litre(ppm)// +T=To-P +printf("\nTotal Hardness is %.f ppm",To); +printf("\nPermanent Hardness is %.1f ppm",P); +printf("\nTemporary Hardness is %.1f ppm",T); \ No newline at end of file diff --git a/2966/CH1/EX1.74/Ex1_74.sce b/2966/CH1/EX1.74/Ex1_74.sce new file mode 100644 index 000000000..eb81677dd --- /dev/null +++ b/2966/CH1/EX1.74/Ex1_74.sce @@ -0,0 +1,28 @@ +//water// +//page 1.90 example 7// +clc +Purity_Lime=.9 +Purity_soda=.95 +W1=81;//amount of Ca(HCO3)2 in ppm// +W2=95;//amount of MgCl2 in ppm// +W3=68;//amount of CaSO4 in ppm// +W4=146;//amount of Mg(HCO3)2 in ppm// +W5=49;//amount of H2SO4 in ppm// +M1=100/162;//multiplication factor of Ca(HCO3)2// +M2=100/95;//multiplication factor of MgCl2// +M3=100/136;//multiplication factor of CaSO4// +M4=100/146;//multiplication factor of Mg(HCO3)2// +M5=100/98;//multiplication factor of H2SO4// +P1=W1*M1;//in terms of CaCO3//L +P2=W2*M2;//in terms of CaCO3//L+S +P3=W3*M3;//in terms of CaCO3//S +P4=W4*M4;//in terms of CaCO3//2*L +P5=W5*M5;//in terms of CaCO3//L+S +printf ("We do not take SiO2 since it does not react with lime/soda"); +V=50000;//volume of water in litres// +L=0.74*(P1+P2+2*P4+P5)*V/Purity_Lime;//lime required in mg// +L=L/10^3; +printf("\n Amount of Lime required is %.2f g",L); +S=1.06*(P2+P3+P5)*V/Purity_soda;//soda required in mg// +S=S/10^3; +printf("\n Amount of Soda required is %.2f g",S) \ No newline at end of file diff --git a/2966/CH1/EX1.75/Ex1_75.sce b/2966/CH1/EX1.75/Ex1_75.sce new file mode 100644 index 000000000..731da6026 --- /dev/null +++ b/2966/CH1/EX1.75/Ex1_75.sce @@ -0,0 +1,30 @@ +//water// +//page 1.90 example 3// +clc +Purity_Lime=.95 +Purity_soda=.9 +W1=81;//amount of Ca(HCO3)2 in ppm// +W2=73;//amount of Mg(HCO3)2 in ppm// +W3=68;//amount of CaSO4 in ppm// +W4=95;//amount of MgCl2 in ppm// +W5=14.8;//amount of Mg(NO3)2 in ppm// +W6=14.7;//amount of H2SO4 in ppm// +M1=100/162;//multiplication factor of Ca(HCO3)2// +M2=100/146;//multiplication factor of Mg(HCO3)2// +M3=100/136;//multiplication factor of CaSO4// +M4=100/95;//multiplication factor of MgCl2// +M5=100/148;//multiplication factor of Mg(NO3)2// +M6=100/98;//multiplication factor of H2SO4// +P1=W1*M1;//in terms of CaCO3//L +P2=W2*M2;//in terms of CaCO3//2*L +P3=W3*M3;//in terms of CaCO3//S +P4=W4*M4;//in terms of CaCO3//L+S +P5=W5*M5;//in terms of CaCO3//L+S +P6=W6*M6;//in terms of CaCO3//L+S +V=1000000;//volume of water in litres// +L=0.74*(P1+2*P2+P4+P5+P6)*V/Purity_Lime;//lime required in mg// +L=L/10^3; +printf("\n Amount of Lime required is %.1f g",L); +S=1.06*(P3+P4+P5+P6)*V/Purity_soda;//soda required in mg// +S=S/10^3; +printf("\n Amount of Soda required is %.1f g",S); \ No newline at end of file diff --git a/2966/CH1/EX1.76/Ex1_76.sce b/2966/CH1/EX1.76/Ex1_76.sce new file mode 100644 index 000000000..208ab4b57 --- /dev/null +++ b/2966/CH1/EX1.76/Ex1_76.sce @@ -0,0 +1,12 @@ +//water// +//page 1.90 example 4// +clc +Hardness=480//Hardness of water(mg/lit) or ppm// +H=Hardness/100//Hardness of water(gms/lit)// +volume_NaCl=300//Volume of NaCl// +conc_NaCl=150//% NaCl consumed by zeolite bed// +Wt_per_Litre=conc_NaCl*10//gms NaCl consumed by zeolite bed per litre// +total_wt=Wt_per_Litre*volume_NaCl//total gms NaCl consumed by zeolite bed// +CaCO3_equivalent=total_wt*50/58.5//in terms of (gms/lit)// +volume_hardwater=CaCO3_equivalent/H +printf("\nQuantity of water softened using zeolite bed is %.f litres",volume_hardwater); \ No newline at end of file diff --git a/2966/CH1/EX1.8/Ex1_8.sce b/2966/CH1/EX1.8/Ex1_8.sce new file mode 100644 index 000000000..d65c77917 --- /dev/null +++ b/2966/CH1/EX1.8/Ex1_8.sce @@ -0,0 +1,21 @@ +//water// +//page 1.12 example 8// +clc +W1=19;//MgCl2 in water in mg/L// +W2=5;//CaCO3 in water in mg/L// +W3=29.5;//Ca(HCO3)2 in water in mg/L// +W4=13;//CaSO4 in water in mg/L// +M1=100/95;//multiplication factor of MgCl2// +M2=100/100;//multiplication factor of CaCO3// +M3=100/162;//multiplication factor of Ca(HCO3)2// +M4=100/136;//multiplication factor of CaSO4// +P1=W1*M1;//MgCl2 in terms of CaCO3// +P2=W2*M2;//CaCO3 in terms of CaCO3// +P3=W3*M3;//Ca(HCO3)2 in terms of CaCO3// +P4=W4*M4;//CaSO4 in terms of CaCO3// +T=P2+P3; +printf("\nTemporary hardness is %.2f ppm",T); +P=P1+P4; +printf("\nPermanant hardness is %.2f ppm",P); +To=T+P; +printf("\nTotal hardness is %.2f ppm",To); \ No newline at end of file diff --git a/2966/CH1/EX1.9/Ex1_9.sce b/2966/CH1/EX1.9/Ex1_9.sce new file mode 100644 index 000000000..0ad178a0a --- /dev/null +++ b/2966/CH1/EX1.9/Ex1_9.sce @@ -0,0 +1,13 @@ +//water// +//page 1.15 example 1// +clc +strength=1.1//in terms of mgs/ml CaCO3// +volume=50//volume titrated(ml)// +EDTA=38//volume in terms of ml// +volume_hardwater=100//volume of hardwater titrated(ml)// +EDTA_hardwater=21//volume used to titrate unknown hardwater// +CaCO3_equivalent=strength*volume//in terms of mg// +one_ml_EDTA=CaCO3_equivalent/EDTA//in terms of CaCO3 equivalent// +titrate_equivalent=one_ml_EDTA*EDTA_hardwater/volume_hardwater//CaCO3 equivalent of titrated volume// +Hardness=titrate_equivalent*1000//in terms of mg/lit or ppm// +printf("\nHardness of water is %.1f mg/L",Hardness); \ No newline at end of file -- cgit