From 6279fa19ac6e2a4087df2e6fe985430ecc2c2d5d Mon Sep 17 00:00:00 2001 From: kinitrupti Date: Fri, 12 May 2017 18:53:46 +0530 Subject: Removed duplicates --- Modern_Physics_by_K_S_Krane/Chapter3_2.ipynb | 146 +++++++++++++++++++++++++++ 1 file changed, 146 insertions(+) create mode 100755 Modern_Physics_by_K_S_Krane/Chapter3_2.ipynb (limited to 'Modern_Physics_by_K_S_Krane/Chapter3_2.ipynb') diff --git a/Modern_Physics_by_K_S_Krane/Chapter3_2.ipynb b/Modern_Physics_by_K_S_Krane/Chapter3_2.ipynb new file mode 100755 index 00000000..aa39d0f9 --- /dev/null +++ b/Modern_Physics_by_K_S_Krane/Chapter3_2.ipynb @@ -0,0 +1,146 @@ +{ + "metadata": { + "name": "MP-3" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "heading", + "level": 1, + "metadata": {}, + "source": "The particle like properties of electromagnetic radiation" + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": "Example 3.1 Page 69" + }, + { + "cell_type": "code", + "collapsed": false, + "input": "#initiation of variable\nfrom math import sin,pi\nw=0.250; theta=26.3;n=1 # n=1 for hydrogen atom and rest all are given values\n\n#calculation\nd=n*w/(2*sin(theta*pi/180)); # bragg's law\n\n#result\nprint \"Hence the atomic spacing in nm is\",round(d,3);", + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": "Hence the atomic spacing in nm is 0.282\n" + } + ], + "prompt_number": 1 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": "Example 3.2 Page 73" + }, + { + "cell_type": "code", + "collapsed": false, + "input": "#initiation of variable\nfrom math import pi,sin\nI=120.0;r=0.1*10**-9;Eev=2.3 #I-intensity in W/m^2 r in m & E in electron volt\nA=pi*r**2;K=1.6*10**-19; # A=area and K is conversion factor from ev to joules\n\n#calculation\nt= Eev*K/(I*A); #time interval\n\n#result\nprint \"The value of time interval was found out to be in sec is\",round(t,3);\n", + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": "The value of time interval was found out to be in sec is 0.098\n" + } + ], + "prompt_number": 2 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": "Example 3.3 Page 76" + }, + { + "cell_type": "code", + "collapsed": false, + "input": "#initiation of variable\nfrom math import pi,sin\nw=650.0*10**-9;h=6.63*10**-34;c=3*10**8; #given values and constant taken in comfortable units\n\n#calculation\nE=h*c/w; \nE1=E/(1.6*10**-19);\n\n#result\nprint \"The Energy of the electron in J \",E,\"which is equivalent to in eV is \", round(E1,3);\nprint \"The momentum of electron is p=E/c i.e is \", round(E1,3);\n\n#part b\nE2=2.40; #given energy of photon.\n\n#calculation\nw2=h*c*10**9/(E2*1.6*10**9); #converting the energy in to eV and nm \n\n#result\nprint \"The wavelength of the photon in m is\",round(w2*10**28,0)", + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": "The Energy of the electron in J 3.06e-19 which is equivalent to in eV is 1.912\nThe momentum of electron is p=E/c i.e is 1.912\nThe wavelength of the photon in m is 518.0\n" + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": "Example 3.4 Page 78" + }, + { + "cell_type": "code", + "collapsed": false, + "input": "#initiation of variable\nhc=1240.0; phi=4.52 #both the values are in eV\n\n#calcualtion\nw1=hc/phi; \n\n#result\nprint \"The cutoff wavelength of the tungsten metal in nm is \",round(w1,3);\n\n#part b\nw2=198.0; #given value of wavelength \n\n#calculation\nKmax=(hc/w2)-phi;\n\n#result\nprint 'The max value of kinetic energy in eV is',round(Kmax,3);\n\n#part c\nVs=Kmax;\n\n#result\nprint \"The numerical value of the max kinetic energy is same as stopping potential in volts.Hence in V is\",round(Vs,3);", + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": "The cutoff wavelength of the tungsten metal in fnm is 274.336\nThe max value of kinetic energy in eV is 1.743\nThe numerical value of the max kinetic energy is same as stopping potential in volts.Hence in V is 1.743\n" + } + ], + "prompt_number": 5 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": "Example 3.5 Page 80" + }, + { + "cell_type": "code", + "collapsed": false, + "input": "#initiation of variable\nT1=293.0; Kw=2.898*10**-3;\n\n#calculation\nw1=Kw/T1;\n\n#result\nprint \"The wavelength at which emits maximum radiation in um. is\",round(w1*10**6,3);\n\n#part b\nw2=650.0*10**-9; \nT2=Kw/w2;\n\n#result\nprint 'The temperature of the object must be raised to in K. is',round(T2,3);\n\n#part c\nx=(T2/T1)**4; \n\n#result\nprint \"Thus the thermal radiation at higher temperature in times the room (lower) tempertaure. is\",round(x,3);", + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": "The wavelength at which emits maximum radiation in um. is 9.891\nThe temperature of the object must be raised to in K. is 4458.462\nThus the thermal radiation at higher temperature in times the room (lower) tempertaure. is 53612.939\n" + } + ], + "prompt_number": 8 + }, + { + "cell_type": "heading", + "level": 2, + "metadata": {}, + "source": "Example 3.6 Page 82" + }, + { + "cell_type": "code", + "collapsed": false, + "input": "#initiation of variable\n#part a\nfrom math import cos, sin, pi,atan\nw1=0.24;wc=0.00243;theta=60.0; #given values w=wavelength(lambeda)\n\n#calculation\nw2=w1+(wc*(1-cos(theta*pi/180))); \n\n#result\nprint \"The wavelength of x-rays after scattering in nm is\",round(w2,5);\n\n#part b;\nhc=1240;\nE2=hc/w2;E1=hc/w1; \n\n#result\nprint \"The energy of scattered x-rays in eV is\",round(E2,3);\n\n#part c\nK= E1-E2; #The kinetic energy is the difference in the energy before and after the collision;\n\nprint \"The kinetic energy of the x-rays in eV is\",round(K,3);\n\n#part d\nphi2=atan(E2*sin(theta*pi/180)/(E1-E2*cos(theta*pi/180)))\n\n#result\nprint \"The direction of the scattered eletron in degrees is\",round(phi2*180/pi,3);", + "language": "python", + "metadata": {}, + "outputs": [ + { + "output_type": "stream", + "stream": "stdout", + "text": "The wavelength of x-rays after scattering in nm is 0.24121\nThe energy of scattered x-rays in eV is 5140.642\nThe kinetic energy of the x-rays in eV is 26.025\nThe direction of the scattered eletron in degrees is 59.749\n" + } + ], + "prompt_number": 9 + } + ], + "metadata": {} + } + ] +} \ No newline at end of file -- cgit