diff options
author | hardythe1 | 2015-04-07 15:58:05 +0530 |
---|---|---|
committer | hardythe1 | 2015-04-07 15:58:05 +0530 |
commit | 92cca121f959c6616e3da431c1e2d23c4fa5e886 (patch) | |
tree | 205e68d0ce598ac5caca7de839a2934d746cce86 /Modern_Physics/Chapter8.ipynb | |
parent | b14c13fcc6bb6d01c468805d612acb353ec168ac (diff) | |
download | Python-Textbook-Companions-92cca121f959c6616e3da431c1e2d23c4fa5e886.tar.gz Python-Textbook-Companions-92cca121f959c6616e3da431c1e2d23c4fa5e886.tar.bz2 Python-Textbook-Companions-92cca121f959c6616e3da431c1e2d23c4fa5e886.zip |
added books
Diffstat (limited to 'Modern_Physics/Chapter8.ipynb')
-rwxr-xr-x | Modern_Physics/Chapter8.ipynb | 151 |
1 files changed, 52 insertions, 99 deletions
diff --git a/Modern_Physics/Chapter8.ipynb b/Modern_Physics/Chapter8.ipynb index a12d49fc..ccbad1fd 100755 --- a/Modern_Physics/Chapter8.ipynb +++ b/Modern_Physics/Chapter8.ipynb @@ -1,7 +1,6 @@ { "metadata": { - "name": "", - "signature": "sha256:8315bc6aae714998ec5db8a7cf2faf25a033ca960fbcf8e976cdfc44e47b09f3" + "name": "Chapter8" }, "nbformat": 3, "nbformat_minor": 0, @@ -13,7 +12,7 @@ "level": 1, "metadata": {}, "source": [ - "Chapter 8: Quantum Mechanics in Three Dimensions" + "Chapter 8:Many Electron Atoms" ] }, { @@ -21,33 +20,21 @@ "level": 2, "metadata": {}, "source": [ - "Example 8.4, page no. 270" + "Example 8.1 Page 248" ] }, { "cell_type": "code", "collapsed": false, "input": [ + "#initiation of variable\n", + "hc=1240.0*10**-9;Rinfi=1.097*10**7;Z=11; #for sodium atom;and other constants in MeV\n", "\n", + "#calculation\n", + "delE=3*hc*Rinfi*(Z-1)**2/4.0 #change in energy\n", "\n", - "import math\n", - "\n", - "#Variable declaration\n", - "\n", - "R = 1.0 #radius(m)\n", - "T = 1.0 #period of revolution(s)\n", - "m = 1.0 #mass of stone(kg)\n", - "h = 1.055 * 10**-34 #planks constant (kg.m^2/s)\n", - "\n", - "#Calculation\n", - "\n", - "v = 2*math.pi*R/T\n", - "L = m * v * R\n", - "l = L / h\n", - "\n", - "#Results\n", - "\n", - "print \"The orbital quantum number l is\",round(l/10**34,2),\"X 10^34.\"" + "#result\n", + "print\"The energy of the Ka x-ray of the sodium atom in KeV.is\",round(delE/10**3,3);\n" ], "language": "python", "metadata": {}, @@ -56,45 +43,38 @@ "output_type": "stream", "stream": "stdout", "text": [ - "The orbital quantum number l is 5.96 X 10^34.\n" + "The energy of the Ka x-ray of the sodium atom in KeV.is 1.02\n" ] } ], - "prompt_number": 2 + "prompt_number": 1 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ - "Example 8.6, page no. 272" + "Example 8.2 Page 249" ] }, { "cell_type": "code", "collapsed": false, "input": [ + "#initiation of variable\n", + "EKa=21.990;EKb=25.145;EK=25.514 #all the values are in KeV\n", "\n", + "#calcualtion\n", + "ELo=EKb-EKa;\n", "\n", - "import math\n", - "\n", - "#Variable declaration\n", - "\n", - "l = 3 #orbital quantum number\n", + "#result\n", + "print\"The energy of La of X-ray in KeV.is\",round(ELo,3); #Energy of La X-ray\n", "\n", - "#Calculation and results\n", + "#partb\n", + "EL=-EK+EKa;\n", "\n", - "L = math.sqrt(l*(l+1))\n", - "print \"The allowed values of Lz are\"\n", - "for i in range(-l,l+1):\n", - " print i,\"h\"\n", - "print \"The allowed values of theta are\"\n", - "for i in range(-l,l+1):\n", - " theta = round(math.acos(i/L)*180/math.pi,1)\n", - " if theta > 90:\n", - " print theta-180\n", - " else:\n", - " print theta" + "#result\n", + "print\"Hence the binding energy of the L electon in KeV.is\",round(EL,3); # for electron L electron" ], "language": "python", "metadata": {}, @@ -103,55 +83,35 @@ "output_type": "stream", "stream": "stdout", "text": [ - "The allowed values of Lz are\n", - "-3 h\n", - "-2 h\n", - "-1 h\n", - "0 h\n", - "1 h\n", - "2 h\n", - "3 h\n", - "The allowed values of theta are\n", - "-30.0\n", - "-54.7\n", - "-73.2\n", - "90.0\n", - "73.2\n", - "54.7\n", - "30.0\n" + "The enrgy of La of X-ray in KeV.is 3.155\n", + "Hence the binding energy of the L electon in KeV.is -3.524\n" ] } ], - "prompt_number": 5 + "prompt_number": 2 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ - "Example 8.7, page no. 281" + "Example 8.3 Page 250" ] }, { "cell_type": "code", "collapsed": false, "input": [ + "#initiation of variable\n", + "l=1.0; \n", "\n", + "#calculation\n", + "Lmax=l+l;Lmin=l-l;\n", + "s=1.0/2; Smax=s+s;Smin=s-s;\n", "\n", - "#Variable declaration\n", - "\n", - "n = 2\n", - "Z = 1\n", - "\n", - "#Calculation and results\n", - " \n", - "print \"The states of hydrogen atom are\"\n", - "for i in range(n):\n", - " for j in range(-i,i+1):\n", - " print \"n = \",n,\"l = \",i,\"ml = \",j\n", - "\n", - "E2 = -13.6 * Z**2/n**2\n", - "print \"All states have same energy of \",E2,\"eV.\"" + "#result\n", + "print\"Value of L ranges from\",Lmin,\" to\",Lmax,\" i.e\",Lmin,1,Lmax;\n", + "print\"Values of S are maxi,min\",Smax,Smin;\n" ], "language": "python", "metadata": {}, @@ -160,47 +120,37 @@ "output_type": "stream", "stream": "stdout", "text": [ - "The states of hydrogen atom are\n", - "n = 2 l = 0 ml = 0\n", - "n = 2 l = 1 ml = -1\n", - "n = 2 l = 1 ml = 0\n", - "n = 2 l = 1 ml = 1\n", - "All states have same energy of -3.4 eV.\n" + "Value of L ranges from 0.0 to 2.0 i.e 0.0 1 2.0\n", + "Values of S are maxi,min 1.0 0.0\n" ] } ], - "prompt_number": 9 + "prompt_number": 5 }, { "cell_type": "heading", "level": 2, "metadata": {}, "source": [ - "Example 8.8, page no. 284" + "Example 8.4 Page 250" ] }, { "cell_type": "code", "collapsed": false, "input": [ + "#initiation of variable\n", + "l=1.0; \n", "\n", - "import scipy\n", - "from scipy import integrate\n", - "import math\n", - "\n", - "#Variable declaration\n", - "\n", - "z2 = lambda z: z**2 * math.e ** -z\n", - "\n", - "#Calculation\n", - "inf = float('inf')\n", - "integ,err = scipy.integrate.quad(z2,2.0,inf)\n", - "P = integ * 0.5\n", + "#calculation\n", + "Lmax=l+l;Lmin=l-l;\n", + "s=1.0/2; Smax=s+s;Smin=s-s;\n", "\n", "#result\n", - "\n", - "print \"The probability is\",round(P,3)\n", - "\n" + "print\"Considering any two electrons,Value of L2e ranges from\",Lmin,\" to\",Lmax,\" i.e\",Lmin,1,Lmax;\n", + "print\"Adding the angular momentum of the third electron to L2emax gives the maximum whole angular momentum as 2+1=3; and subtracting it from L2e=1 gives 0\"\n", + "print\"Values of S are maxi,min\",Smax,Smin;\n", + "print\"Adding and subtracting the spin of third to S2e=1 and S2e=0 respectively gives the spins 3/2 and 1/2 for the 3 electron system.\";" ], "language": "python", "metadata": {}, @@ -209,11 +159,14 @@ "output_type": "stream", "stream": "stdout", "text": [ - "The probability is 0.677\n" + "Considering any two electrons,Value of L2e ranges from 0.0 to 2.0 i.e 0.0 1 2.0\n", + "Adding the angular momentum of the third electron to L2emax gives the maximum whole angular momentum as 2+1=3; and subtracting it from L2e=1 gives 0\n", + "Values of S are maxi,min 1.0 0.0\n", + "Adding and subtracting the spin of third to S2e=1 and S2e=0 respectively gives the spins 3/2 and 1/2 for the 3 electron system.\n" ] } ], - "prompt_number": 7 + "prompt_number": 6 } ], "metadata": {} |