diff options
author | Trupti Kini | 2017-01-25 23:30:36 +0600 |
---|---|---|
committer | Trupti Kini | 2017-01-25 23:30:36 +0600 |
commit | ece5ac1869f368bf60b7af8f6fb1f1426aa82841 (patch) | |
tree | 474b598b088686b059cad12f097d1e50d0eedff9 /sample_notebooks | |
parent | 8538d26ae7c18ff1d639431eff3b6e5971519982 (diff) | |
download | Python-Textbook-Companions-ece5ac1869f368bf60b7af8f6fb1f1426aa82841.tar.gz Python-Textbook-Companions-ece5ac1869f368bf60b7af8f6fb1f1426aa82841.tar.bz2 Python-Textbook-Companions-ece5ac1869f368bf60b7af8f6fb1f1426aa82841.zip |
Added(A)/Deleted(D) following books
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter10_EAg6827.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter10_FWFi3lU.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter10_Goix5H9.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter10_VriTfiQ.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter10_Yq1Psz2.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter10_l9H0tzb.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter10_pYSKzNA.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter10_zs7Ebyd.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter11_27AWa1S.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter11_47129pd.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter11_CGVC5S7.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter11_aM6HbOJ.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter11_elTomjM.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter11_hIH40hA.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter11_hfcwfMy.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter11_rDaXznv.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter12_4CIoGBj.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter12_8Ha6SRC.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter12_BV4qq7W.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter12_DcqNS3a.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter12_GaxQomY.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter12_TWDQmEU.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter12_gYL8x2U.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter12_pwlIEac.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter1_9Ph1wQl.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter1_H4ZXqG6.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter1_R7vvA9U.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter1_RJFpm9n.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter1_hdpf5pv.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter1_s7mmHTE.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter1_svi606z.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter1_yZrBrGW.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter2_1u2hkaL.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter2_4iVYyIH.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter2_96qogp8.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter2_97bKbrn.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter2_KU6DQxX.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter2_WQAFWBB.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter2_kXmkQiI.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter2_rMDgBlb.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter3_0Gpo8ij.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter3_1HFLVW3.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter3_Kef4wQi.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter3_MWqVgIK.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter3_QiNYdnt.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter3_ZOEnqWz.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter3_t8ZxgMJ.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter3_yX7jRTL.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter4_12jIRAa.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter4_7TlydJM.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter4_9F6nz40.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter4_Iv6UqxF.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter4_QznuUog.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter4_Tlme4Nt.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter4_kKbunDz.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter4_kj2kQSj.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter5_ELZ4gfb.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter5_HmzPXBx.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter5_NsyjFuf.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter5_dQcqRqy.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter5_fpjVXLa.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter5_qEtyNEB.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter5_wOjIeEX.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter5_zpdMjKp.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter6_4sTMSct.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter6_OaXeXza.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter6_OzarWlo.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter6_ZcykI2A.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter6_Ztedvce.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter6_hp8AaKa.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter6_j1y0oTK.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter6_srj5dHs.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter7_7s2tMTN.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter7_9XJ7DgO.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter7_Kxvh43O.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter7_St5Khwo.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter7_XgCkEpd.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter7_YxJXxam.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter7_cYbOBPv.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter7_wdE8t89.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter8_3OxJHIx.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter8_Bj4FcI7.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter8_GBeiA21.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter8_QSOQgt9.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter8_lwCA1i3.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter8_m8vzt2q.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter8_pYLCIKK.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/Chapter8_yBBd5FI.ipynb
A BSc_First_Year_Physics_by_P._BalaBhaskar,_N._Srinivasa_Rao,_B._Sanjeeva_Rao/screenshots/11.png
A Solid_State_Physics_by_Dr._M._Arumugam/Chapter10_uTyvarI.ipynb
A Solid_State_Physics_by_Dr._M._Arumugam/Chapter11_j1rU3Z4.ipynb
A Solid_State_Physics_by_Dr._M._Arumugam/Chapter12_MsiPuok.ipynb
A Solid_State_Physics_by_Dr._M._Arumugam/Chapter13_Nvp3wKs.ipynb
A Solid_State_Physics_by_Dr._M._Arumugam/Chapter14_EldnQKR.ipynb
A Solid_State_Physics_by_Dr._M._Arumugam/Chapter1_wnjphci.ipynb
A Solid_State_Physics_by_Dr._M._Arumugam/Chapter2_MymLk0N.ipynb
A Solid_State_Physics_by_Dr._M._Arumugam/Chapter3_rTdfw6Q.ipynb
A Solid_State_Physics_by_Dr._M._Arumugam/Chapter4_OPOooLb.ipynb
A Solid_State_Physics_by_Dr._M._Arumugam/Chapter5_YkzzeVY.ipynb
A Solid_State_Physics_by_Dr._M._Arumugam/Chapter6_wKefPQQ.ipynb
A Solid_State_Physics_by_Dr._M._Arumugam/Chapter8_B0hDPyA.ipynb
A Solid_State_Physics_by_Dr._M._Arumugam/screenshots/22_X7ip5yw.png
A Solid_State_Physics_by_Dr._M._Arumugam/screenshots/33_mVM81ix.png
A Solid_State_Physics_by_Dr._M._Arumugam/screenshots/44_gepd6Lu.png
A sample_notebooks/nitinkumar/Chapter2.ipynb
Diffstat (limited to 'sample_notebooks')
-rw-r--r-- | sample_notebooks/nitinkumar/Chapter2.ipynb | 374 |
1 files changed, 374 insertions, 0 deletions
diff --git a/sample_notebooks/nitinkumar/Chapter2.ipynb b/sample_notebooks/nitinkumar/Chapter2.ipynb new file mode 100644 index 00000000..9711ae14 --- /dev/null +++ b/sample_notebooks/nitinkumar/Chapter2.ipynb @@ -0,0 +1,374 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:4ffa24abd34ea1d807c13e9c49ee68a5b2044c03e6300e8fc08c3e8ef3625eac"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter2-Water and its Treatment"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2_18_1-pg no 23"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##water and its treatment##\n",
+ "##example 2.18.1##\n",
+ "import math\n",
+ "W1=12.5;##CaCO3 in water in mg/lit##\n",
+ "W2=8.4;##MgCO3 in water in mg/lit##\n",
+ "W3=22.2;##CaCl2 in water in mg/lit##\n",
+ "W4=9.5;##MgCl2 in water in mg/lit##\n",
+ "W5=33.;##CO2 in water in mg/lit##\n",
+ "W6=6.68;##NaHCO3 in water in mg/lit##\n",
+ "M1=100./100.;##multiplication factor of CaCO3##\n",
+ "M2=100./84.;##multiplication factor of MgCO3##\n",
+ "M3=100./111.;##multiplication factor of CaCl2##\n",
+ "M4=100./95.;##multiplication factor of MgCl2##\n",
+ "M6=100./84.;##multiplication factor of NaHCO3##\n",
+ "P1=W1*M1;##CaCO3 in terms of CaCO3##\n",
+ "P2=W2*M2;##MgCO3 in terms of CaCO3##\n",
+ "P3=W3*M3;##CaCl2 in terms of CaCO3##\n",
+ "P4=W4*M4;##MgCl2 in terms of CaCO3##\n",
+ "P6=W6*M6;##NaHCO3 in terms of CaCO3##\n",
+ "print (\"We do not take CO2 since it does not contribute to hardness \");\n",
+ "C=P1+P2+P6;\n",
+ "print'%s %.2f %s'%(\"\\nCarbonate hardness is \",C,\" mg/l or ppm\");\n",
+ "NC=P3+P4;\n",
+ "print'%s %.2f %s'%(\"\\nNon Carbonate hardness is \",NC,\" mg/l or ppm\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "We do not take CO2 since it does not contribute to hardness \n",
+ "\n",
+ "Carbonate hardness is 30.45 mg/l or ppm\n",
+ "\n",
+ "Non Carbonate hardness is 30.00 mg/l or ppm\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2_18_2-pg no 26"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##water and its treatment##\n",
+ "##example 2.18.2##\n",
+ "import math\n",
+ "W1=40.5;##Ca(HCO3)2 in water in mg/lit##\n",
+ "W2=33.3;##CaCl2 in water in mg/lit##\n",
+ "W3=41.;##Ca(NO3)2 in water in mg/lit##\n",
+ "W4=101.;##KNO3 in water in mg/lit##\n",
+ "W5=33.6;##MgCO3 in water in mg/lit##\n",
+ "M1=100./162.;##multiplication factor of Ca(HCO3)2##\n",
+ "M2=100./111.;##multiplication factor of CaCl2##\n",
+ "M3=100./164.;##multiplication factor of Ca(NO3)2##\n",
+ "M5=100./84.;##multiplication factor of MgCO3##\n",
+ "P1=W1*M1;##Ca(HCO3)2 in terms of CaCO3##\n",
+ "P2=W2*M2;##CaCl2 in terms of CaCO3##\n",
+ "P3=W3*M3;##Ca(NO3)2 in terms of CaCO3##\n",
+ "P5=W5*M5;##MgCO3 in terms of CaCO3##\n",
+ "print (\"We do not take KNO3 since it does not contribute to hardness \");\n",
+ "C=P1+P5;\n",
+ "print'%s %.2f %s'%(\"\\nCarbonate hardness is \",C,\" mg/l or ppm\");\n",
+ "NC=P2+P3;\n",
+ "print'%s %.2f %s'%(\"\\nNon Carbonate hardness is \",NC,\" mg/l or ppm\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "We do not take KNO3 since it does not contribute to hardness \n",
+ "\n",
+ "Carbonate hardness is 65.00 mg/l or ppm\n",
+ "\n",
+ "Non Carbonate hardness is 55.00 mg/l or ppm\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2_18_3-pg no 27"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##water and its treatment##\n",
+ "##example 2.18.3##\n",
+ "import math\n",
+ "W1=29.1;##Mg(HCO3)2 in water in mg/lit##\n",
+ "W2=40.5;##Ca(HCO3)2 in water in mg/lit##\n",
+ "W3=11.1;##CaCl2 in water in mg/lit##\n",
+ "W4=15.82;##MgCl2 in water in mg/lit##\n",
+ "W5=28.5;##NaCl in water in mg/lit##\n",
+ "W6=22.0;##CO2 in water in mg/lit##\n",
+ "M1=100./146.007;##multiplication factor of Mg(HCO3)2##\n",
+ "M2=100./162.;##multiplication factor of Ca(HCO3)2##\n",
+ "M3=100./111.;##multiplication factor of CaCl2##\n",
+ "M4=100./95.005;##multiplication factor of MgCl2##\n",
+ "P1=W1*M1;##Mg(HCO3)2 in terms of CaCO3##\n",
+ "P2=W2*M2;##Ca(HCO3)2 in terms of CaCO3##\n",
+ "P3=W3*M3;##CaCl2 in terms of CaCO3##\n",
+ "P4=W4*M4;##MgCl2 in terms of CaCO3##\n",
+ "print(\"We do not take NaCl and CO2 since they do not contribute to hardness \");\n",
+ "C=P1+P2;\n",
+ "print'%s %.2f %s'%(\"\\nCarbonate hardness is \",C,\" mg/l or ppm\");\n",
+ "NC=P3+P4;\n",
+ "print'%s %.2f %s'%(\"\\nNon Carbonate hardness is \",NC,\" mg/l or ppm\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "We do not take NaCl and CO2 since they do not contribute to hardness \n",
+ "\n",
+ "Carbonate hardness is 44.93 mg/l or ppm\n",
+ "\n",
+ "Non Carbonate hardness is 26.65 mg/l or ppm\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2_18_4-pg no 28"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##water and its treatment##\n",
+ "##example 2.18.4##\n",
+ "import math\n",
+ "W1=16.2;##Ca(HCO3)2 in water in mg/lit##\n",
+ "W2=14.6;##Mg(HCO3)2 in water in mg/lit##\n",
+ "W3=9.5;##MgCl2 in water in mg/lit##\n",
+ "W4=48.;##MgSO4 in water in mg/lit##\n",
+ "W5=12.;##KCl in water in mg/lit##\n",
+ "M1=100./162.;##multiplication factor of Ca(HCO3)2##\n",
+ "M2=100./146.;##multiplication factor of Mg(HCO3)2 ##\n",
+ "M3=100./95.;##multiplication factor of MgCl2##\n",
+ "M4=100./120.;##multiplication factor of MgSO4##\n",
+ "P1=W1*M1;##Ca(HCO3)2 in terms of CaCO3##\n",
+ "P2=W2*M2;##Mg(HCO3)2 in terms of CaCO3##\n",
+ "P3=W3*M3;##MgCl2 in terms of CaCO3##\n",
+ "P4=W4*M4;##MgSO4 in terms of CaCO3##\n",
+ "print (\"We do not take KCl since it does not contribute to hardness \");\n",
+ "C=P1+P2;\n",
+ "print'%s %.2f %s'%(\"\\nCarbonate hardness is \",C,\" mg/l or ppm\");\n",
+ "NC=P3+P4;\n",
+ "print'%s %.2f %s'%(\"\\nNon Carbonate hardness is \",NC,\" mg/l or ppm\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "We do not take KCl since it does not contribute to hardness \n",
+ "\n",
+ "Carbonate hardness is 20.00 mg/l or ppm\n",
+ "\n",
+ "Non Carbonate hardness is 50.00 mg/l or ppm\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2_18_5-pg no30"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##water and its treatment##\n",
+ "##example 2.18.5##\n",
+ "import math\n",
+ "W1=81;##Ca(HCO3)2 in water in mg/lit##\n",
+ "W2=84;##MgCO3 in water in mg/lit##\n",
+ "W3=22.2;##CaCl2 in water in mg/lit##\n",
+ "W4=60;##MgSO4 in water in mg/lit##\n",
+ "W5=30;##KCl in water in mg/lit##\n",
+ "M1=100/162;##multiplication factor of Ca(HCO3)2##\n",
+ "M2=100/84;##multiplication factor of MgCO3##\n",
+ "M3=100/111;##multiplication factor of CaCl2##\n",
+ "M4=100/120;##multiplication factor of MgSO4##\n",
+ "P1=W1*M1;##Ca(HCO3)2 in terms of CaCO3##\n",
+ "P2=W2*M2;##MgCO3 in terms of CaCO3##\n",
+ "P3=W3*M3;##CaCl2 in terms of CaCO3##\n",
+ "P4=W4*M4;##MgSO4 in terms of CaCO3##\n",
+ "print (\"We do not take KCl since it does not contribute to hardness \");\n",
+ "T=P1+P2;\n",
+ "print'%s %.2f %s'%(\"\\nTemporary hardness is \",T,\" mg/l or ppm\");\n",
+ "P=P3+P4;\n",
+ "print'%s %.f %s'%(\"\\nPermanant hardness is \",P,\" mg/l or ppm\");\n",
+ "To=T+P;\n",
+ "print'%s %.2f %s'%(\"\\nTotal hardness is \",To,\" mg/l or ppm\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "We do not take KCl since it does not contribute to hardness \n",
+ "\n",
+ "Temporary hardness is 84.00 mg/l or ppm\n",
+ "\n",
+ "Permanant hardness is 0 mg/l or ppm\n",
+ "\n",
+ "Total hardness is 84.00 mg/l or ppm\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2_18_6-pg no 33"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##water and its treatment##\n",
+ "##example 2.18.6##\n",
+ "import math\n",
+ "W1=29.2;##MgCO3 in water in mg/lit##\n",
+ "W2=36.;##MgSO4 in water in mg/lit##\n",
+ "W3=22.2;##CaCl2 in water in mg/lit##\n",
+ "W4=142.5;##MgCl2 in water in mg/lit##\n",
+ "M1=100./84.;##multiplication factor of MgCO3##\n",
+ "M2=100./120.;##multiplication factor of MgSO4##\n",
+ "M3=100./111.;##multiplication factor of CaCl2##\n",
+ "M4=100./95.;##multiplication factor of MgCl2##\n",
+ "P1=W1*M1;##MgCO3 in terms of CaCO3##\n",
+ "P2=W2*M2;##MgSO4 in terms of CaCO3##\n",
+ "P3=W3*M3;##CaCl2 in terms of CaCO3##\n",
+ "P4=W4*M4;##MgCl2 in terms of CaCO3##\n",
+ "T=P1;\n",
+ "print'%s %.2f %s'%(\"\\nCarbonate hardness is \",T,\" mg/l or ppm\");\n",
+ "P=P2+P3+P4;\n",
+ "print'%s %.2f %s'%(\"\\nNon Carbonate hardness is \",P,\" mg/l or ppm\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "\n",
+ "Carbonate hardness is 34.76 mg/l or ppm\n",
+ "\n",
+ "Non Carbonate hardness is 200.00 mg/l or ppm\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Ex2_18_7-pg no 34"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "##water and its treatment##\n",
+ "##example 2.18.7##\n",
+ "import math\n",
+ "Hardness_ppm=304.##ppm in terms of CaCO3##\n",
+ "Cl=0.07*Hardness_ppm##0.07 Clarke =1 ppm##\n",
+ "Fr=0.1*Hardness_ppm##0.1 French =1 ppm##\n",
+ "mgperlit=Hardness_ppm\n",
+ "print'%s %.2f %s'%(\"Hardness in terms of Clarke \",Cl,\" Cl\");\n",
+ "print'%s %.2f %s'%(\"\\nHardness in terms of French \",Fr,\" Fr\");\n",
+ "print'%s %.2f %s'%(\"\\nHardness in terms of mg/lit \",mgperlit,\" mg/l\");"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Hardness in terms of Clarke 21.28 Cl\n",
+ "\n",
+ "Hardness in terms of French 30.40 Fr\n",
+ "\n",
+ "Hardness in terms of mg/lit 304.00 mg/l\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file |