diff options
Diffstat (limited to 'Modern_physics_for_engineers_by_S.P.Taneja')
27 files changed, 10609 insertions, 0 deletions
diff --git a/Modern_physics_for_engineers_by_S.P.Taneja/AppendixB.ipynb b/Modern_physics_for_engineers_by_S.P.Taneja/AppendixB.ipynb new file mode 100644 index 00000000..59bd7dd5 --- /dev/null +++ b/Modern_physics_for_engineers_by_S.P.Taneja/AppendixB.ipynb @@ -0,0 +1,142 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:1f5ae555ac2a157f0b132375251e1524df6c01d683983f76dbbc48ea3bbe3233"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Appendix B EM waves in conducting Medium"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example B.1 Page no 414"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=5.8*10**7 #s/m\n",
+ "v=1 #MHz\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "u=4*math.pi*10**-7\n",
+ "d=v/math.sqrt((math.pi*10**-6*u*a))\n",
+ "\n",
+ "#Result\n",
+ "print\"Skin depth is\",round(d*10**-3,3),\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Skin depth is 0.066 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example B.2 Page no 414"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=2.56*10**-4\n",
+ "n=10.0**10\n",
+ "er=2.3\n",
+ "e0=8.85*10**-12\n",
+ "c=3*10**8\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "v=a/(2*math.pi*n*er*e0)\n",
+ "V=c*math.sqrt(1/er)\n",
+ "B=(v*2*math.pi*n)/(2*v)\n",
+ "\n",
+ "#Result\n",
+ "print\"Phase velocity is\", round(V*10**-8,2),\"*10**8 m/s\"\n",
+ "print\"Magnitude of attenuation constant is\",round(B*10**-10,2),\"*10**-2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Phase velocity is 1.98 *10**8 m/s\n",
+ "Magnitude of attenuation constant is 3.14 *10**-2\n"
+ ]
+ }
+ ],
+ "prompt_number": 27
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example B.3 Page no 415"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "n=1.6*10**6 #Hz\n",
+ "a=38.3*10**6 #/sm\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "d=1/(math.sqrt(math.pi*n*a*math.pi*4*10**-7))\n",
+ "v=2*math.pi*n*d\n",
+ "\n",
+ "#Result\n",
+ "print\"Skin depth is\", round(d*10**6,1),\"micro m\"\n",
+ "print\"Wave velocity is\",round(v,0),\"m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Skin depth is 64.3 micro m\n",
+ "Wave velocity is 646.0 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 35
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_physics_for_engineers_by_S.P.Taneja/AppendixC.ipynb b/Modern_physics_for_engineers_by_S.P.Taneja/AppendixC.ipynb new file mode 100644 index 00000000..03311fdd --- /dev/null +++ b/Modern_physics_for_engineers_by_S.P.Taneja/AppendixC.ipynb @@ -0,0 +1,247 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:dd508155a47c2bffcd2dfdcfbd55f2abf1514dac72895d0c19bd7f9bfbad737d"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Appendix C Acoustics of Buildings"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example C.1 Page no 427"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "s1=5000\n",
+ "a1=0.05\n",
+ "s2=8000\n",
+ "a2=0.03\n",
+ "s3=500\n",
+ "a3=0.025\n",
+ "s4=600\n",
+ "a4=0.3\n",
+ "s5=500\n",
+ "a5=4.2\n",
+ "v1=50\n",
+ "v2=80\n",
+ "v3=20\n",
+ "\n",
+ "#Calculation\n",
+ "A1=s1*a1\n",
+ "A2=s2*a2\n",
+ "A3=s3*a3\n",
+ "A4=s4*a4\n",
+ "A5=s5*a5\n",
+ "A=A1+A2+A3+A4+A5\n",
+ "V=v1*v2*v3\n",
+ "T=(0.16*V)/A\n",
+ "\n",
+ "#Result\n",
+ "print\"(i) Reverbrating time with absorption coefficient 0.05 is\",A1,\"sq m\"\n",
+ "print\"(ii) Reverbrating time with absorption coefficient 0.03 is\",A2,\"sq m\"\n",
+ "print\"(iii) Reverbrating time with absorption coefficient 0.025 is\",A3,\"sq m\"\n",
+ "print\"(iv) Reverbrating time with absorption coefficient 0.3 is\",A4,\"sq m\"\n",
+ "print\"(v) Reverbrating time is\",round(T,1),\"Second\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(i) Reverbrating time with absorption coefficient 0.05 is 250.0 sq m\n",
+ "(ii) Reverbrating time with absorption coefficient 0.03 is 240.0 sq m\n",
+ "(iii) Reverbrating time with absorption coefficient 0.025 is 12.5 sq m\n",
+ "(iv) Reverbrating time with absorption coefficient 0.3 is 180.0 sq m\n",
+ "(v) Reverbrating time is 4.6 Second\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example C.2 Page no 428"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "S1=220 #m**2\n",
+ "S2=120 \n",
+ "S3=120\n",
+ "T=460.0\n",
+ "a1=0.03\n",
+ "a2=0.06\n",
+ "a3=0.80\n",
+ "V=600 #m**3\n",
+ "\n",
+ "#Calculation\n",
+ "A=S1*a1+S2*a2+S3*a3\n",
+ "Av=A/T\n",
+ "T1=0.16*V/A\n",
+ "\n",
+ "#Result\n",
+ "print\"Average absorption coefficient is\",round(Av,3)\n",
+ "print\"Reverbration time is\",round(T1,2),\"Sec\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Average absorption coefficient is 0.239\n",
+ "Reverbration time is 0.87 Sec\n"
+ ]
+ }
+ ],
+ "prompt_number": 28
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example C.3 Page no 429"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "V=7000 #m**3\n",
+ "T=1.4 #sec\n",
+ "\n",
+ "#Calculation\n",
+ "A=0.16*V/T\n",
+ "\n",
+ "#Result\n",
+ "print\"Total absorption is\",A,\"O.W.U\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Total absorption is 800.0 O.W.U\n"
+ ]
+ }
+ ],
+ "prompt_number": 30
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example C.4 Page no 429"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a1=6 #m\n",
+ "a2=4\n",
+ "a3=3\n",
+ "a=0.25\n",
+ "\n",
+ "#Calculation\n",
+ "V=a1*a2*a3\n",
+ "S=((a1*a2)+(a2*a3)+(a3*a1))*a\n",
+ "T=0.16*V/S\n",
+ "\n",
+ "#Result\n",
+ "print\"Time of reverbration is\",round(T,2),\"Sec\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Time of reverbration is 0.85 Sec\n"
+ ]
+ }
+ ],
+ "prompt_number": 37
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example C.5 Page no 430"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a1=0.03\n",
+ "s1=220\n",
+ "a2=0.80\n",
+ "s2=120\n",
+ "a3=0.06\n",
+ "s3=120\n",
+ "V=1200\n",
+ "\n",
+ "#Calculation\n",
+ "a=(a1*s1+a2*s2+a3*s3)/(s1+s2+s3)\n",
+ "a1=a*(s1+s2+s3)\n",
+ "T=0.16*V/a1\n",
+ "\n",
+ "#Result\n",
+ "print\"Average sound absorption coefficient is\", round(a,4)\n",
+ "print\"Reverberation time is\",round(T,2),\"Second\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Average sound absorption coefficient is 0.2387\n",
+ "Reverberation time is 1.75 Second\n"
+ ]
+ }
+ ],
+ "prompt_number": 47
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_physics_for_engineers_by_S.P.Taneja/AppendixE.ipynb b/Modern_physics_for_engineers_by_S.P.Taneja/AppendixE.ipynb new file mode 100644 index 00000000..e9eeb39d --- /dev/null +++ b/Modern_physics_for_engineers_by_S.P.Taneja/AppendixE.ipynb @@ -0,0 +1,298 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:71a2a43bff110d18f4f5b8bfe00dd3899b9e51db23c52fd655d330ac3ea92bc5"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Appendix E Thermal Radiation"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E.1 Page no 446"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "K=380 #W/m/K\n",
+ "A=7.85*10**-5 #m**2\n",
+ "x=0.19\n",
+ "a1=100\n",
+ "a2=30\n",
+ "t=600 #sec\n",
+ "\n",
+ "#Calculation\n",
+ "Q=(K*A*(a1-a2)*t)/x\n",
+ "\n",
+ "#Result\n",
+ "print\"Amount of heat is\",round(Q*10**-3,1),\"*10**3 J\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Amount of heat is 6.6 *10**3 J\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E.2 Page no 446"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "K=0.1674 #j/a/m/degree C\n",
+ "A=3600 #cm**2\n",
+ "x=0.04\n",
+ "L=336.0*10**3 #J/Kg\n",
+ "a1=27\n",
+ "a2=0\n",
+ "\n",
+ "#Calculation\n",
+ "A1=6*A\n",
+ "Q=K*A1*(a1-a2)/x\n",
+ "m=Q/L\n",
+ "\n",
+ "#Result\n",
+ "print\"Rate of flow of heat is\",round(Q*10**-4,2),\"J\"\n",
+ "print\"Mass of ice melted per second is\",round(m*10**-1,3),\"*10**-3 Kg/sec\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Rate of flow of heat is 244.07 J\n",
+ "Mass of ice melted per second is 0.726 *10**-3 Kg/sec\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E.3 Page no 447"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "K=0.26 #cal/s/cm/degree C\n",
+ "r=1\n",
+ "x=200 #cm\n",
+ "a1=250 #degree\n",
+ "Q=0.5\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "A=math.pi*r**2\n",
+ "a2=a1-(Q*x/(K*A))\n",
+ "\n",
+ "#Result\n",
+ "print\"Temperature of other end is\", round(a2,1),\"Degree C\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Temperature of other end is 127.6 Degree C\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E.4 Page no 447"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "K=1 #W/m/K\n",
+ "A=0.5 #m**2\n",
+ "t=3600 #sec\n",
+ "x=6*10**-3 #m\n",
+ "a1=24 #degree\n",
+ "a2=2\n",
+ "\n",
+ "#Calculation\n",
+ "Q=K*A*t*(a1-a2)/x\n",
+ "\n",
+ "#Result\n",
+ "print\"Heat is\",Q*10**-5,\"*10**5 J\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Heat is 66.0 *10**5 J\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E.5 Page no 448"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "T=2100 #K\n",
+ "er=0.5\n",
+ "a=5.67*10**-8 #W/m**2/K**4\n",
+ "\n",
+ "#Calculation\n",
+ "E=er*a*T**4\n",
+ "\n",
+ "#Result\n",
+ "print\"Power radiated per unit area is\",round(E*10**-5,1),\"*10**5 W/m**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power radiated per unit area is 5.5 *10**5 W/m**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 27
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E.6 Page no 448"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "E=315 #W/m**2\n",
+ "T=273.0 #K\n",
+ "t=60 #sec\n",
+ "r=10*10**-2\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "a=E/T**4\n",
+ "T1=1000+T\n",
+ "E=a*4*math.pi*r**2*T1**4*t\n",
+ "\n",
+ "#Result\n",
+ "print\"Heat radiated is\",round(E*10**-5,2),\"*10**5 J\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Heat radiated is 11.23 *10**5 J\n"
+ ]
+ }
+ ],
+ "prompt_number": 33
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example E.7 Page no 448"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "r=6*10**-2\n",
+ "T1=1200+273 #K\n",
+ "T2=500+273\n",
+ "a=5.7*10**-8\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "E=a*4*math.pi*r**2*(T1**4-T2**4)\n",
+ "\n",
+ "#Result\n",
+ "print\"Rate of loss of heat is\",round(E*10**-3,1),\"*10**3 W\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Rate of loss of heat is 11.2 *10**3 W\n"
+ ]
+ }
+ ],
+ "prompt_number": 40
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_physics_for_engineers_by_S.P.Taneja/Chapter18.ipynb b/Modern_physics_for_engineers_by_S.P.Taneja/Chapter18.ipynb new file mode 100644 index 00000000..dc485aac --- /dev/null +++ b/Modern_physics_for_engineers_by_S.P.Taneja/Chapter18.ipynb @@ -0,0 +1,419 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:96f5d1279be2252c9ff04c355e85834215067f6eb464abda89728ac05eeaeb23"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 18 Uncertainty Principle and Quantum Statistics"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.1 Page no 122"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "h=1.05*10**-34\n",
+ "x=10.0**-8\n",
+ "m=9.1*10**-31\n",
+ "\n",
+ "#Calculation\n",
+ "p=h/x\n",
+ "v=h/m\n",
+ "\n",
+ "#Result\n",
+ "print\"Minimum uncertainty in its velocity is\",round(v*10**4,2),\"*10**4 m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Minimum uncertainty in its velocity is 1.15 *10**4 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.2 Page no 122"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "E=200\n",
+ "m=9*10**-31\n",
+ "e=1.602*10**-19\n",
+ "h=6.626*10**-34\n",
+ "r=10**-6\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "p=math.sqrt(2*m*E*e)\n",
+ "p1=h/(2*r)\n",
+ "a=p1/p\n",
+ "\n",
+ "#Result\n",
+ "print\"Uncertainty introduced in the angle of emergence is\", round(a*10**5,2),\"*10**-6 radians\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Uncertainty introduced in the angle of emergence is 4.36 *10**-6 radians\n"
+ ]
+ }
+ ],
+ "prompt_number": 21
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.3 Page no 123"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "h=1.05*10**-34 #j-s\n",
+ "v=3*10**7 #m/s\n",
+ "m0=9*10**-31 #Kg\n",
+ "c=3*10**8\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "x=(h/(m0*v))*(math.sqrt(1-(v/c)*2))\n",
+ "\n",
+ "#Result\n",
+ "print\"Smallest possible uncertainty is\", round(x*10**10,3),\"A\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Smallest possible uncertainty is 0.039 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 27
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.4 Page no 123"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "h=1.05*10**-34\n",
+ "x=0.0001\n",
+ "m=9*10**-31\n",
+ "X=5*10**-10\n",
+ "m1=1.67*10**-27\n",
+ "\n",
+ "#Calculation\n",
+ "p=h/x\n",
+ "v=p*10**-9/(m*X)\n",
+ "M=4*m1\n",
+ "V=p/(M*X)\n",
+ "\n",
+ "#Result\n",
+ "print\"Uncertainty in the velocity of electron is\", round(v,2),\"*10**3 m/s\"\n",
+ "print\"Uncertainty in the velocity of alpha particle is\",round(V*10**-4,1),\"m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Uncertainty in the velocity of electron is 2.33 *10**3 m/s\n",
+ "Uncertainty in the velocity of alpha particle is 31.4 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 48
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.5 Page no 124"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "E=200 #eV\n",
+ "A=1.6*10**-19 #J\n",
+ "S=9*10**-31\n",
+ "q=2\n",
+ "x=1.05*10**-34 #J.s\n",
+ "y=2*10**-6 #m\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "P=math.sqrt(q*S*E*A)\n",
+ "P1=x/y\n",
+ "P2=P1/P\n",
+ "\n",
+ "#Result\n",
+ "print\"The uncertainty introduced in the angle of emergence is\",round(P2*10**6,2),\"10**-6 radians\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The uncertainty introduced in the angle of emergence is 6.92 10**-6 radians\n"
+ ]
+ }
+ ],
+ "prompt_number": 56
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.6 Page no 124"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=1.05*10**4 #ms**-1\n",
+ "b=0.01 \n",
+ "h=1.05*10**-34 #Js\n",
+ "m=9*10**-31\n",
+ "s=100\n",
+ "\n",
+ "#Calculation\n",
+ "v=h*s/(m*b*h)\n",
+ "\n",
+ "#Result\n",
+ "print\"The uncertainty in the position of the electron is\",round(v*10**-34,1),\"10**-4 m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The uncertainty in the position of the electron is 1.1 10**-4 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 65
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.7 Page no 124"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "q=50 #g\n",
+ "w=300 #ms**-1\n",
+ "i=0.01\n",
+ "d=1000.0\n",
+ "e=100.0\n",
+ "h=6.62*10**-34\n",
+ "\n",
+ "#Calculation\n",
+ "b=(w*(q/d)*(i/e))\n",
+ "b1=h/(2*math.pi*b)\n",
+ "\n",
+ "#Result\n",
+ "print\"The accuracy is\",round(b1*10**32,0),\"10**-32 m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The accuracy is 7.0 10**-32 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 78
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.8 Page no 124"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "y=10**12\n",
+ "h=6.62*10**-34\n",
+ "a=2\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "E=h/(a*math.pi*y)\n",
+ "E1=E/h\n",
+ "\n",
+ "#Result\n",
+ "print\"The probable uncertainty in energy is\",round(E*10**46,3),\"10**-22 J\"\n",
+ "print\"The frequency of a gamma-ray is\",round(E1*10**13,2),\"10**11 Hz\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The probable uncertainty in energy is 1.054 10**-22 J\n",
+ "The frequency of a gamma-ray is 1.59 10**11 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 89
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.9 Page no 125"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "h=6.63*10**-34 #J.sec\n",
+ "a=10**-8\n",
+ "b=2\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "E=h/(b*math.pi*a)\n",
+ "v=E/h\n",
+ "\n",
+ "#Result\n",
+ "print\"The uncertainty in the energy is\",round(E*10**26,3),\"10**-26 J\"\n",
+ "print\"The uncertainty in the frwquency of light is\",round(v*10**-7,2),\"10**7 Hz\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The uncertainty in the energy is 1.055 10**-26 J\n",
+ "The uncertainty in the frwquency of light is 1.59 10**7 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 99
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 18.10 Page no 125"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=10**-8 #sec\n",
+ "h=1.05*10**-34\n",
+ "l=1.6*10**-19\n",
+ "\n",
+ "#Calculation\n",
+ "g=h/a\n",
+ "E=g/l\n",
+ "\n",
+ "#Result\n",
+ "print\"The limit of accuracy is\",round(E*10**8,2)*10**-8,\"eV\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The limit of accuracy is 6.56e-08 eV\n"
+ ]
+ }
+ ],
+ "prompt_number": 113
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_physics_for_engineers_by_S.P.Taneja/chapter1.ipynb b/Modern_physics_for_engineers_by_S.P.Taneja/chapter1.ipynb new file mode 100644 index 00000000..5be89250 --- /dev/null +++ b/Modern_physics_for_engineers_by_S.P.Taneja/chapter1.ipynb @@ -0,0 +1,1592 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:ee5d81beae8ca18c4c460d21085e375c6aabc7924316241bd3369b021ef9ba7b"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 1 Interference of light"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.1 Page no 35"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "I1=9\n",
+ "I2=4.0\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "I=I1/I2\n",
+ "i=math.sqrt(I)\n",
+ "Imax=((i+1)/(i-1))**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Ratio of maximum intensity of the fringe system is\",Imax,\":1\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Ratio of maximum intensity of the fringe system is 25.0 :1\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.2 Page no 36"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=4\n",
+ "b=2\n",
+ "\n",
+ "#Calculation\n",
+ "amax=a+b\n",
+ "amin=a-b\n",
+ "I=amax**2/amin**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Ratio of maximum to minimum intensity is\", I"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Ratio of maximum to minimum intensity is 9\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.3 Page no 36"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "I=0.6\n",
+ "a=0.4\n",
+ "I2=0.4\n",
+ "a1=1.6\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "A=(I-a1-a)/(2.0*math.sqrt(a1*a))\n",
+ "A1=math.acos(A)*180.0/3.14\n",
+ "\n",
+ "#Result\n",
+ "print\"Minimum phase difference is\", round(A1,0),\"Degree\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Minimum phase difference is 151.0 Degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.4 Page no 36"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "d=0.5*10**-3 #m\n",
+ "lembda=5890*10**-10 #m\n",
+ "D=0.5 #m\n",
+ "\n",
+ "#Calculation\n",
+ "B=D*lembda/d\n",
+ "\n",
+ "#Result\n",
+ "print\"Width of fringes is\", B*10**3,\"10**-3 m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Width of fringes is 0.589 10**-3 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 28
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.5 Page no 36"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "lembda=5100*10**-10 #m\n",
+ "D=2\n",
+ "x=0.02\n",
+ "n=10.0\n",
+ "\n",
+ "#Calculation\n",
+ "B=x/n\n",
+ "d=D*lembda/B\n",
+ "\n",
+ "#Result\n",
+ "print\"Double slit seperation is\", d*10**5,\"*10**-5 m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Double slit seperation is 51.0 *10**-5 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 34
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.6 Page no 36"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "B=0.31*10**-3 #m\n",
+ "d=1.9*10**-3\n",
+ "D=1\n",
+ "\n",
+ "#Calculation\n",
+ "lembda=B*d/D\n",
+ "\n",
+ "#Result\n",
+ "print\"Wavelength of light is\",lembda*10**10,\"A\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Wavelength of light is 5890.0 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 38
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.7 Page no 37"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "n=10\n",
+ "D=0.04 #m\n",
+ "lembda=5890*10**-10\n",
+ "d=2*10**-3 #m\n",
+ "\n",
+ "#Calculation\n",
+ "x10=n*D*lembda/d\n",
+ "\n",
+ "#Result\n",
+ "print\"Position of tenth bright fringe is\",x10*10**4,\"*10**-4 m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Position of tenth bright fringe is 1.178 *10**-4 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 41
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.8 Page no 37"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "L=5890*10**-10 #m\n",
+ "a=0.05\n",
+ "b=0.75\n",
+ "B=9.424*10**-4\n",
+ "\n",
+ "#Calculation\n",
+ "D=a+b\n",
+ "B1=L*D/B\n",
+ "\n",
+ "#Result\n",
+ "print\"Distance is\", B1*10**4,\"*10**-4 m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Distance is 5.0 *10**-4 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 46
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.9 Page no 37"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=0.10\n",
+ "b=1\n",
+ "l=5900*10**-10\n",
+ "A=22\n",
+ "u=1.5\n",
+ "\n",
+ "#Calculation\n",
+ "D=a+b\n",
+ "B=L*D*180*7/(2*a*(u-1)*A)\n",
+ "\n",
+ "#Result\n",
+ "print\"Fringe width is\", round(B*10**5,0),\"*10**-5 m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Frige width is 37.0 *10**-5 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 51
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.10 Page no 37"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "u=1.45\n",
+ "l=5890*10**-10 #m\n",
+ "\n",
+ "#Calculation\n",
+ "t=5*l/(u-1)\n",
+ "\n",
+ "#Result\n",
+ "print\"Thickness is\", round(t*10**6,3)*10**-6,\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Thickness is 6.544e-06 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 57
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.11 Page no 38"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=0.25 #m\n",
+ "b=1.75\n",
+ "L=5*10**-7\n",
+ "u=1.50\n",
+ "B=0.2*10**-3\n",
+ "\n",
+ "#Calculation\n",
+ "D=a+b\n",
+ "d=L*D/B\n",
+ "A=(L*D)/(B*2*a*(u-1))\n",
+ "\n",
+ "#Result\n",
+ "print\"Angle at the vertex is\", A,\"Radian\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Angle at the vertex is 0.02 Radian\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.12 Page no 38"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "B=0.0135 #cm\n",
+ "a=50\n",
+ "b=50.0\n",
+ "u=1.5\n",
+ "A=179 #Degree\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "D=a+b\n",
+ "L=(2*a*(u-1)*B*math.pi)/(D*360)\n",
+ "\n",
+ "#Result\n",
+ "print\"Wavelength of light is\", round(L*10**8,0),\"A\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Wavelength of light is 5890.0 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.13 Page no 38"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "d1=0.75\n",
+ "d=1\n",
+ "b=0.087\n",
+ "\n",
+ "#Calculation\n",
+ "B=d/d1\n",
+ "B1=B*b\n",
+ "\n",
+ "#Result\n",
+ "print\"Fringe width is\", B1,\"mm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Fringe width is 0.116 mm\n"
+ ]
+ }
+ ],
+ "prompt_number": 29
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.14 Page no 39"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "u=1.50\n",
+ "a=0.10 #m\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "d=(2*(u-1)*a*math.pi)/90.0\n",
+ "\n",
+ "#Result\n",
+ "print\"Separation between coherent sources is\",round(d*10**2,2),\"*10**-2 m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Separation between coherent sources is 0.35 *10**-2 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 37
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.15 Page no 39"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "t=6.3*10**-6 #m\n",
+ "L=5460*10**-10\n",
+ "n=6\n",
+ "\n",
+ "#Calculattion\n",
+ "u=((n*L)/t)+1\n",
+ "\n",
+ "#Result\n",
+ "print\"Refractive index is\",u"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Refractive index is 1.52\n"
+ ]
+ }
+ ],
+ "prompt_number": 38
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.16 Page no 39"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "t=3.4*10**-6 #m\n",
+ "L=5893*10**-10\n",
+ "\n",
+ "#Calculation\n",
+ "u=1+((4*L)/t)\n",
+ "\n",
+ "#Result\n",
+ "print\"Refractive index is\",round(u,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Refractive index is 1.69\n"
+ ]
+ }
+ ],
+ "prompt_number": 40
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.17 Page no 39"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "L=6000*10**-10\n",
+ "t=3.6*10**-5\n",
+ "n=30\n",
+ "\n",
+ "#Calculation\n",
+ "u=1+((n*L)/t)\n",
+ "\n",
+ "#Result\n",
+ "print\"Refractive index of the sheet is\",u"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Refractive index of the sheet is 1.5\n"
+ ]
+ }
+ ],
+ "prompt_number": 41
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.18 Page no 40"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "n=2\n",
+ "D=1.2\n",
+ "d=3*10**-5\n",
+ "x2=45*10**-3\n",
+ "\n",
+ "#Calculation\n",
+ "L=x2*d/(D*n)\n",
+ "\n",
+ "#Result\n",
+ "print\"lembda is\",L*10**10,\"A\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "lembda is 5625.0 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 44
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Eaxmple 1.19 Page no 40"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "L1=6.1*10**-5\n",
+ "L2=6.0*10**-5\n",
+ "u=4/3.0\n",
+ "I=4/5.0\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "t=L1*L2/((L1-L2)*2*math.sqrt(u**2-I**2))\n",
+ "\n",
+ "#Result\n",
+ "print\"Thickness is\",round(t,4),\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Thickness is 0.0017 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 47
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.20 Page no 41"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "u=1.5\n",
+ "L=5890*10**-10\n",
+ "n=1\n",
+ "r=60 #degree\n",
+ "a=0.5\n",
+ "\n",
+ "#Calculation\n",
+ "t=n*L/(2*u*a)\n",
+ "\n",
+ "#Result\n",
+ "print\"Smallest thickness of the plate is\", round(t*10**10,0),\"*10**-10 m\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Smallest thickness of the plate is 3927.0 *10**-10 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 52
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.21 Page no 41"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "L=5890*10**-10\n",
+ "n=8\n",
+ "a=1/2.0\n",
+ "b=1.5\n",
+ "\n",
+ "#Calculation\n",
+ "r=math.sqrt(1-(a/b)**2)\n",
+ "t=n*L/(2*b*r)\n",
+ "\n",
+ "#Result\n",
+ "print\"Film thickness is\", round(t*10**6,3)*10**-6,\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Film thickness is 1.666e-06 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 59
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.22 Page no 41"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "L=5*10**-7 #m\n",
+ "t=1.5*10**-6\n",
+ "u=4/3.0\n",
+ "A=0.7604\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "r=(math.sin(60*3.14/180.0))/u\n",
+ "n=2*u*t*A/L\n",
+ "\n",
+ "print\"Order of dark band is\", round(n,0)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Order of dark band is 6.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 73
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.23 Page no 42"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "x=0.15\n",
+ "L=6000*10**-10\n",
+ "A=0.05*10**-3\n",
+ "\n",
+ "#Calculation\n",
+ "B=L*x/(2*A)\n",
+ "\n",
+ "#Result\n",
+ "print\"Fringe width is\",B*10**4,\"*10**-4 m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Fringe width is 9.0 *10**-4 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 76
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.24 Page no 42"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "B=0.5*10**-2\n",
+ "u=1.40\n",
+ "a=10\n",
+ "b=22\n",
+ "\n",
+ "#Calculation\n",
+ "L=2*a*b*u*B/(60*60*180*7)\n",
+ "\n",
+ "#Result\n",
+ "print\"Wavelength of light is\", round(L*10**10,0),\"*10**-10 m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Wavelength of light is 6790.0 *10**-10 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 83
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.25 Page no 43"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "x=10**-2\n",
+ "m=10\n",
+ "L=6000*10**-10\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "A=m*L/(2*x)\n",
+ "A1=A*180*60*60/(math.pi)\n",
+ "\n",
+ "#Result\n",
+ "print\"Angle of wedge is\", round(A1,1),\"Seconds\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Angle of wedge is 61.9 Seconds\n"
+ ]
+ }
+ ],
+ "prompt_number": 88
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.26 Page no 43"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "u=1.4\n",
+ "t=0.001\n",
+ "L1=4000.0*10**-8\n",
+ "L2=5000.0*10**-8\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "r=math.sqrt(1-1/(2*u**2))\n",
+ "n1=2*u*t*r/L1\n",
+ "n2=2*u*t*r/L2\n",
+ "n=n1-n2\n",
+ "\n",
+ "#Result\n",
+ "print\"Number of dark bands is\", round(n,0)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Number of dark bands is 12.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 96
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.27 Page no 44"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "L=5890*10**-10\n",
+ "d=10**-2\n",
+ "u=1\n",
+ "n=3\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "R=d**2*math.cos(30*3.14/180.0)\n",
+ "R1=R/(4*n*L)\n",
+ "\n",
+ "#Result\n",
+ "print\"Radius of the lens is\", round(R1,2),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Radius of the lens is 12.25 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 102
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.28 Page no 44"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "n=8\n",
+ "dn=0.72*10**-2\n",
+ "R=3\n",
+ "u=1\n",
+ "\n",
+ "#Calculation\n",
+ "L=dn**2/((2*n-1)*2*R)\n",
+ "\n",
+ "#Result\n",
+ "print\"Wavelength of light is\", L*10**10,\"*10**-10 m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Wavelength of light is 5760.0 *10**-10 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 107
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.29 Page no 44"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "n=5\n",
+ "L=5400*10**-8\n",
+ "R1=100.0\n",
+ "R2=100.0\n",
+ "n1=15\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "r=math.sqrt((n*L)/(1/R1+1/R2))\n",
+ "r1=math.sqrt((n1*L)/(1/R1+1/R2))\n",
+ "R=r1-r\n",
+ "\n",
+ "#Result\n",
+ "print\"Distance between 5th and 15th dark ring is\", round(R,4),\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Distance between 5th and 15th dark ring is 0.0851 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 119
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.30 Page no 45"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "d=0.25 #cm\n",
+ "dair=0.30\n",
+ "\n",
+ "#Calculation\n",
+ "u=(dair/d)**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Refractive index is\",u"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Refractive index is 1.44\n"
+ ]
+ }
+ ],
+ "prompt_number": 121
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.31 Page no 45"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "R1=3.0 #m\n",
+ "R2=4.0\n",
+ "n=13\n",
+ "L=6*10**-7\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "r=math.sqrt((2*n-1)*L/((1/R1-1/R2)*2.0))\n",
+ "D=2*r\n",
+ "\n",
+ "#Result\n",
+ "print\" Diameter of the 13th bright ring is\",round(D,3),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ " Diameter of the 13th bright ring is 0.019 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 129
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.32 Page no 45"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "u=1\n",
+ "d1=0.25\n",
+ "d2=0.30\n",
+ "c=3*10**8\n",
+ "\n",
+ "#Calculation\n",
+ "V=((d1/d2)**2)*c\n",
+ "\n",
+ "#Result\n",
+ "print\"Velocity of light is\",round(V*10**-8,2),\"*10**8 m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Velocity of light is 2.08 *10**8 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 135
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.33 Page no 46"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "n=5\n",
+ "a=25\n",
+ "m=20\n",
+ "R=100\n",
+ "dn=0.3\n",
+ "d=0.8\n",
+ "\n",
+ "#Calculation\n",
+ "L=(d**2-dn**2)/(4*R*m)\n",
+ "\n",
+ "#Result\n",
+ "print\"Wavelength is\", L*10**8,\"*10**-8 cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Wavelength is 6875.0 *10**-8 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 140
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.34 Page no 46"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "n=4\n",
+ "a=12\n",
+ "m=8.0\n",
+ "d12=0.700\n",
+ "dn=0.400\n",
+ "n1=20\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "R=(d12**2-dn**2)/m\n",
+ "d20=math.sqrt(n1*R)\n",
+ "\n",
+ "#Result\n",
+ "print\"Diameter of 20th dark ring is\", round(d20,3),\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Diameter of 20th dark ring is 0.908 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 145
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.35 Page no 46"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "n=3\n",
+ "a=23\n",
+ "m=20\n",
+ "R=50\n",
+ "d=0.501\n",
+ "dn=0.181\n",
+ "\n",
+ "#Calculation\n",
+ "L=(d**2-dn**2)/(4*m*R)\n",
+ "\n",
+ "#Result\n",
+ "print\"Wavelength is\", L*10**8,\"*10**-8 cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Wavelength is 5456.0 *10**-8 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 149
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.36 Page no 47"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "d=0.295*10**-3\n",
+ "n=100.0\n",
+ "\n",
+ "#Calculation\n",
+ "L=(2*d)/n\n",
+ "\n",
+ "#Result\n",
+ "print\"Wavelength of light is\", L*10**9,\"*10**-9 m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Wavelength of light is 5900.0 *10**-9 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 154
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.37 Page no 47"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "L=5000.0*10**-10\n",
+ "d=0.1*10**-3\n",
+ "\n",
+ "#Calculation\n",
+ "n=2*d/L\n",
+ "\n",
+ "#Result\n",
+ "print\"Number of fringes is\",n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Number of fringes is 400.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 155
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.38 Page no 47"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "L=5890*10**-10\n",
+ "d=0.289*10**-3\n",
+ "\n",
+ "#Calculation\n",
+ "L1=L**2/(2*d)\n",
+ "\n",
+ "#Result\n",
+ "print\"Difference in wavelength is\", round(L1*10**10,0)*10**-10,\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Difference in wavelength is 6e-10 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 161
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.39 Page no 47"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "u=1.50\n",
+ "L=5890*10**-10\n",
+ "m=10\n",
+ "\n",
+ "#Calculation\n",
+ "t=m*L/(2*(u-1))\n",
+ "\n",
+ "#Result\n",
+ "print\"Thickness of the film is\",t*10**8,\"*10**-8 m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Thickness of the film is 589.0 *10**-8 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 166
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.40 Page no 48"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "n=150\n",
+ "L=4000*10**-10\n",
+ "l=0.20\n",
+ "\n",
+ "#Calculation\n",
+ "u=1+(n*L/(2*l))\n",
+ "\n",
+ "#Result\n",
+ "print\"Refractive index is\",u"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Refractive index is 1.00015\n"
+ ]
+ }
+ ],
+ "prompt_number": 167
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.41 Page no 48"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "u=1.45\n",
+ "n=6.5\n",
+ "L=5890*10**-10\n",
+ "\n",
+ "#Calculation\n",
+ "t=n*L/(2*(u-1))\n",
+ "\n",
+ "#Result\n",
+ "print\"Thickness is\", round(t*10**6,3),\"*10**-6 m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Thickness is 4.254 *10**-6 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 172
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 1.42 Page no 48"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "L1=5896*10**-8\n",
+ "L2=5890*10**-8\n",
+ "\n",
+ "#Calculation\n",
+ "d=L1*L2/(2*(L1-L2))\n",
+ "\n",
+ "#Result\n",
+ "print\"Distance is\",round(d,5),\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Distance is 0.02894 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 176
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_physics_for_engineers_by_S.P.Taneja/chapter10.ipynb b/Modern_physics_for_engineers_by_S.P.Taneja/chapter10.ipynb new file mode 100644 index 00000000..f837d51b --- /dev/null +++ b/Modern_physics_for_engineers_by_S.P.Taneja/chapter10.ipynb @@ -0,0 +1,143 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:60e1b4f69268bf5ef981c421da464c3f2155bd9dcb0f2936b64236297523b2ca"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 10 Nuclear Fission and Fusion"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 10.1 Page no 351"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "c=3*10**8 #m/s\n",
+ "m=3.6*10**-3 #Kg\n",
+ "a=36000\n",
+ "\n",
+ "#Calculation\n",
+ "E=m*c**2\n",
+ "E1=E/(a*10**3)\n",
+ "\n",
+ "#Result\n",
+ "print\"Energy is\", E1*10**-6,\"*10**7 Kilo watt-hrs\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Energy is 9.0 *10**7 Kilo watt-hrs\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 10.2 Page no 352"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "mn=1.6747*10**-27\n",
+ "mp=1.6725*10**-27\n",
+ "me=9*10**-31\n",
+ "c=3*10**8\n",
+ "e=1.6*10**-19\n",
+ "\n",
+ "#Calculation\n",
+ "m=mn-(mp+me)\n",
+ "E=(m*c**2)/e\n",
+ "\n",
+ "#Result\n",
+ "print\"Energy produced is\", round(E*10**-6,2),\"Mev\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Energy produced is 0.73 Mev\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 10.3 Page no 352"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "P=3.2*10**7 #Watts\n",
+ "e=1.6*10**-13\n",
+ "E1=200.0\n",
+ "a=1000\n",
+ "N=6.0*10**23\n",
+ "A=235\n",
+ "\n",
+ "#Calculation\n",
+ "E=P/e\n",
+ "n=E/E1\n",
+ "n1=n*a*3600\n",
+ "m=n1*A/N\n",
+ "\n",
+ "#Result\n",
+ "print\"Number of fission occuring in the reactor/sec is\", n\n",
+ "print\"Mass of U235 used in 1000 hrs is\",m*10**-3,\"Kg\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Number of fission occuring in the reactor/sec is 1e+18\n",
+ "Mass of U235 used in 1000 hrs is 1.41 Kg\n"
+ ]
+ }
+ ],
+ "prompt_number": 28
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_physics_for_engineers_by_S.P.Taneja/chapter11.ipynb b/Modern_physics_for_engineers_by_S.P.Taneja/chapter11.ipynb new file mode 100644 index 00000000..518ccde5 --- /dev/null +++ b/Modern_physics_for_engineers_by_S.P.Taneja/chapter11.ipynb @@ -0,0 +1,134 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:5eaf89b152ca748a2683d4aae6e84226b27a321383e75d742208d36f80cde7b1"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 11 Interaction and detection of nuclear radiations"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11.1 Page no 378"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "u=15.64\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "a=math.log(0.5)**2/u\n",
+ "\n",
+ "#Result\n",
+ "print\"Linear absorption thickness is\", round(a,3),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Linear absorption thickness is 0.031 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 43
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11.2 Page no 378"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "V0=1.5*10**5 #volts\n",
+ "r=0.01 #cm\n",
+ "b=1 #cm\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "E=V0/(math.log(10)*(math.log(b/r)))\n",
+ "\n",
+ "#Result\n",
+ "print\"Electric field is\", round(E*10**-4,2),\"*10**4 V/cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Electric field is 1.41 *10**4 V/cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 11.3 Page no 378"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "l=15.7 #eV\n",
+ "l1=7.8*10**-6 #m\n",
+ "b=0.05/2.0 #m\n",
+ "a=0.00006 #m\n",
+ "q=2.3026\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "V=((l*a*q)/l1)*math.log10(b/a)\n",
+ "\n",
+ "#Result\n",
+ "print\"The voltage that must be applied to just produce an avalanche is\",round(V,0),\"volts\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The voltage that must be applied to just produce an avalanche is 729.0 volts\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_physics_for_engineers_by_S.P.Taneja/chapter12.ipynb b/Modern_physics_for_engineers_by_S.P.Taneja/chapter12.ipynb new file mode 100644 index 00000000..eba189f1 --- /dev/null +++ b/Modern_physics_for_engineers_by_S.P.Taneja/chapter12.ipynb @@ -0,0 +1,139 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:fa25aede5e2048b3aef3db7a512e42eedd41c6618ebcfbecf8cd5a65f6b8e6f4"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 12 Ultrasonics"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.1 Page no 388"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "y=115*10**9 #N/m**2\n",
+ "t=40.0*10**-3\n",
+ "a=7.25*10**3 #kg/m**3\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "n=(math.sqrt(y/a))/(2*t)\n",
+ "\n",
+ "#Resut\n",
+ "print\"Fundamental frequency is\",round(n*10**-3,1),\"KHz\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Fundamental frequency is 49.8 KHz\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.2 Page no 388"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "y=8*10**10 #N/m**2\n",
+ "a=5000.0 #Kg/m**3\n",
+ "V=400.0\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "v=math.sqrt(y/a)\n",
+ "w=v/V\n",
+ "\n",
+ "#Result\n",
+ "print\"(a) Velocity is\", v,\"m/sec\"\n",
+ "print\"(b) Wavelength is\",w,\"mt\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) Velocity is 4000.0 m/sec\n",
+ "(b) Wavelength is 10.0 mt\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 12.3 Page no 389"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "v=1700 #m/s\n",
+ "t=0.65 #sec\n",
+ "n=0.7*10**5\n",
+ "\n",
+ "#Calculation\n",
+ "d=v*t/2.0\n",
+ "w=v/n\n",
+ "\n",
+ "#Result\n",
+ "print\"Depth of sea is\", d,\"m\"\n",
+ "print\"Wavelength of pulse is\",round(w,4),\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Depth of sea is 552.5 m\n",
+ "Wavelength of pulse is 0.0243 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_physics_for_engineers_by_S.P.Taneja/chapter14.ipynb b/Modern_physics_for_engineers_by_S.P.Taneja/chapter14.ipynb new file mode 100644 index 00000000..b2bb6119 --- /dev/null +++ b/Modern_physics_for_engineers_by_S.P.Taneja/chapter14.ipynb @@ -0,0 +1,210 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:f95ad053d0ee60a574142f8a3593f1e9b0c8e0f820af4e56f85cc80fe6a03524"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 14 Crystal structure"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.1 Page no 27"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=3.56\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "A=a/math.sqrt(2)\n",
+ "\n",
+ "#Result\n",
+ "print\"(a) There are 8 atmos\"\n",
+ "print\"(b) Length is\",round(A,2),\"A\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) There are 8 atmos\n",
+ "(b) Length is 2.52 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.6 Page no 28"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=3\n",
+ "b=2.0\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "d=math.sqrt(a/b)\n",
+ "\n",
+ "#Result\n",
+ "print\"(i) Ratio of intercepts of three axes is 1:1/2:1/3\"\n",
+ "print\"(ii) Ratio of spascing is\",round(d,3)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(i) Ratio of intercepts of three axes is 1:1/2:1/3\n",
+ "(ii) Ratio of spascing is 1.225\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.12 Page no 30"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "c=8\n",
+ "a=3.0\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "A=math.sqrt(c/a)\n",
+ "\n",
+ "#Result\n",
+ "print\"A=\",round(A,3)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "A= 1.633\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.13 Page no 30"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "v=1.794*10**-28 #m**3\n",
+ "Kb=8.625*10**-5\n",
+ "T=298\n",
+ "A=16.65\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "E=math.log(10)*A*2*Kb*T\n",
+ "\n",
+ "#Result\n",
+ "print\"Average energy required is\",round(E,3),\"eV\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Average energy required is 1.971 eV\n"
+ ]
+ }
+ ],
+ "prompt_number": 13
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 14.14 Page no 31"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=560\n",
+ "Kb=8.625*10**-5\n",
+ "T=586\n",
+ "A=1146\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "n=1.4*a/(math.log(10)*Kb*T*A)\n",
+ "\n",
+ "#Result\n",
+ "print\"Ratio is\", round(n,3)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Ratio is 5.878\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_physics_for_engineers_by_S.P.Taneja/chapter15.ipynb b/Modern_physics_for_engineers_by_S.P.Taneja/chapter15.ipynb new file mode 100644 index 00000000..cda8a826 --- /dev/null +++ b/Modern_physics_for_engineers_by_S.P.Taneja/chapter15.ipynb @@ -0,0 +1,741 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:aa5ceefed0ada315a43937860fa7396936667b9a8413471a944a5253df1179d4"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 15 X-Ray and diffraction of X-Ray"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.1 Page no 55"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "V=100000.0\n",
+ "a=12400\n",
+ "\n",
+ "#Calculation\n",
+ "w=a/V\n",
+ "\n",
+ "#Result\n",
+ "print\"Cut off wavelength is\",w,\"A\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Cut off wavelength is 0.124 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.2 Page no 56"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "V=25000.0\n",
+ "\n",
+ "#Calculation\n",
+ "w=a/V\n",
+ "\n",
+ "#Result\n",
+ "print\"Minimum wavelength is\",w,\"A\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Minimum wavelength is 0.496 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.3 Page no 56"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "e=1.6*10**-19 #C\n",
+ "V=10*10**3\n",
+ "m=9.1*10**-31 #Kg\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "v=math.sqrt((2*e*V)/m)\n",
+ "\n",
+ "#Result\n",
+ "print\"Velocity of electron is\",round(v*10**-7,1),\"*10**7 m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Velocity of electron is 5.9 *10**7 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.4 Page no 56"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "h=6.62*10**-34 #j-s\n",
+ "e=1.6*10**-19 #C\n",
+ "c=3*10**8\n",
+ "w=10**-10\n",
+ "\n",
+ "#Calculation\n",
+ "E=((h*c)/w)/e\n",
+ "\n",
+ "#Result\n",
+ "print\"Energy of each electron is\",round(E*10**-3,2),\"Kev\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Energy of each electron is 12.41 Kev\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.5 Page no 56"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "w=10**-10\n",
+ "\n",
+ "#Calculation\n",
+ "V=a/w\n",
+ "\n",
+ "#Result\n",
+ "print\"Minimum applied potential is\",V*10**-3,\"KV\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Minimum applied potential is 1.24e+11 KV\n"
+ ]
+ }
+ ],
+ "prompt_number": 27
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.6 Page no 57"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "V=40*10**3 #V\n",
+ "e=1.6*10**-19 #C\n",
+ "w=0.310*10**-10\n",
+ "c=3.0*10**8\n",
+ "\n",
+ "#Calculation\n",
+ "h=(V*e*w)/c\n",
+ "\n",
+ "#Result\n",
+ "print\"Planck's constant is\",round(h*10**34,2)*10**-34,\"Joule-sec\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Planck's constant is 6.61e-34 Joule-sec\n"
+ ]
+ }
+ ],
+ "prompt_number": 32
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.7 Page no 57"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "w=1.93\n",
+ "a=25\n",
+ "b=49.0\n",
+ "\n",
+ "#Calculation\n",
+ "W=(a/b)**2*w\n",
+ "\n",
+ "#Result\n",
+ "print\"Ka lines for tin and barium is\",round(W,1),\"A\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Ka lines for tin and barium is 0.5 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 36
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.8 Page no 57"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "R=1.1*10**7 #/m\n",
+ "Z=92\n",
+ "\n",
+ "#Calculation\n",
+ "W=4/(3*R*(Z-1)**2)\n",
+ "\n",
+ "#Result\n",
+ "print\"Wavelength is\",round(W*10**10,3),\"A\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Wavelength is 0.146 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 41
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.9 Page no 58"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "I0=23.0\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "x=-(10/I0)*math.log(10)*math.log10(0.5)\n",
+ "\n",
+ "#Result\n",
+ "print\"Thickness is\",round(x,2),\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Thickness is 0.3 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 50
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.10 Page no 58"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "x=1.05*10**-3 #m\n",
+ "a=8930\n",
+ "u=2466.7 #m\n",
+ "\n",
+ "#Calculation\n",
+ "p=u/a\n",
+ "\n",
+ "#Result\n",
+ "print\"The mass absorption coefficient of copper is\",round(p,3),\"m**3/kg\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The mass absorption coefficient of copper is 0.276 m**3/kg\n"
+ ]
+ }
+ ],
+ "prompt_number": 58
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.11 Page no 58"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "d=2.820 #A\n",
+ "q=2\n",
+ "a=0.1491\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "l=d*a*q\n",
+ "l1=math.asin((q*l)/(q*d))*180/3.14\n",
+ "\n",
+ "#Result\n",
+ "print\"The wavelength of the x-ray is\",round(l,3),\"A\"\n",
+ "print\"The angle is\",round(l1,0),\"degree\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The wavelength of the x-ray is 0.841 A\n",
+ "The angle is 17.0 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 68
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.12 Page no 59"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "d=3.84*10**-8\n",
+ "n=2\n",
+ "a=10*0.05\n",
+ "h=6.6*10**-34\n",
+ "e=10**-10\n",
+ "m=1.67*10**-27\n",
+ "A=30\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "l=n*d*math.sin(A*3.14/180.0)\n",
+ "v=(h/(m*l*10))\n",
+ "\n",
+ "#Result\n",
+ "print\"The wave length of the neutron beam is\",round(l*10**8,2),\"10**-8\"\n",
+ "print\"Speed is\", round(v,2),\"*10**3 m/sec\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The wave length of the neutron beam is 3.84 10**-8\n",
+ "Speed is 1.03 *10**3 m/sec\n"
+ ]
+ }
+ ],
+ "prompt_number": 106
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.13 Page no 59"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "l=1.8*10**-18\n",
+ "\n",
+ "#Calculation\n",
+ "a=1*l\n",
+ "\n",
+ "#Result\n",
+ "print\"Interatomic spacing is\",a,\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Interatomic spacing is 1.8e-18 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 109
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.14 Page no 59"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "d=2.814\n",
+ "a=9 #degree\n",
+ "n1=1\n",
+ "n2=2\n",
+ "n3=3\n",
+ "n4=4\n",
+ "n5=5\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "l1=n2*d*math.sin(a*3.14/180.0)\n",
+ "l2=l1/2.0\n",
+ "l3=l1/3.0\n",
+ "l4=l1/4.0\n",
+ "l5=l1/5.0\n",
+ "\n",
+ "#Result\n",
+ "print\"Wavelength is\",round(l1,4),\"A\\n\",round(l2,4),\"A\\n\",round(l3,4),\"A\\n\",round(l4,4),\"A\\n\",round(l5,4),\"A\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Wavelength is 0.88 A\n",
+ "0.44 A\n",
+ "0.2933 A\n",
+ "0.22 A\n",
+ "0.176 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 132
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.15 Page no 59"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "w=0.71 #A \n",
+ "a=2.814\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "A=math.asin(w/a)*180/3.14\n",
+ "\n",
+ "#Result\n",
+ "print\"The glancing angle on the cube face is\",round(A,0)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The glancing angle on the cube face is 15.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 143
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.16 Page no 60"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "w=2*10**-11\n",
+ "q=45\n",
+ "l=3\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "r=1*w*math.sqrt(l)/(2*math.sin(q*3.14/180.0))\n",
+ "\n",
+ "#Result\n",
+ "print\"The interatomic spacing of the crystal is\",round(r*10**11,2),\"10**-11\",\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The interatomic spacing of the crystal is 2.45 10**-11 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 151
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.17 Page no 60"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=5 \n",
+ "b=12 \n",
+ "c=18 \n",
+ "l=0.586 #A\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "d=l/(2*math.sin(a*3.14/180.0))\n",
+ "d1=l/(math.sin(b*3.14/180.0))\n",
+ "d2=1/(2*math.sin(c*3.14/180.0))\n",
+ "\n",
+ "#Result\n",
+ "print\"The spacing from first maximum is\",round(d,3),\"A\"\n",
+ "print\"The spacing from second maximum is\",round(d1,3),\"A\"\n",
+ "print\"The spacing from third maximum is\",round(d2,3),\"A\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The spacing from first maximum is 3.363 A\n",
+ "The spacing from second maximum is 2.82 A\n",
+ "The spacing from third maximum is 1.619 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 173
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.18 Page no 60"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "w=1.549\n",
+ "d=4.255\n",
+ "n=1\n",
+ "n1=2\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "a=n*w/(2*d)\n",
+ "A=math.asin(a)*180/3.14\n",
+ "a1=n1*w/(2*d)\n",
+ "A1=math.asin(a1)*180/3.14\n",
+ "\n",
+ "#Result\n",
+ "print\"Glacing angles are\",round(A,2),\"degree and\",round(A1,2),\"Degree\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Glacing angles are 10.49 degree and 21.36 Degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 180
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 15.19 Page no 61"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=28 #Degree\n",
+ "w=0.32*10**-9\n",
+ "n=1\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "d=n*w/(2.0*math.sin(a*3.14/180.0))\n",
+ "\n",
+ "#Result\n",
+ "print\"Distance between atomic planes is\",round(d*10**9,2),\"nm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Distance between atomic planes is 0.34 nm\n"
+ ]
+ }
+ ],
+ "prompt_number": 193
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_physics_for_engineers_by_S.P.Taneja/chapter17.ipynb b/Modern_physics_for_engineers_by_S.P.Taneja/chapter17.ipynb new file mode 100644 index 00000000..ebc1d184 --- /dev/null +++ b/Modern_physics_for_engineers_by_S.P.Taneja/chapter17.ipynb @@ -0,0 +1,328 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:a0472cad9efc9fc083eae29a6558b27a9e3a3efc3cc73f1c739af6d2c19278c6"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 17 Development of wave Mechanics"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.1 Page no 102"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "h=6.6*10**-34 #j-s\n",
+ "v=6*10**14 #/sec\n",
+ "w=6000*10**-10 #m\n",
+ "c=3*10**8\n",
+ "e=1.6*10**-19\n",
+ "\n",
+ "#Calculation\n",
+ "E=(h*(v-(c/w)))/e\n",
+ "\n",
+ "#Result\n",
+ "print\"Energy of photoelectrons is\",round(E,3),\"ev\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Energy of photoelectrons is 0.412 ev\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.2 Page no 102"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "w=4.8*10**-7\n",
+ "a0=2.3\n",
+ "h=6.6*10**-34\n",
+ "c=3*10**8\n",
+ "e=1.6*10**-19\n",
+ "\n",
+ "#Calculation\n",
+ "hv=h*c/(w*e)\n",
+ "K=hv-a0\n",
+ "W=(h*c)/(a0*e)\n",
+ "\n",
+ "#Result\n",
+ "print\"Maximum kinetic energy is\", round(K,2),\"ev\"\n",
+ "print\"Longest wavelength is\",round(W*10**7,2)*10**-7,\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Maximum kinetic energy is 0.28 ev\n",
+ "Longest wavelength is 5.38e-07 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.3 Page no 103"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "h=6.62*10**-34 #joule-sec\n",
+ "m=9.1*10**-31\n",
+ "e=1.6*10**-19\n",
+ "E=1.25 #Joule\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "w=h/(math.sqrt(2*m*E*e))\n",
+ "\n",
+ "#Result\n",
+ "print\"Wavelength is\",round(w*10**10,0),\"A\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Wavelength is 11.0 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 34
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.4 Page no 103"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "h=6.6*10**-34 #J-s\n",
+ "m=1.674*10**-27 #Kg\n",
+ "w=10**-10 #m\n",
+ "\n",
+ "#Calculation\n",
+ "E=(h**2/(2*m*w**2))/e\n",
+ "\n",
+ "#Result\n",
+ "print\"Energy of neutron is\", round(E,4),\"ev\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Energy of neutron is 0.0813 ev\n"
+ ]
+ }
+ ],
+ "prompt_number": 39
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.5 Page no 103"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "w=4000*10**-10 #m\n",
+ "c=3*10**8 #m/s\n",
+ "h=6.62*10**-34 #js\n",
+ "\n",
+ "#Calculation\n",
+ "v=c/w\n",
+ "E=(h*v)/e\n",
+ "\n",
+ "#Result\n",
+ "print\"Frequency is\", v*10**-15,\"*10**15 Hz\"\n",
+ "print\"Energy is\",round(E,1),\"ev\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Frequency is 0.75 *10**15 Hz\n",
+ "Energy is 3.1 ev\n"
+ ]
+ }
+ ],
+ "prompt_number": 48
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.6 Page no 104"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "h=6.62*10**-34 #J-s\n",
+ "m=1.67*10**-27 #Kg\n",
+ "K=1.38*10**-23 #Joule/K\n",
+ "T=300 #K\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "w=h/(math.sqrt(2*m*K*T))\n",
+ "\n",
+ "#Result\n",
+ "print\"Wavelength is\",round(w*10**10,2),\"A\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Wavelength is 1.78 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 52
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.7 Page no 104"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "m=1.67*10**-27 #Kg\n",
+ "h=6.62*10**-34 #joule-sec\n",
+ "V=2000 #V\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "M=4*m\n",
+ "w=h/(math.sqrt(4*M*e*V))\n",
+ "\n",
+ "#Result\n",
+ "print\"De-Broglie wavelength is\",round(w*10**13,1),\"*10**-3 A\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "De-Broglie wavelength is 2.3 *10**-3 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 57
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 17.8 Page no 105"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "h=6.626*10**-34 #j-s\n",
+ "m=9.1*10**-31 #Kg\n",
+ "v=10**7\n",
+ "\n",
+ "#Calculation\n",
+ "w=h/(m*v)\n",
+ "\n",
+ "#Result\n",
+ "print\"De-Broglie wavelength is\",round(w*10**10,4),\"A\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "De-Broglie wavelength is 0.7281 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 65
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_physics_for_engineers_by_S.P.Taneja/chapter19.ipynb b/Modern_physics_for_engineers_by_S.P.Taneja/chapter19.ipynb new file mode 100644 index 00000000..3a506ecc --- /dev/null +++ b/Modern_physics_for_engineers_by_S.P.Taneja/chapter19.ipynb @@ -0,0 +1,130 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:1d083196ab02ad5ba2396b4a10a213058e506c3fee2a8be71f6824530382e5a1"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 19 Schrodinger Equation and its Applications"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 19.1 Page no 168"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given \n",
+ "h=6.624*10**-34\n",
+ "m=9.1*10**-31\n",
+ "a=10**-10\n",
+ "\n",
+ "#Calculation\n",
+ "E1=h**2/(8*m*a**2)\n",
+ "\n",
+ "#Result\n",
+ "print\"Energy is\", round(E1*10**19,1),\"*10**-10 J\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Energy is 60.3 *10**-10 J\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 19.4 Page no 169"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=10**-9 #m\n",
+ "m=9.1*10**-31 #Kg\n",
+ "h=6.63*10**-34 #J-s\n",
+ "\n",
+ "#Calculation\n",
+ "E0=h**2/(8*m*a**2)\n",
+ "\n",
+ "#Result\n",
+ "print\"Value of E0 is\",round(E0*10**20,2)*10**-17,\"J\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Value of E0 is 6.04e-17 J\n"
+ ]
+ }
+ ],
+ "prompt_number": 28
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 19.5 Page no 169"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "x=5*10**-10\n",
+ "a=25*10**-10\n",
+ "\n",
+ "#Calculation\n",
+ "P=(2*x)/a\n",
+ "\n",
+ "#Result\n",
+ "print\"Probability of finding the particle is\",P"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Probability of finding the particle is 0.4\n"
+ ]
+ }
+ ],
+ "prompt_number": 29
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_physics_for_engineers_by_S.P.Taneja/chapter2.ipynb b/Modern_physics_for_engineers_by_S.P.Taneja/chapter2.ipynb new file mode 100644 index 00000000..44010166 --- /dev/null +++ b/Modern_physics_for_engineers_by_S.P.Taneja/chapter2.ipynb @@ -0,0 +1,1173 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:5e77310b83fb16f4b45eb92df638029fc5fbb7881beb71539bf2e332dc67f090"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 2 Diffraction of light"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.1 Page no 85"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "w=6*10**-7\n",
+ "a=12*10**-7\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "A=math.asin(w/a)*180/3.14\n",
+ "\n",
+ "#Result\n",
+ "print\"Half angular width of central bright maxima is\",round(A,0),\"degree\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Half angular width of central bright maxima is 30.0 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.2 Page no 85"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a =0.2*10**-3 #m\n",
+ "D =2.0 # n m\n",
+ "x=5*10**-3\n",
+ "\n",
+ "#Calculation\n",
+ "w=(a*x)/D\n",
+ "w1=w*1*10**10\n",
+ "\n",
+ "#Result\n",
+ "print\"Wavelength of light is\", w1,\"A\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Wavelength of light is 5000.0 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.3 Page no 85"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "f=100 #cm\n",
+ "L=6000*10**-8\n",
+ "d=0.01\n",
+ "\n",
+ "#Calculation\n",
+ "x=1.22*f*L/d\n",
+ "\n",
+ "#Result\n",
+ "print\"Separation is\",x,\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Separation is 0.732 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.4 Page no 86"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "w=6*10**-7 #m\n",
+ "D=2\n",
+ "x=5.0*10**-3\n",
+ "\n",
+ "#Calculation\n",
+ "a=(w*D)/x\n",
+ "\n",
+ "#Result\n",
+ "print\"Slit width is\", a*10**4,\"*10**-4 m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Slit width is 2.4 *10**-4 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.5 Page no 86"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "w=589*10**-9\n",
+ "D=1\n",
+ "a=0.1*10**-3\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "A=math.asin(w/a)\n",
+ "A1=2*A\n",
+ "y=D*A1\n",
+ "y1=y*100\n",
+ "\n",
+ "#Result\n",
+ "print\"Angular width of central maxima is\", round(A1,3),\"radian\"\n",
+ "print\"Linear width of central maxima is\",round(y1,3),\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Angular width of central maxima is 0.012 radian\n",
+ "Linear width of central maxima is 1.178 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.6 Page no 86"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=22.0*10**-5\n",
+ "L=5500*10**-8\n",
+ "n=1\n",
+ "n1=2\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "a1=L/a\n",
+ "A=math.asin(a1)*180/3.14\n",
+ "a2=math.asin(2*L/a)*180/3.14\n",
+ "\n",
+ "#Result\n",
+ "print\"Angular position of two minima is\",round(A,2), \"Degree and\", round(a2,0),\"Degree\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Angular position of two minima is 14.48 Degree and 30.0 Degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.7 Page no 87"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "n=1\n",
+ "L=5890*10**-10\n",
+ "a=3*10**-4\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "A=math.asin((L/a)*180/3.14)\n",
+ "A1=math.asin((3*L)/(2.0*a))*180/3.14\n",
+ "\n",
+ "#Result\n",
+ "print\"Angle is\", round(A1*10**2,0),\"Degree\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Angle is 17.0 Degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 33
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.8 Page no 87"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "L=4890*10**-10\n",
+ "a=5*10**-3\n",
+ "f=0.4\n",
+ "\n",
+ "#Calculation\n",
+ "x1=f*L/a\n",
+ "x2=3*L*f/(2*a)\n",
+ "x=x2-x1\n",
+ "\n",
+ "#Result\n",
+ "print\"Distance between first dark fringe and new bright fringe is\", x,\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Distance between first dark fringe and new bright fringe is 1.956e-05 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 40
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.9 Page no 88"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "L=5000*10**-8 #cm\n",
+ "a=5000.0\n",
+ "\n",
+ "#Calculation\n",
+ "n=1/(L*a)\n",
+ "\n",
+ "#Result\n",
+ "print\"Highest order spectrum is\",n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Highest order spectrum is 4.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 41
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.10 Page no 88"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "c=1/5000.0\n",
+ "w1=5890*10**-8 #cm\n",
+ "n =2\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "theta = math.asin ((n*w1)/c)*180/3.14\n",
+ "w2 =5896*10** -8\n",
+ "theta1 = math.asin ((n*w2)/c)*180/3.14\n",
+ "a= theta1 - theta \n",
+ "w =5893*10**-8\n",
+ "dw=w2 -w1\n",
+ "N=w/( dw*n)\n",
+ "N1= floor (N)\n",
+ "\n",
+ "#Result\n",
+ "print\"(a) Angular width is\",round(theta,3),\"Degree\"\n",
+ "print\"(b) Angular separation is\",round(a,3),\"Degree\"\n",
+ "print\"(c) No. of lines is\",N1,\"Grating\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) Angular width is 36.104 Degree\n",
+ "(b) Angular separation is 0.043 Degree\n",
+ "(c) No. of lines is 491.0 Grating\n"
+ ]
+ }
+ ],
+ "prompt_number": 42
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.11 Page no 89"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "w1=589*10**-9\n",
+ "w2 =5896*10**-10 \n",
+ "dw=w2-w1 # change o f wave l eng th\n",
+ "w=( w1+w2) /2.0 #mid wavelength\n",
+ "n =1\n",
+ "\n",
+ "#Calculation\n",
+ "N=w/(n*dw)\n",
+ "N1= floor (N)\n",
+ "\n",
+ "#Result\n",
+ "print\"Number of lines is\", N1,\"grating\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Number of lines is 982.0 grating\n"
+ ]
+ }
+ ],
+ "prompt_number": 28
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.12 Page no 89"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "n1=2\n",
+ "n2=3.0\n",
+ "L=6360 #A\n",
+ "\n",
+ "#Calculation\n",
+ "L2=n1*L/n2\n",
+ "\n",
+ "#Result\n",
+ "print\"Wavelength is\",L2,\"A\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Wavelength is 4240.0 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 44
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.13 Page no 89"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "L1=5400*10**-8\n",
+ "L2=4050.0*10**-8\n",
+ "a=30 #Degree\n",
+ "b=1350.0*10**-8\n",
+ "\n",
+ "#Calculation\n",
+ "A=b/(L1*L2*2)\n",
+ "\n",
+ "#Result\n",
+ "print\"Number of lines is\", round(A,0)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Number of lines is 3086.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 48
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.14 Page no 90"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=30 #Degree\n",
+ "L=5000*10**-8\n",
+ "x=0.01 #Radian\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "A=math.tan(a*3.14/180.0)\n",
+ "X=1/A\n",
+ "L1=L*x*X\n",
+ "\n",
+ "#Result\n",
+ "print\"Difference in two wavelength is\", round(L1*10**8,1),\"A\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Difference in two wavelength is 86.7 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 9
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.15 Page no 90"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "#Given\n",
+ "c=1/4000.0 # grating element\n",
+ "w=5000*10**-8\n",
+ "n =3\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "D=n/(c* math.sqrt (1 -((n*w/c)**2) ))\n",
+ "\n",
+ "#Result\n",
+ "print\"Dispersive power is\",D*10**-4,\"*10**4 rad/sec\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Dispersive power is 1.5 *10**4 rad/sec\n"
+ ]
+ }
+ ],
+ "prompt_number": 59
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.16 Page no 90"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=30 #Degree\n",
+ "n=2.0\n",
+ "A=5000.0\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "L=math.sin(a*3.14/180.0)/(n*A)\n",
+ "\n",
+ "#Result\n",
+ "print\"Wavelength is\", round(L*10**8,0),\"A\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Wavelength is 4998.0 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 84
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.17 Page no 91"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "l =5 #length of grating\n",
+ "N =16000\n",
+ "w =6000\n",
+ "n =2.0\n",
+ "\n",
+ "#Calculation\n",
+ "T=N*l\n",
+ "R=T*n\n",
+ "dw=w/(T*n)\n",
+ "\n",
+ "#Result\n",
+ "print\"(a) Resolving power is\",R\n",
+ "print\"(b) Wavelength is\",dw,\"A\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) Resolving power is 160000.0\n",
+ "(b) Wavelength is 0.0375 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.18 Page no 91"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "w1=5500 #A\n",
+ "w2=5501\n",
+ "n=2\n",
+ "W1=8500\n",
+ "W2=8501\n",
+ "\n",
+ "#Calculation\n",
+ "w=(w1+w2)/2.0\n",
+ "W=w2-w1\n",
+ "N=w/W\n",
+ "W11=(W1+W2)/2.0\n",
+ "W12=W2-W1\n",
+ "N1=W11/W12\n",
+ "\n",
+ "#Result\n",
+ "print\"The required rosolving power\", N1,\"is less than the actual power\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The required rosolving power 8500.5 is less than the actual power\n"
+ ]
+ }
+ ],
+ "prompt_number": 94
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.19 Page no 92"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "c =12.5*10**-5\n",
+ "w=5*10**-5\n",
+ "N =40000\n",
+ "\n",
+ "#Calculation\n",
+ "n=c/w\n",
+ "n1= floor (n)\n",
+ "P=n1*N\n",
+ "\n",
+ "#Result\n",
+ "print\"Resolving power is\",P"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Resolving power is 80000.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 87
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.20 Page no 92"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "n=2500.0\n",
+ "w=0.5\n",
+ "n1=1\n",
+ "L=5890*10**-8\n",
+ "a=5000\n",
+ "L2=5896*10**-8\n",
+ "L3=5893*10**-8\n",
+ "c=6*10**-8\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "A=w/n\n",
+ "A1=math.asin(L*a)*180/3.14\n",
+ "A2=math.asin(L2*a)*180/3.14\n",
+ "A3=A2-A1\n",
+ "N=L3/c\n",
+ "\n",
+ "#Result\n",
+ "print\"Angular separation between Two sodium lines are\", round(A1,1),\"degree and\",round(A2,1),\"degree\"\n",
+ "print\"Number of lines required is\",round(N,0),\"lines\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Angular separation between Two sodium lines are 17.1 degree and 17.2 degree\n",
+ "Number of lines required is 982.0 lines\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.21 Page no 93"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "l=2 #inches\n",
+ "n=40000\n",
+ "N=3\n",
+ "\n",
+ "#Calculation\n",
+ "r=n*l\n",
+ "p=N*r\n",
+ "\n",
+ "#Result\n",
+ "print\"The resolving power in third order is\",p"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The resolving power in third order is 240000\n"
+ ]
+ }
+ ],
+ "prompt_number": 19
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.22 Page no 93"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "N=40000.0\n",
+ "a=12.5*10**-5\n",
+ "w=80000\n",
+ "\n",
+ "#Calculation\n",
+ "n=w/N\n",
+ "L=a/n\n",
+ "L1=L*10**8/(n*N)\n",
+ "L2=L*10**8+L1\n",
+ "\n",
+ "#Result\n",
+ "print\"Range of wavelength is\", round(L2,2),\"A\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Range of wavelength is 6250.08 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 35
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.23 Page no 93"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "L=0.5*10**-8\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "w=math.sin(10*3.14/180.0)*L/(math.cos(10*3.14/180.0)*(3/(60.0*60.0))*(math.pi/180.0))\n",
+ "W=w+L\n",
+ "N=W/(L*2)\n",
+ "N1=(N*2*w)/(L*2)\n",
+ "\n",
+ "#Result\n",
+ "print\"Minimum grating is\", round(w*10**5,0)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Minimum grating is 6.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 60
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.24 Page no 94"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "w=5000 #A\n",
+ "N=30000\n",
+ "n=2.0\n",
+ "\n",
+ "#Calculation\n",
+ "W=w/(n*N)\n",
+ "\n",
+ "#Result\n",
+ "print\"Smallest wavelength separation is\", round(W,3),\"A\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Smallest wavelength separation is 0.083 A\n"
+ ]
+ }
+ ],
+ "prompt_number": 64
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.25 Page no 95"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "f =50 #focal length of convex lens in cm\n",
+ "w=5*10**-5 #wavelength used in cm\n",
+ "n =1\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "r= math.sqrt (n*f*w)\n",
+ "\n",
+ "#Result\n",
+ "print\"Radius is\",r,\"cm\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Radius is 0.05 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.26 Page no 95"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "d =0.2 #diameter of ring\n",
+ "n =1\n",
+ "w=5*10**-5\n",
+ "\n",
+ "#Calculation\n",
+ "r=d/2.0\n",
+ "f=(r**2) /(w*n)\n",
+ "\n",
+ "#Result\n",
+ "print\"Position of brightest spot is\",f,\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Position of brightest spot is 200.0 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.27 Page no 95"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "f =1 #focal length in m\n",
+ "n =1\n",
+ "w =5893*10**-10\n",
+ "n1 =3\n",
+ "n2=5\n",
+ "\n",
+ "#Calculation\n",
+ "r= math.sqrt (n*f*w)\n",
+ "r1= math.sqrt (n1*f*w)\n",
+ "r2= math.sqrt (n2*f*w)\n",
+ "\n",
+ "#Result\n",
+ "print\"Radius is\",round(r*10**4,2),\"*10**-4 m,\",round(r1*10**3,3),\"*10**-3 m,\",round(r2*10**3,3),\"*10**-3 m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Radius is 7.68 *10**-4 m, 1.33 *10**-3 m, 1.717 *10**-3 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 72
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.28 Page no 95"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "f1=8\n",
+ "w1=6000*10**-8\n",
+ "w2=4800.0*10**-8\n",
+ "\n",
+ "#Calculation\n",
+ "f2=f1*w1/w2\n",
+ "\n",
+ "#Result\n",
+ "print\"Focal length is\",f2,\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Focal length is 10.0 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 76
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.29 Page no 95"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "n=1\n",
+ "\n",
+ "#Calculation\n",
+ "f1=n\n",
+ "\n",
+ "#Result\n",
+ "print\"Principal focal length is\",f1,\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Principal focal length is 1 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 78
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 2.30 Page no 96"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "r =200 #radius of curvature in cm\n",
+ "\n",
+ "#Calculation\n",
+ "f=r\n",
+ "\n",
+ "#Result\n",
+ "print\"Principle focal length is\",f*10**-2,\"m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Principle focal length is 2.0 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 74
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_physics_for_engineers_by_S.P.Taneja/chapter20.ipynb b/Modern_physics_for_engineers_by_S.P.Taneja/chapter20.ipynb new file mode 100644 index 00000000..4653b2c4 --- /dev/null +++ b/Modern_physics_for_engineers_by_S.P.Taneja/chapter20.ipynb @@ -0,0 +1,136 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:28632a8e2e8b8cfc35d61b358e115b3b420083bd7c5c7f588f01ea1f5ef49276"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 20 Free electron theory"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.1 Page no 191"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=0.971*10**3 #Kg/m**3\n",
+ "w=22.99\n",
+ "N0=6*10**26\n",
+ "m=9.1*10**-31 #Kg\n",
+ "h=6.626*10**-34 #J-s\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "N=(N0*a)/w\n",
+ "Ef=(h/(8*m))*((3*N)/math.pi)**0.66\n",
+ "\n",
+ "#Result\n",
+ "print\"Fermi energy is\", round(Ef*10**-14,0)*10**-19,\"J\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Fermi energy is 5e-19 J\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.2 Page no 192"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=10**-10 #m\n",
+ "m=9.1*10**-31 #Kg\n",
+ "h=6.626*10**-34 #J-s\n",
+ "\n",
+ "#Calculation\n",
+ "E=3*h**2/(8*m*a**2)\n",
+ "\n",
+ "#Result\n",
+ "print\"Energy difference is\", round(E*10**17,3)*10**-17,\"J\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Energy difference is 1.809e-17 J\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 20.3 Page no 192"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "x=1.39\n",
+ "K=0.025\n",
+ "Ef=3.2\n",
+ "\n",
+ "#Calculation\n",
+ "E=x*K\n",
+ "E1=E+Ef\n",
+ "\n",
+ "#Result\n",
+ "print\"Energy at 300 K is\", round(E1,3),\"ev\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Energy at 300 K is 3.235 ev\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_physics_for_engineers_by_S.P.Taneja/chapter21.ipynb b/Modern_physics_for_engineers_by_S.P.Taneja/chapter21.ipynb new file mode 100644 index 00000000..bf4be38c --- /dev/null +++ b/Modern_physics_for_engineers_by_S.P.Taneja/chapter21.ipynb @@ -0,0 +1,427 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:b6353cab8239666e492e150381505927ed36ee982fa6a2d0b8c2d1ea5d2f16a2"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 21 Band theory of solids"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21.1 Page no 228"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "T=300 #K\n",
+ "Er=0.7 #ev\n",
+ "K=0.025 #ev\n",
+ "a=4.83*10**21\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "ni=a*T**1.5*math.exp(Er/K)\n",
+ "\n",
+ "#Result\n",
+ "print\"Density of holes and electron is\",round(ni*10**-37,1)*10**19,\"/m**3\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Density of holes and electron is 3.6e+19 /m**3\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21.2 Page no 229"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "T=300 #K\n",
+ "nd=5*10**22 #/m**3\n",
+ "K=0.025 #ev\n",
+ "a=4.83*10**21\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "E=(a*T**1.5)/nd\n",
+ "E1=K*math.log(E)\n",
+ "\n",
+ "#Result\n",
+ "print\"Position of fermi level is\", round(E1,2),\"ev\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Position of fermi level is 0.16 ev\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21.3 Page no 229"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "E=0.3 #ev\n",
+ "T1=300.0\n",
+ "T2=330 #K\n",
+ "\n",
+ "#Calculation\n",
+ "E1=E*T2/T1\n",
+ "\n",
+ "#Result\n",
+ "print\"New position of fermi level is\",E1,\"ev\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "New position of fermi level is 0.33 ev\n"
+ ]
+ }
+ ],
+ "prompt_number": 22
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21.4 Page no 230"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "Kb=9.1*10**-31\n",
+ "m=1.38*10**-23\n",
+ "h=6.6*10**-34\n",
+ "uh=0.17 #m**2/Volt/sec\n",
+ "a=2.12 #/ohm/m\n",
+ "ue=0.36\n",
+ "e=1.2*10**-19\n",
+ "T=300\n",
+ "T1=13.8\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "C=2*((2*math.pi*Kb*m)/h**2)**1.5\n",
+ "ni=a/(e*(ue+uh))\n",
+ "A=(C*T**1.5)/ni\n",
+ "K=math.log(A)*T\n",
+ "Eb=2*Kb*T1\n",
+ "\n",
+ "#Result\n",
+ "print round(Eb*10**28,2),\"ev\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "0.25 ev\n"
+ ]
+ }
+ ],
+ "prompt_number": 51
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21.5 Page no 231"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "E=0.4 #ev\n",
+ "T=0.03 #ev\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "E1=E-(T*math.log(3))\n",
+ "\n",
+ "#Result\n",
+ "print\"New position of fermi level is\", round(E1,3),\"ev\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "New position of fermi level is 0.367 ev\n"
+ ]
+ }
+ ],
+ "prompt_number": 55
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21.6 Page no 231"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "h=6.626*10**-34 #J-s\n",
+ "m=9.1*10**-31 #Kg\n",
+ "a=0.3*10**-9 #m\n",
+ "e=1.6*10**-19\n",
+ "\n",
+ "#Calculation\n",
+ "p=h/(2*a)\n",
+ "E=p**2/(2*m*e)\n",
+ "\n",
+ "#Result\n",
+ "print\"Electron momentum is\",round(p*10**24,1)*10**-24,\"Kg m/s\"\n",
+ "print\"Energy of free electron is\",round(E,1),\"ev\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Electron momentum is 1.1e-24 Kg m/s\n",
+ "Energy of free electron is 4.2 ev\n"
+ ]
+ }
+ ],
+ "prompt_number": 64
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21.7 Page no 232"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "P=0.35 #Volt\n",
+ "T=300 #K\n",
+ "e=1.6*10**-19\n",
+ "K=1.38*10**-23\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "Iv=math.exp(e*P/(K*T))\n",
+ "\n",
+ "#Result\n",
+ "print\"Forward current is\", round(Iv*10**-5,2),\"*10**5 I0\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Forward current is 7.49 *10**5 I0\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21.8 Page no 232"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "Kb=1.38*10**-23\n",
+ "T=300\n",
+ "e=1.6*10**-19\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "V=math.log(10)*math.log10(1.9)*Kb*T/e\n",
+ "\n",
+ "#Result\n",
+ "print\"Voltage is\", round(V,4),\"Volts\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Voltage is 0.0166 Volts\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21.9 Page no 232"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=0.428*10**-9\n",
+ "n=2.55*10**28\n",
+ "e=1.6*10**-19\n",
+ "m=0.014\n",
+ "m1=0.18\n",
+ "me=9.1*10**-31 #kg\n",
+ "T=300 #K\n",
+ "K=0.025 #ev\n",
+ "Eg=0.15 #ev\n",
+ "n1=1.535*10**22\n",
+ "Ix=100*10**-3\n",
+ "b=10**-3 #Web/m**3\n",
+ "B=0.1\n",
+ "\n",
+ "#Calculation\n",
+ "n=2/a**3\n",
+ "Rh=1/(n*e)\n",
+ "me1=m*me\n",
+ "mh=m1*me\n",
+ "RH=1/(n1*e)\n",
+ "Vh=(Rh*Ix*B)/b\n",
+ "VH=Ix*B*RH/b\n",
+ "\n",
+ "#Result\n",
+ "print\"Hall coefficient of sodium is\", round(Rh*10**9,3),\"*10**-9 m**3/C\"\n",
+ "print\"Hall coefficient of pure InSb is\",round(RH*10**4,2),\"*10**-4 m**3/C\"\n",
+ "print\"Hall voltage for sodium is\",round(Vh*10**9,2)*10**-9,\"V\"\n",
+ "print\"Hall voltage for InSb is\",round(VH*10**3,2),\"*10**-3 V\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Hall coefficient of sodium is 0.245 *10**-9 m**3/C\n",
+ "Hall coefficient of pure InSb is 4.07 *10**-4 m**3/C\n",
+ "Hall voltage for sodium is 2.45e-09 V\n",
+ "Hall voltage for InSb is 4.07 *10**-3 V\n"
+ ]
+ }
+ ],
+ "prompt_number": 43
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 21.10 Page no 233"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "n=5*10**25 #atoms/m**3\n",
+ "e=1.6*10**-19 #C\n",
+ "\n",
+ "#Calculation\n",
+ "Rh=1/(n*e)\n",
+ "\n",
+ "#Result\n",
+ "print\"Hall coefficient is\",Rh*10**8,\"*10**-4 m**3\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Hall coefficient is 12.5 *10**-4 m**3\n"
+ ]
+ }
+ ],
+ "prompt_number": 52
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_physics_for_engineers_by_S.P.Taneja/chapter23.ipynb b/Modern_physics_for_engineers_by_S.P.Taneja/chapter23.ipynb new file mode 100644 index 00000000..c063d241 --- /dev/null +++ b/Modern_physics_for_engineers_by_S.P.Taneja/chapter23.ipynb @@ -0,0 +1,93 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:ddc25f5d953d46de15d09c9a8d7da27eb7ecafe874a3fe46bf2bbd376bf4cf37"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 23 Magnetic properties of solids"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 23.1 Page no 268"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "u=9.3*10**-24 #Joule/tesla\n",
+ "ub=5.6*10**-5 #ev\n",
+ "Kb=0.025 #ev\n",
+ "\n",
+ "#Calculation\n",
+ "A=ub/Kb\n",
+ "print\"Magnetic interaction is\", A*10**3,\"*10**-3\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Magnetic interaction is 2.24 *10**-3\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 23.2 Page no 269"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "N=2.8*10**-13\n",
+ "a=27*10**23\n",
+ "b=0.53*10**-8\n",
+ "\n",
+ "#Calculation\n",
+ "x=-(a*N*b)/3.0\n",
+ "\n",
+ "#Result\n",
+ "print\"Diamagnetic susceptibility is\", round(x*10**-4,2),\"*10**-5\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Diamagnetic susceptibility is -0.13 *10**-5\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_physics_for_engineers_by_S.P.Taneja/chapter24.ipynb b/Modern_physics_for_engineers_by_S.P.Taneja/chapter24.ipynb new file mode 100644 index 00000000..afdceae2 --- /dev/null +++ b/Modern_physics_for_engineers_by_S.P.Taneja/chapter24.ipynb @@ -0,0 +1,180 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:b4c2ad3d2231e003dd81c8536584a68dd7b730bbf60d4fc7279f9c5e2add3106"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 24 Superconductivity"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 24.1 Page no 289"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "H1=1.4*10**5 #A/m\n",
+ "H2=4.2*10**5 \n",
+ "T1=14 #K\n",
+ "T2=13\n",
+ "Tc=14.5\n",
+ "H0=20.66*10**5 #A/m\n",
+ "T=4.2\n",
+ "\n",
+ "#Calculation\n",
+ "Hc=H0*(Tc**2-T**2)/Tc**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Critical field is\",round(Hc*10**-5,1),\"*10**5 A/m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Critical field is 18.9 *10**5 A/m\n"
+ ]
+ }
+ ],
+ "prompt_number": 36
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 24.2 Page no 290"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "Tc1=4.185 #K\n",
+ "M1=199.5\n",
+ "M2=203.4\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "Tc2=Tc1*math.sqrt(M1)/math.sqrt(M2)\n",
+ "\n",
+ "#Result\n",
+ "print\"Critical temperature is\",round(Tc2,2),\"K\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Critical temperature is 4.14 K\n"
+ ]
+ }
+ ],
+ "prompt_number": 12
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 24.3 Page no 290"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "T=4.2 #K\n",
+ "H0=6.5*10**4 #A/m\n",
+ "Tc=7.18\n",
+ "d=10**-3\n",
+ "\n",
+ "#Calculation\n",
+ "Hc=H0*(Tc**2-T**2)/Tc**2\n",
+ "Jc=4*Hc/d\n",
+ "\n",
+ "#Result\n",
+ "print\"Critical current is\", round(Jc*10**-8,3),\"*10**8 A/m**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Critical current is 1.71 *10**8 A/m**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 26
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 24.4 Page no 291"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "w=750 #A\n",
+ "T=3.5\n",
+ "Tc=4.12\n",
+ "h=6.02*10**26\n",
+ "a=13.55*10**3\n",
+ "M=200.6\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "W=w*math.sqrt(1-(T/Tc)**4)\n",
+ "n0=h*a/M\n",
+ "ns=n0*(1-(T/Tc)**4)\n",
+ "\n",
+ "#Result\n",
+ "print\"Penetration is\", round(ns*10**-28,2)*10**28,\"/m**3\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Penetration is 1.95e+28 /m**3\n"
+ ]
+ }
+ ],
+ "prompt_number": 35
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_physics_for_engineers_by_S.P.Taneja/chapter4.ipynb b/Modern_physics_for_engineers_by_S.P.Taneja/chapter4.ipynb new file mode 100644 index 00000000..b192f819 --- /dev/null +++ b/Modern_physics_for_engineers_by_S.P.Taneja/chapter4.ipynb @@ -0,0 +1,361 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:23cd3e5417a4aba77158edca69b0fcc586465a3d6fb0b76bd20567d78ca32f5c"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 4 Laser"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.1 Page no 164"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "w=6328.0*10**-10 #m\n",
+ "K=1.38*10**-23 #J/k\n",
+ "T=300 #K\n",
+ "e=6.63*10**-34\n",
+ "c=3*10**8\n",
+ "\n",
+ "#Calculation\n",
+ "E=e*c/w\n",
+ "N=math.exp(-E/(K*T))\n",
+ "\n",
+ "#Result\n",
+ "print\"Ratio of population of two states is\", round(N*10**33,0)*10**-33"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Ratio of population of two states is 1e-33\n"
+ ]
+ }
+ ],
+ "prompt_number": 16
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.2 Page no 164"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "N=1.059*10**-30\n",
+ "T=330\n",
+ "K=1.38*10**-23 #J/K\n",
+ "E=3.147*10**-19\n",
+ "c=3*10**8\n",
+ "h=6.63*10**-34\n",
+ "\n",
+ "#Calculation\n",
+ "w=h*c/E\n",
+ "\n",
+ "#Result\n",
+ "print\"Wavelength of light is\",round(w*10**9,0),\"*10**-9 m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Wavelength of light is 632.0 *10**-9 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.3 Page no 165"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "v=3000.0 #bandwidth in Hz\n",
+ "c=3*10**8 #speed of light in m/ s\n",
+ "\n",
+ "#Calculation\n",
+ "t =1/ v\n",
+ "l=(c*t)\n",
+ "\n",
+ "#Result\n",
+ "print\"Coherence length for laser is\",l*10**-3,\"km\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Coherence length for laser is 100.0 km\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.4 Page no 165"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "theta =32 #angle on slit in second\n",
+ "w=5*10**-5\n",
+ "\n",
+ "#Calculation\n",
+ "theta1 =theta* 3.14/(60*180) \n",
+ "C=w/ theta1\n",
+ "\n",
+ "#Result\n",
+ "print\"Transverse coherence length is\",round(C,3),\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Transverse coherence length is 0.005 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.5 Page no 165"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "t=1.0*10**-10 #coherence time in sec\n",
+ "c=3*10**8 #speed of light in m/ s\n",
+ "w =54.0*10**-8 #wave length of non\udbc0\udc00monochromacity in m\n",
+ "\n",
+ "#Calclation\n",
+ "B =1/ t\n",
+ "v=c/w\n",
+ "D=B/v\n",
+ "\n",
+ "#Result\n",
+ "print\"Degree is\",D"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Degree is 1.8e-05\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.6 Page no 166"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "t=5.0*10**-10 #s\n",
+ "c=3*10**8\n",
+ "\n",
+ "#Calculation\n",
+ "l=t*c\n",
+ "v=1/t\n",
+ "\n",
+ "#Result\n",
+ "print\"Coherence length is\", v*10**-9,\"*10**9 Hz\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Coherence length is 2.0 *10**9 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 24
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.7 Page no 166"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "L=7200*10**-10 #m\n",
+ "d=5*10**-3\n",
+ "f=0.1\n",
+ "p=50*10**-3\n",
+ "\n",
+ "#Calculation\n",
+ "a=L/d\n",
+ "A=a**2*f**2\n",
+ "I=p/A\n",
+ "\n",
+ "#Result\n",
+ "print\"Area of image is\", A,\"m**2\"\n",
+ "print\"Intensity of image is\",round(I*10**-8,3),\"*10**8 W/m**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Area of image is 2.0736e-10 m**2\n",
+ "Intensity of image is 2.411 *10**8 W/m**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 33
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.8 Page no 166"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "w=7*10**-7 #m\n",
+ "a=5.0*10**-3\n",
+ "D=4*10**8\n",
+ "\n",
+ "#Calculation\n",
+ "A=1.22*w/a\n",
+ "x=(D*A)**2*3.14\n",
+ "\n",
+ "#Result\n",
+ "print\"(i) The angular spread is\",round(A*10**4,1),\"*10**-4 radian\"\n",
+ "print\"(ii) Areal spread when the beam reaches the moon is\", round(x*10**-10,2),\"*10**10 m**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(i) The angular spread is 1.7 *10**-4 radian\n",
+ "(ii) Areal spread when the nbeam reaches the moon is 1.47 *10**10 m**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 47
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 4.9 Page no 167"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "L=0.5 #m\n",
+ "\n",
+ "#Calculation\n",
+ "v=c/(2*L)\n",
+ "\n",
+ "#Result\n",
+ "print\"Mode separation of longitudinal cavity is\",v*10**-8,\"*10**8 Hz\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Mode separation of longitudinal cavity is 3.0 *10**8 Hz\n"
+ ]
+ }
+ ],
+ "prompt_number": 50
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_physics_for_engineers_by_S.P.Taneja/chapter5.ipynb b/Modern_physics_for_engineers_by_S.P.Taneja/chapter5.ipynb new file mode 100644 index 00000000..491a792a --- /dev/null +++ b/Modern_physics_for_engineers_by_S.P.Taneja/chapter5.ipynb @@ -0,0 +1,700 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:89d0949b61b404b5225e0d1d1fa6fa40a7e6670219cda64657a01ef547822266"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 5 Fiber optics"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.1 Page no 184"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "u1 =1.48 #refractive index of cladding\n",
+ "u2 =1.5 #refractive index of core\n",
+ "u =1\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "theta = math.asin (u1/u2)*180/3.14\n",
+ "Fr =((u2 -u1)/u2)*100\n",
+ "A= math.asin ( math.sqrt (u2**2- u1**2) )\n",
+ "NA=math.sin(A)\n",
+ "\n",
+ "#Result\n",
+ "print\"(i) Critical angle is\",round(theta,2),\"degree\"\n",
+ "print\"(ii)Fractional refractive index is\",round(Fr,2),\"% of light\"\n",
+ "print\"(iii) Acceptance angle is\",round(A,2),\"radian\"\n",
+ "print\"(iv) Numerical aperture is\",round(NA,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(i) Critical angle is 80.67 degree\n",
+ "(ii)Fractional refractive index is 1.33 % of light\n",
+ "(iii) Acceptance angle is 0.25 radian\n",
+ "(iv) Numerical aperture is 0.24\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.2 Page no 184"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "uf=1.5\n",
+ "A1=0.005\n",
+ "u=1.45\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "uc=uf*(1-A1)\n",
+ "x=uc/uf\n",
+ "A=math.asin(x)*180/3.14\n",
+ "X=math.sqrt((uf**2)-(uc**2))\n",
+ "A11=math.asin(X)*180/3.14\n",
+ "Na=X\n",
+ "\n",
+ "#Result\n",
+ "print\"(a) Refractive index is\",round(uc,2)\n",
+ "print\"(b) Critical internal reflacting angle is\",round(A,2),\"Degree\"\n",
+ "print\"(c) Acceptance angle is\",round(A11,4),\"Degree\"\n",
+ "print\"(d) Numerical aperature is\",round(Na,4)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) Refractive index is 1.49\n",
+ "(b) Critical internal reflacting angle is 84.31 Degree\n",
+ "(c) Acceptance angle is 8.6204 Degree\n",
+ "(d) Numerical aperature is 0.1498\n"
+ ]
+ }
+ ],
+ "prompt_number": 54
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.3 Page no 185"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "NA =0.22 # Numerical Aperatur e\n",
+ "Fr =0.012\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "u1=NA/ math.sqrt (Fr *(2 - Fr))\n",
+ "u2= math.sqrt (u1**2- NA**2) \n",
+ "\n",
+ "#result\n",
+ "print\"Refractive index of core is\",round(u1,2)\n",
+ "print\"Refractive index of clad is\",round(u2,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Refractive index of core is 1.42\n",
+ "Refractive index of clad is 1.41\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.4 Page no 185"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "u1 =1.62 #refractive index of core\n",
+ "u2 =1.52 # refractive index of clad\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "A= math.asin ( math.sqrt (u1**2- u2**2) )*180/3.14\n",
+ "NA=math.sin(A*3.14/180.0)\n",
+ "\n",
+ "#Result\n",
+ "print\"Acceptance length is\",round(A,2),\"Degree\"\n",
+ "print\"Numerical aperature is\",round(NA,4)\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Acceptance length is 34.1 Degree\n",
+ "Numerical aperature is 0.5604\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.5 Page no 185"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "Na=0.20\n",
+ "u=1.59\n",
+ "uw=1.33\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "uc=math.sqrt(Na**2+u**2)\n",
+ "NA=(math.sqrt(uc**2-u**2))/uw\n",
+ "A= math.asin(NA)*180/3.14\n",
+ "\n",
+ "#Result\n",
+ "print\"Acceptance angle is\", round(A,1),\"Degree\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Acceptance angle is 8.7 Degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 60
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.6 Page no 186"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "uc=1.45\n",
+ "uf=1.5\n",
+ "ua=1\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "a=math.asin(uc/uf)*180/3.14\n",
+ "NA=math.sqrt(uf**2-uc**2)\n",
+ "N=math.asin(NA)*180/3.14\n",
+ "\n",
+ "#Result\n",
+ "print\"Critical angle is\",round(a,1) ,\"Degree\"\n",
+ "print\"Acceptance angle is\",round(N,2),\"Degree\"\n",
+ "print\"Nemerical aperature is\",round(NA,3)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Critical angle is 75.2 Degree\n",
+ "Acceptance angle is 22.6 Degree\n",
+ "Nemerical aperature is 0.384\n"
+ ]
+ }
+ ],
+ "prompt_number": 73
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.7 Page no 186"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "w=0.850 #micro m\n",
+ "NA=0.22\n",
+ "a=50/2.0 #micro m\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "V=2*math.pi*a*NA/w\n",
+ "N=V**2/4.0\n",
+ "\n",
+ "#Result\n",
+ "print\"V numver is\", round(V,2)\n",
+ "print\"Number of modes is\",round(N,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "V numver is 40.66\n",
+ "Number of modes is 413.23\n"
+ ]
+ }
+ ],
+ "prompt_number": 80
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.8 Page no 187"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "NA=0.16\n",
+ "uc=1.45\n",
+ "d=0.6 #M\n",
+ "w=9*10**-7\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "V=math.pi*d*NA/w\n",
+ "\n",
+ "#Result\n",
+ "print\"Normalized frequency is\",round(V*10**-5,2),\"*10**5\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Normalized frequency is 3.35 *10**5\n"
+ ]
+ }
+ ],
+ "prompt_number": 84
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.9 Page no 187"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "uc=1.52\n",
+ "d=29*10**-6\n",
+ "a=0.007\n",
+ "w=1.3*10**-6\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "u=uc-(uc*a)\n",
+ "V=(math.pi*d/w)*math.sqrt(uc**2-u**2)\n",
+ "N=V**2/2.0\n",
+ "\n",
+ "#Result\n",
+ "print\"(i) The fiber V-number is\",round(V,2)\n",
+ "print\"(ii) The number of modes is\",round(N,0),\"Modes\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(i) The fiber V-number is 12.58\n",
+ "(ii) The number of modes is 79.0 Modes\n"
+ ]
+ }
+ ],
+ "prompt_number": 93
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.10 Page no 187"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "uf=1.48\n",
+ "uc=1.46\n",
+ "w=0.82 #micro m\n",
+ "a=25 \n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "V=2*math.pi*a*math.sqrt(uf**2-uc**2)/w\n",
+ "N=V**2/2.0\n",
+ "\n",
+ "print\"Number of modes is\", round(N,0)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Number of modes is 1079.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 97
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.11 Page no 188"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "uf=1.48\n",
+ "u=1.46\n",
+ "c=3*10**8\n",
+ "\n",
+ "#Calculation\n",
+ "a=(uf-u)/uf\n",
+ "af=uf*1000*a/(c*(1-a))\n",
+ "t=af*20\n",
+ "\n",
+ "#Result\n",
+ "print\"Dispersion per kilometer of length is\", round(af*10**9,1),\"ns\"\n",
+ "print\"Total dispersion is\",round(t*10**6,2),\"ms\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Dispersion per kilometer of length is 67.6 ns\n",
+ "Total dispersion is 1.35 ms\n"
+ ]
+ }
+ ],
+ "prompt_number": 110
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.12 Page no 188"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=40 #ps/nm-Km\n",
+ "w=1.5 #nm\n",
+ "b=20 #Km\n",
+ "\n",
+ "#Calculation\n",
+ "A=a*w*b\n",
+ "\n",
+ "#Result\n",
+ "print\"Material dispersion is\",A*10**-3,\"ns\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Material dispersion is 1.2 ns\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.13 Page no 188"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "d=6.6 #ps/nm-Km\n",
+ "w=1.5 #nm\n",
+ "l=20 #Km\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "A=d*w*l\n",
+ "\n",
+ "#Result\n",
+ "print\"Wavelength dispersion is\",A,\"ps\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Wavelength dispersion is 198.0 ps\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.14 Page no 188"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Givem\n",
+ "uc=1.5\n",
+ "c=3.0*10**5 #Km/s\n",
+ "z=6\n",
+ "\n",
+ "#Calculation\n",
+ "u=uc/100.0\n",
+ "a=(uc*z/c)*(uc/(uc-u)-1)\n",
+ "\n",
+ "#Result\n",
+ "print\"Delay difference is\", round(a*10**8,1),\"m sec\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Delay difference is 30.3 m sec\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.15 Page no 189"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=3.5 #db/Km\n",
+ "P1=0.5 #mW\n",
+ "L=4\n",
+ "b=25.11\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "N=a*L\n",
+ "P0=P1/b\n",
+ "\n",
+ "#Result\n",
+ "print \"Power level is\",round(P0*10**3,1),\"micro W\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Power level is 19.9 micro W\n"
+ ]
+ }
+ ],
+ "prompt_number": 21
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.16 Page no 189"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "uc=1.558\n",
+ "a=0.026\n",
+ "z=10**3 #m\n",
+ "c=3*10**8\n",
+ "\n",
+ "#Calculation\n",
+ "D=uc*a*z/(c*(1-a))\n",
+ "D1=D*10\n",
+ "\n",
+ "#Result\n",
+ "print\"Dispersion/Km is\",round(D*10**8,1),\"n sec\"\n",
+ "print\"Total dispersion in 10 Km is\",round(D1*10**8,1),\"n sec\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Dispersion/Km is 13.9 n sec\n",
+ "Total dispersion in 10 Km is 138.6 n sec\n"
+ ]
+ }
+ ],
+ "prompt_number": 32
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 5.17 Page no 189"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "uc=1.5\n",
+ "a=0.026\n",
+ "c=3*10**8\n",
+ "\n",
+ "#Calculation\n",
+ "A=(uc*a**2*1000)/(8*c)\n",
+ "\n",
+ "#Result\n",
+ "print\"Maximum dispersion is\",round(A*10**9,2),\"ns/Km\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Maximum dispersion is 0.42 ns/Km\n"
+ ]
+ }
+ ],
+ "prompt_number": 37
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_physics_for_engineers_by_S.P.Taneja/chapter6.ipynb b/Modern_physics_for_engineers_by_S.P.Taneja/chapter6.ipynb new file mode 100644 index 00000000..43d3d9d3 --- /dev/null +++ b/Modern_physics_for_engineers_by_S.P.Taneja/chapter6.ipynb @@ -0,0 +1,836 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:6ffb6fb5f2eac445aca13f38980506e3cf9076ac340f9f29d4a27dddedd73157"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 6 Oscillatory motion"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.1 Page no 218"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "A =0.05 #Amplitude of SHM in m\n",
+ "T =6.0 # period in sec\n",
+ "Xo=A\n",
+ "X =0.025\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "w =2*3.14/T\n",
+ "ph= math.asin (Xo/A)\n",
+ "t=(math.asin (X/Xo)-ph)/w \n",
+ "t1= abs (t)\n",
+ "\n",
+ "#Result\n",
+ "print\"Timeto move from equilibrium position is\",round(t1,1),\"sec\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Timeto move from equilibrium position is 1.0 sec\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.2 Page no 219"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "A =0.06 #Amplitude of SHM in m\n",
+ "T =31.4\n",
+ "\n",
+ "#Calculation\n",
+ "w =2*3.14/T\n",
+ "V=A*w\n",
+ "\n",
+ "#Result\n",
+ "print\"Maximum velocity is\",V,\"m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Maximum velocity is 0.012 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.3 Page no 219"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "A=0.05 #m\n",
+ "T=2 #S\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "x=A*math.sin(math.pi/3.0)\n",
+ "v=A*math.pi*math.sqrt(1-(x**2/A**2))\n",
+ "\n",
+ "#Result\n",
+ "print\"Displacement is\",round(x*10**2,1),\"cm\"\n",
+ "print\"Velocity is\", round(v*10**2,2),\"cm/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Displacement is 4.3 cm\n",
+ "Velocity is 7.85 cm/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.4 Page no 219"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "l =1 # length of pendulum in m\n",
+ "m =1 #mass of pendulum in kg\n",
+ "g =9.8\n",
+ "\n",
+ "#Calculation\n",
+ "T =2*3.14* math.sqrt (l/g)\n",
+ "\n",
+ "#Result\n",
+ "print\"Period of oscillation is\",round(T,1),\"sec\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Period of oscillation is 2.0 sec\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.5 Page no 220"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "m1 =8 #mass suspended in kg\n",
+ "l =0.32\n",
+ "m =0.50\n",
+ "g =9.8\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "k=m1*g/l\n",
+ "T=2*math.pi* math.sqrt (m/k)\n",
+ "\n",
+ "#Result\n",
+ "print\"K=\",k,\"N m\"\n",
+ "print\"Time period of the oscillation is\",round(T,2),\"sec\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "K= 245.0 N m\n",
+ "Time period of the oscillation is 0.28 sec\n"
+ ]
+ }
+ ],
+ "prompt_number": 26
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.6 Page no 220"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "K=98.0 #N/m\n",
+ "x=20 #cm\n",
+ "g=9.8 #m/sec**2\n",
+ "\n",
+ "#Calculation\n",
+ "F=K*x/100.0\n",
+ "m=K*x/(100*g)\n",
+ "\n",
+ "#Result\n",
+ "print\"Restoring force is\",F,\"N\"\n",
+ "print\"Mass is\",m,\"Kg\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Restoring force is 19.6 N\n",
+ "Mass is 2.0 Kg\n"
+ ]
+ }
+ ],
+ "prompt_number": 31
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.7 Page no 220"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "T=57\n",
+ "l=79\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "g=4*math.pi**2*l*T**2/(100*100**2)\n",
+ "\n",
+ "#Result\n",
+ "print\"Value of g is\", round(g,2),\"m/s**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Value of g is 10.13 m/s**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 35
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.8 Page no 221"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "m=4\n",
+ "T=55\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "K=(2*math.pi*math.sqrt(m)*55/100.0)**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Stiffness factor is\", round(K,2),\"N/m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Stiffness factor is 47.77 N/m\n"
+ ]
+ }
+ ],
+ "prompt_number": 39
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.9 Page no 221"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "K=89.2 # N/m\n",
+ "T=1 #S\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "M=(T*math.sqrt(K)/(2*math.pi))**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Mass is\", round(M,2),\"Kg\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Mass is 2.26 Kg\n"
+ ]
+ }
+ ],
+ "prompt_number": 45
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.10 Page no 221"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "m=4 #Kg\n",
+ "g=9.8 #m/sec**2\n",
+ "x=16.0\n",
+ "m1=0.5\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "K=m*g*100/x\n",
+ "T=2*math.pi*math.sqrt(m1/K)\n",
+ "\n",
+ "#Result\n",
+ "print\"Time period is\", round(T,2),\"Sec\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Time period is 0.28 Sec\n"
+ ]
+ }
+ ],
+ "prompt_number": 49
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.11 Page no 222"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "T=50.0 #S\n",
+ "\n",
+ "#Calculation\n",
+ "t=1/(2*T)\n",
+ "t1=1/t\n",
+ "t2=t1/2.0\n",
+ "\n",
+ "#Result\n",
+ "print\"Time is\", t2,\"Second\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Time is 50.0 Second\n"
+ ]
+ }
+ ],
+ "prompt_number": 55
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.12 Page no 222"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=200.0\n",
+ "b=2.3\n",
+ "\n",
+ "#Calculation\n",
+ "y=b/a\n",
+ "D=1/y\n",
+ "\n",
+ "#Result\n",
+ "print\"(i) Damping constant is\", y\n",
+ "print\"(ii) Decay modulus is\",round(D,1),\"Second\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(i) Damping constant is 0.0115\n",
+ "(ii) Decay modulus is 87.0 Second\n"
+ ]
+ }
+ ],
+ "prompt_number": 61
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.13 Page no 223"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=20 #cm\n",
+ "b=2.0\n",
+ "x=100.0\n",
+ "y=2.3\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "w=a/b\n",
+ "w1=y/x\n",
+ "\n",
+ "#Result\n",
+ "print\"Logarithmic decrement of the system is\", w1"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Logarithmic decrement of the system is 0.023\n"
+ ]
+ }
+ ],
+ "prompt_number": 64
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.14 Page no 223"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "n=2\n",
+ "m=0.3\n",
+ "Q=60.0\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "K=16*math.pi**2*m\n",
+ "p=2*math.pi*n*m/Q\n",
+ "\n",
+ "#Result\n",
+ "print\"Force constant is\",round(K,2),\"N/m\"\n",
+ "print\"Mechanical resistance is\",round(p,5),\"Kg/m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Force constant is 47.37 N/m\n",
+ "Mechanical resistance is 0.06283 Kg/m\n"
+ ]
+ }
+ ],
+ "prompt_number": 70
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.15 Page no 223"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "Q=10**4\n",
+ "b=500\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "a=math.log(10)*Q/(b*math.pi)\n",
+ "\n",
+ "#Result\n",
+ "print\"Time interval is\", round(a,2),\"Seconds\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Time interval is 14.66 Seconds\n"
+ ]
+ }
+ ],
+ "prompt_number": 77
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.16 Page no 224"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "Q=2*10**3\n",
+ "v =240\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "w =2*3.14*v\n",
+ "r= math.exp (2)\n",
+ "T=Q/w\n",
+ "t =2* T*log(r)\n",
+ "\n",
+ "#Result\n",
+ "print\"Time to become for new amplitude is\",round(t,1),\"sec\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Time to become for new amplitude is 5.3 sec\n"
+ ]
+ }
+ ],
+ "prompt_number": 6
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.17 Page no 224"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "A0=10.0\n",
+ "T=200\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "y=math.log(10)/A0\n",
+ "t=1/(2*y)\n",
+ "Q=2*math.pi*t*T\n",
+ "t1=t*math.log(A0)\n",
+ "\n",
+ "#Result\n",
+ "print\"(i) Relaxation time is\", round(t,3),\"Second\"\n",
+ "print\"(ii) Quality factor is\", round(Q,0)\n",
+ "print\"(iii) Time is\",t1,\"Second\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(i) Relaxation time is 2.171 Second\n",
+ "(ii) Quality factor is 2729.0\n",
+ "(iii) Time is 5.0 Second\n"
+ ]
+ }
+ ],
+ "prompt_number": 87
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.18 Page no 225"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "E=10**3\n",
+ "w=256\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "t=E/(2*math.pi*w)\n",
+ "n=E/(2*math.pi)\n",
+ "\n",
+ "#Result\n",
+ "print\"Time is\", round(t,2),\"Sec\"\n",
+ "print\"Number of oscillations is\",round(n,0)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Time is 0.62 Sec\n",
+ "Number of oscillations is 159.0\n"
+ ]
+ }
+ ],
+ "prompt_number": 93
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.20 Page no 226"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "Ao =0.1 #amplitude at minimum frequency in mm\n",
+ "A =100 #maximum amplitude\n",
+ "w =100\n",
+ "\n",
+ "#Calculation\n",
+ "Q=A/Ao\n",
+ "T=Q/w\n",
+ "hw =1/(2* T)\n",
+ "\n",
+ "#Result\n",
+ "print\"(a) Quality factor is\",Q\n",
+ "print\"(b) Energy decay time is\",T,\"sec\"\n",
+ "print\"(c) Half width of power resonance curve is\",hw,\"rad/sec\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) Quality factor is 1000.0\n",
+ "(b) Energy decay time is 10.0 sec\n",
+ "(c) Half width of power resonance curve is 0.05 rad/sec\n"
+ ]
+ }
+ ],
+ "prompt_number": 20
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.21 Page no 226"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "m =0.1 #suspended mass in kg\n",
+ "k =100 #force constant in N/m\n",
+ "Fo =2\n",
+ "p =1\n",
+ "W =50\n",
+ "a=1000\n",
+ "a1=2500\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "Wo= math.sqrt (k/m)\n",
+ "f=Fo/m\n",
+ "d=p /(2* m)\n",
+ "B=f/ (math.sqrt((a-a1)**2+(k*W**2)))\n",
+ "delta = math.atan(2*d*W/( Wo**2-W**2) )*180/3.14+180\n",
+ "\n",
+ "#Result\n",
+ "print\"Amplitude of oscillation is\",round(B,4),\"m\"\n",
+ "print\"Relative phase is\",round(delta,1),\"degree\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Amplitude of oscillation is 0.0126 m\n",
+ "Relative phase is 161.6 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 110
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 6.22 Page no 227"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "Q=50\n",
+ "a=1.4\n",
+ "\n",
+ "#Calculation\n",
+ "B=1/a\n",
+ "\n",
+ "#Result\n",
+ "print\"Value of B/Bmax is\",round(B,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Value of B/Bmax is 0.71\n"
+ ]
+ }
+ ],
+ "prompt_number": 113
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_physics_for_engineers_by_S.P.Taneja/chapter7.ipynb b/Modern_physics_for_engineers_by_S.P.Taneja/chapter7.ipynb new file mode 100644 index 00000000..146ee4b3 --- /dev/null +++ b/Modern_physics_for_engineers_by_S.P.Taneja/chapter7.ipynb @@ -0,0 +1,297 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:bf713428376b6af39f07d5dc1c02aba4029400f6d14863b8b2704c0654b7ab69"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 7 Electromagnetic theory"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.4 Page no 283"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "u =4*10**-7*3.14 #permeability ( free space ) in H/m\n",
+ "e =8.85*10**-12\n",
+ "H =1\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "E=H* math.sqrt (u/e)\n",
+ "\n",
+ "#Result\n",
+ "print\"Magnitude of energy of plane wave is\",round(E,2),\"V/m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Magnitude of energy of plane wave is 376.72 V/m\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.5 Page no 283"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "ur =1 #relative permeability\n",
+ "er =2\n",
+ "uo =(4*10**-7*3.14 )\n",
+ "eo =8.85*10**-12\n",
+ "Eo =5\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "u=ur*uo\n",
+ "e=er*eo\n",
+ "Z= math.sqrt (u/e)\n",
+ "Ho=Eo/Z\n",
+ "v =1/(math.sqrt (u*e))\n",
+ "\n",
+ "#Result\n",
+ "print\"(i) Impedence of medium is\",round(Z,2),\"ohm\"\n",
+ "print\"(ii) Intensity of magnetic field is\",round(Ho*10**2,3),\"*10**-2 A/m\"\n",
+ "print\"(iii) Velocity of magnetic field is\",round(v*10**-8,2),\"m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(i) Impedence of medium is 266.38 ohm\n",
+ "(ii) Intensity of magnetic field is 1.877 *10**-2 A/m\n",
+ "(iii) Velocity of magnetic field is 2.12 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.6 Page no 284"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "f=3.0*10**11 #frequency of wave in Hz\n",
+ "c=3.0*10**8\n",
+ "Eo =50\n",
+ "\n",
+ "#Calculation\n",
+ "w=c/f\n",
+ "Bo=Eo/c\n",
+ "\n",
+ "#Result\n",
+ "print\"(i) Wavelength of wave is\",w,\"m\"\n",
+ "print\"(ii) Approx amplitude of oscillating magnetic field is\",round(Bo*10**7,2)*10**-7,\"T\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(i) Wavelength of wave is 0.001 m\n",
+ "(ii) Approx amplitude of oscillating magnetic field is 1.67e-07 T\n"
+ ]
+ }
+ ],
+ "prompt_number": 5
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.7 Page no 284"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "r =1.5*10**11 #distance from sun to earth\n",
+ "P =3.8*10**26 #power radiated by sun\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "N=(P /(4*math.pi*(r**2) ))*60/4.2*10**4\n",
+ "N1= ceil (N)\n",
+ "\n",
+ "#Result\n",
+ "print\"Average solar energy is\",round(N1*10**-8,0),\"cal/cm2.min\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Average solar energy is 2.0 cal/cm2.min\n"
+ ]
+ }
+ ],
+ "prompt_number": 15
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.8 Page no 284"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "p=3.8*10**26 #watts\n",
+ "r=7*10**8 #m\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "N=p/(4*math.pi*((r)**2))\n",
+ "\n",
+ "#Result\n",
+ "print\"The magnitude of poynting vactor at the surface of the sun is\",round(N*10**-7,3),\"10**7\",\"watt/m**2\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The magnitude of poynting vactor at the surface of the sun is 6.171 10**7 watt/m**2\n"
+ ]
+ }
+ ],
+ "prompt_number": 30
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.9 Page no 285"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=2\n",
+ "b=4.18*10**4\n",
+ "c=60.0\n",
+ "d=376.72\n",
+ "\n",
+ "#Calculation\n",
+ "import math \n",
+ "E=a*b/c\n",
+ "E1=math.sqrt(E*d)\n",
+ "E2=E1/d\n",
+ "H=E1*math.sqrt(2)\n",
+ "H1=E2*math.sqrt(2)\n",
+ "\n",
+ "#Result \n",
+ "print\"The amplitudes of electrons is\",round(H,0),\"V/m\"\n",
+ "print\"The amplitudes of magnetic field is\",round(H1,3),\"Amp/m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The amplitudes of electrons is 1025.0 V/m\n",
+ "The amplitudes of magnetic field is 2.72 Amp/m\n"
+ ]
+ }
+ ],
+ "prompt_number": 68
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 7.10 Page no 285"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "v =0.62 #velocity factor of coaxial\n",
+ "\n",
+ "#Calculation\n",
+ "Er =1/v**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Dielecric constant of instulator is\",round(Er,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Dielecric constant of instulator is 2.6\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_physics_for_engineers_by_S.P.Taneja/chapter8.ipynb b/Modern_physics_for_engineers_by_S.P.Taneja/chapter8.ipynb new file mode 100644 index 00000000..c4a50a17 --- /dev/null +++ b/Modern_physics_for_engineers_by_S.P.Taneja/chapter8.ipynb @@ -0,0 +1,212 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:6ebc3dec4ac351e74bbbf4f44c04359a8b31dcd4a15a5034b45dec5fef6dce79"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 8 Dielectrics"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.1 Page no 303"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "k =3 #Dielectric constant\n",
+ "E=1*10**6\n",
+ "e =8.85*10**-12\n",
+ "\n",
+ "#Calculation\n",
+ "P=e*(k -1)*E\n",
+ "D=k*e*E\n",
+ "ED =0.5*k*e*E**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Polarisation is\",P,\"C/m**2\"\n",
+ "print\"Displacement is\",D,\"C/m**2\"\n",
+ "print\"Energy density is\",round(ED,2),\"joule s/m**3\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Polarisation is 1.77e-05 C/m**2\n",
+ "Displacement is 2.655e-05 C/m**2\n",
+ "Energy density is 13.27 joule s/m**3\n"
+ ]
+ }
+ ],
+ "prompt_number": 1
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.2 Page no 303"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "D=5*10**-4\n",
+ "P=4*10**-4\n",
+ "V =0.5\n",
+ "\n",
+ "#Calculation\n",
+ "E=D-P\n",
+ "k=D/E\n",
+ "p=P*V\n",
+ "\n",
+ "#Result\n",
+ "print\"Dielectric constant is\",k\n",
+ "print\"Total dipole constant is\",p*10**4,\"*10**-4 m**5\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Dielectric constant is 5.0\n",
+ "Total dipole constant is 2.0 *10**-4 m**5\n"
+ ]
+ }
+ ],
+ "prompt_number": 3
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.3 Page no 303"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "k =1.000038\n",
+ "\n",
+ "#Calculation\n",
+ "x=k-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Electric susceptibility is\",x"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Electric susceptibility is 3.8e-05\n"
+ ]
+ }
+ ],
+ "prompt_number": 4
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.4 Page no 303"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "E =100\n",
+ "k =1.000074\n",
+ "e =8.85*10**-12\n",
+ "p =22.4*10**-3\n",
+ "a=6*10**23\n",
+ "\n",
+ "#Calculation\n",
+ "N=a/p \n",
+ "p=e*(k -1) *E/N\n",
+ "\n",
+ "#Result\n",
+ "print\"Total moment is\",round(p*10**40,2)*10**-40,\"cm\"\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Total moment is 2.445e-39 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 7
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 8.6 Page no 304"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "K=1.329\n",
+ "\n",
+ "#Calculation\n",
+ "k=K-1\n",
+ "\n",
+ "#Result\n",
+ "print\"Electric susceptibility is\",k"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Electric susceptibility is 0.329\n"
+ ]
+ }
+ ],
+ "prompt_number": 8
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_physics_for_engineers_by_S.P.Taneja/chapter9.ipynb b/Modern_physics_for_engineers_by_S.P.Taneja/chapter9.ipynb new file mode 100644 index 00000000..771c3614 --- /dev/null +++ b/Modern_physics_for_engineers_by_S.P.Taneja/chapter9.ipynb @@ -0,0 +1,849 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:eab5e28552df3435319f7a568a922a4980f0e1d7df3bbe3b5b33bae52cc8991b"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 9 Special Theory of relativity"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.1 Page no 329"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "d=11.5 #m\n",
+ "w=5*10**-7\n",
+ "v=3*10**4 #m/s\n",
+ "c=3*10**8\n",
+ "\n",
+ "#Calculation\n",
+ "a=2*d*v**2/(w*c**2)\n",
+ "\n",
+ "#Result\n",
+ "print\"Fringe shift is\",a,\"Fringes\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Fringe shift is 0.46 Fringes\n"
+ ]
+ }
+ ],
+ "prompt_number": 2
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.4 Page no 331"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "l=6371\n",
+ "v=30*10**3\n",
+ "c=3.0*10**8\n",
+ "\n",
+ "#Calculation\n",
+ "A=0.5*2*l*(v/c)**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Change in length in the diameter is\",round(A*10**5,2),\"*10**2 m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Change in length in the diameter is 6.37 *10**2 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 11
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.5 Page no 331"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=60.0\n",
+ "\n",
+ "#Calculation\n",
+ "v=(a**2+1)*(a**2-1)/a**4\n",
+ "\n",
+ "#Result\n",
+ "print\"Maximum speed is\",v,\"c\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Maximum speed is 0.99999992284 c\n"
+ ]
+ }
+ ],
+ "prompt_number": 17
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.6 Page no 332"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "c=3*10**8\n",
+ "a=0.95\n",
+ "b=20\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "t=b*c/(a*c)\n",
+ "L=math.sqrt(1-a**2)*b\n",
+ "T=L/a\n",
+ "\n",
+ "#Result\n",
+ "print\"(a) time taken to cover the distance of star from earth\", round(t,2),\"Years\"\n",
+ "print\"(b) Time taken is\",round(T,2),\"Years\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) time taken to cover the distance of star from earth 21.05 Years\n",
+ "(b) Time taken is 6.57 Years\n"
+ ]
+ }
+ ],
+ "prompt_number": 31
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.7 Page no 332"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "L=5 #m\n",
+ "v=0.6\n",
+ "c=1\n",
+ "t=10 #Second\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "L0=L/math.sqrt(1-(v/c)**2)\n",
+ "T=t*math.sqrt(1-(v/c)**2)\n",
+ "\n",
+ "#Result\n",
+ "print\"(a) Length is\", L0,\"m\"\n",
+ "print\"(b) Time is\",T,\"Seconds\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) Length is 6.25 m\n",
+ "(b) Time is 8.0 Seconds\n"
+ ]
+ }
+ ],
+ "prompt_number": 36
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.8 Page no 332"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "L0=120\n",
+ "v=0.95 #C\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "L=L0*math.sqrt(1-v**2)\n",
+ "t=L/v\n",
+ "T=2*t\n",
+ "\n",
+ "#Result\n",
+ "print\"Time taken is\",round(T,2),\"Years\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Time taken is 78.88 Years\n"
+ ]
+ }
+ ],
+ "prompt_number": 40
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.10 Page no 333"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "t=24*60\n",
+ "v=1440\n",
+ "c=1442.0\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "v=math.sqrt(1-(v/c)**2)\n",
+ "\n",
+ "#Result\n",
+ "print\"Speed is\",round(v,4),\"C\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Speed is 0.0526 C\n"
+ ]
+ }
+ ],
+ "prompt_number": 44
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.11 Page no 333"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "B=1.5 #T\n",
+ "v=0.5 #c\n",
+ "m0=6.1*10**-31 #Kg\n",
+ "c=3.0*10**8\n",
+ "\n",
+ "#Calculation\n",
+ "r=(m0*v)/(B*e*math.sqrt(1-(v/c)**2))\n",
+ "\n",
+ "#Result\n",
+ "print round(r*10**32,1),\"*10**-4 m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "7.5 *10**-4 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 57
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.12 Page no 333"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "m=8.0\n",
+ "c=3*10**8 #m/s\n",
+ "v=1\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "v=math.sqrt((v-(v/m)**2)*c**2)\n",
+ "\n",
+ "#Result\n",
+ "print\"Speed of particle is\", round(v*10**-8,3),\"*10**8 m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Speed of particle is 2.976 *10**8 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 63
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.13 Page no 334"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "d=1.5*10**11\n",
+ "a=1.35*10**3\n",
+ "c=3.0*10**8\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "E=4*math.pi*d**2*a\n",
+ "m=E/c**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Decrease in the mass of sun per second is\",round(m*10**-9,1),\"*10**9 Kg\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Decrease in the mass of sun per second is 4.2 *10**9 Kg\n"
+ ]
+ }
+ ],
+ "prompt_number": 68
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.14 Page no 334"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "v=0.8 #c\n",
+ "m0=2.5*10**-28\n",
+ "c=1\n",
+ "C=3*10**8\n",
+ "V=2.4*10**8\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "m=m0/(math.sqrt(1-(v/c)**2))\n",
+ "T=(m-m0)*C**2\n",
+ "T1=m0*V**2/2.0\n",
+ "\n",
+ "#Result\n",
+ "print \"Kinetic energy is\",T1,\"J\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Kinetic energy is 7.2e-12 J\n"
+ ]
+ }
+ ],
+ "prompt_number": 73
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.15 Page no 334"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "E=3.2*10**-13 #J\n",
+ "c=3.0*10**8\n",
+ "m0=9.1*10**-31\n",
+ "\n",
+ "#Calculation\n",
+ "m=E/c**2\n",
+ "v=(1-(m0/m)**2)\n",
+ "\n",
+ "#Result\n",
+ "print\"Mass is\", round(m*10**30,2)*10**-30,\"Kg\"\n",
+ "print\"Speed is\",round(v,3),\"C\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Mass is 3.56e-30 Kg\n",
+ "Speed is 0.934 C\n"
+ ]
+ }
+ ],
+ "prompt_number": 89
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.16 Page no 335"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "KE=2.5 #Mev\n",
+ "m=0.511 \n",
+ "\n",
+ "#Calculation\n",
+ "E=KE+m\n",
+ "\n",
+ "#Result\n",
+ "print\"Total energy is\",E,\"Mev\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Total energy is 3.011 Mev\n"
+ ]
+ }
+ ],
+ "prompt_number": 91
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.17 Page no 335"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "v=2.0\n",
+ "c=3.8*10**8\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "V=math.sqrt(1-(1/v)**2)\n",
+ "\n",
+ "#Result\n",
+ "print\"Speed of particle is\", round(V,3),\"c\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Speed of particle is 0.866 c\n"
+ ]
+ }
+ ],
+ "prompt_number": 105
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.18 Page no 335"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "e=13.6*1.6*10**-19 #J\n",
+ "c=3*10**8\n",
+ "\n",
+ "#Calculation\n",
+ "m=e/c**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Loss of mass is\",round(m*10**35,2)*10**-35,\"Kg\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Loss of mass is 2.42e-35 Kg\n"
+ ]
+ }
+ ],
+ "prompt_number": 110
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.19 Page no 335"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "E=8*10**-11 #J\n",
+ "c=3.0*10**8\n",
+ "\n",
+ "#Calculation\n",
+ "m=E/c**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Mass of proton is\", round(m*10**28,2)*10**-23,\"Kg\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Mass of proton is 8.89e-23 Kg\n"
+ ]
+ }
+ ],
+ "prompt_number": 116
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.20 Page no 336"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "m0=2.5*10**-28\n",
+ "c=9*10**16\n",
+ "v=1.5*10**8\n",
+ "c=3.0*10**8\n",
+ "e=1.16*10**-13\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "X=math.sqrt(1-(v/c))\n",
+ "T=(m0*c*((1/X)-1))/e\n",
+ "\n",
+ "#Result\n",
+ "print\"Kinetic energy is\",round(T*10**8,0),\"Mev\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Kinetic energy is 27.0 Mev\n"
+ ]
+ }
+ ],
+ "prompt_number": 131
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.21 Page no 336"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "m=9.1*10**-31 #Kg\n",
+ "c=3*10**8\n",
+ "e=1.6*10**-19\n",
+ "\n",
+ "#Calculation\n",
+ "E=(m*c**2)/e\n",
+ "\n",
+ "#Result\n",
+ "print\"Energy is\",round(E*10**-6,2),\"Mev\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Energy is 0.51 Mev\n"
+ ]
+ }
+ ],
+ "prompt_number": 143
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.22 Page no 336"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#given\n",
+ "m0=1.67*10**-27\n",
+ "v=0.8\n",
+ "c=3*10**8\n",
+ "e=1.6*10**-19\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "E=(m0*c**2/(math.sqrt(1-v**2)))/e\n",
+ "\n",
+ "#Result\n",
+ "print\"Energy is\",round(E*10**-6,0),\"Mev\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Energy is 1566.0 Mev\n"
+ ]
+ }
+ ],
+ "prompt_number": 148
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.23 Page no 337"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "v=2.983*10**8 #m/s\n",
+ "m0=9.101*10**-31\n",
+ "v=100\n",
+ "c=101.0\n",
+ "C=2.998*10**8\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "V=math.sqrt(v/c)\n",
+ "V1=V*C\n",
+ "m=m0/(math.sqrt(1-(v/c)))\n",
+ "E=m*C**2\n",
+ "\n",
+ "#Result\n",
+ "print\"Energy is\",E\n",
+ "print\"Velocity is\", round(V1*10**-8,3),\"*10**8 m/s\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Energy is 8.2207806109e-13\n",
+ "Velocity is 2.983 *10**8 m/s\n"
+ ]
+ }
+ ],
+ "prompt_number": 158
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.24 Page no 337"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "m0=5*10**-6 #Kg\n",
+ "C=2.998*10**8\n",
+ "\n",
+ "#Calculation\n",
+ "E=m0*C\n",
+ "\n",
+ "#Result\n",
+ "print\"Energy is\",E*10**-2,\"*10**2 Joules\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Energy is 14.99 *10**2 Joules\n"
+ ]
+ }
+ ],
+ "prompt_number": 161
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 9.25 Page no 337"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "m=1.67*10**-27 #Kg\n",
+ "c=3*10**8\n",
+ "e=1.6*10**-19\n",
+ "\n",
+ "#Calculation\n",
+ "E=m*c**2/e\n",
+ "\n",
+ "#Result\n",
+ "print\"Energy is\",round(E*10**-6,0),\"Mev\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Energy is 939.0 Mev\n"
+ ]
+ }
+ ],
+ "prompt_number": 166
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_physics_for_engineers_by_S.P.Taneja/chpater3.ipynb b/Modern_physics_for_engineers_by_S.P.Taneja/chpater3.ipynb new file mode 100644 index 00000000..e621cb4e --- /dev/null +++ b/Modern_physics_for_engineers_by_S.P.Taneja/chpater3.ipynb @@ -0,0 +1,822 @@ +{
+ "metadata": {
+ "name": "",
+ "signature": "sha256:fe61a4917a4e7c9ed97f1b980c09da72254242a6ca941fad2a3f75243a636dcb"
+ },
+ "nbformat": 3,
+ "nbformat_minor": 0,
+ "worksheets": [
+ {
+ "cells": [
+ {
+ "cell_type": "heading",
+ "level": 1,
+ "metadata": {},
+ "source": [
+ "Chapter 3 Polarization of light"
+ ]
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.1 Page no 130"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "u =1.54 #refrective index of glass\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "i= math.atan(u)*180/3.14\n",
+ "r=90-i\n",
+ "\n",
+ "#Result\n",
+ "print\"Angle of refraction is\",round(r,1),\"degree\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Angle of refraction is 33.0 degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 10
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.2 Page no 130"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "i= 60\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "u= math.tan(i*3.14/180.0)\n",
+ "\n",
+ "#Result\n",
+ "print\"Refractive index of glass is\",round(u,3)\n"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Refractive index of glass is 1.73\n"
+ ]
+ }
+ ],
+ "prompt_number": 14
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.3 Page no 130"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "u=1.5697\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "up=math.atan(u)*180/3.14\n",
+ "\n",
+ "#Result\n",
+ "print\"Angle is\", round(up,1),\"Degree\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Angle is 57.5 Degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 18
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.4 Page no 130"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "u1=1.0\n",
+ "u2=1.54\n",
+ "u3=1.33\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "u=u2/u1\n",
+ "a=math.atan(u)*180/3.14\n",
+ "U1=u1/u2\n",
+ "a2=math.atan(U1)*180/3.14\n",
+ "U2=u2/u3\n",
+ "a3=math.atan(U2)*180/3.14\n",
+ "U3=u3/u2\n",
+ "a4=math.atan(U3)*180/3.14\n",
+ "U4=u3/u1\n",
+ "a5=math.atan(U4)*180/3.14\n",
+ "U5=u1/u3\n",
+ "a6=math.atan(U5)*180/3.14\n",
+ "\n",
+ "#Result\n",
+ "print\"(i) Polarizing angle from air to glass is\",round(a,0),\"Degree\"\n",
+ "print\"(ii) Plolarizing angle from glass to air is\",round(a2,0),\"Degree\"\n",
+ "print\"(iii) Polarizing angle from water to glass is\",round(a3,2),\"Degree\"\n",
+ "print\"(iv) Polarizing angle from glass to water is\",round(a4,2),\"Degree\"\n",
+ "print\"(v) Polarizing angle from air to water is\",round(a5,2),\"Degree\"\n",
+ "print\"(vi) Polarizing angle from water to air is\",round(a6,2),\"Degree\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(i) Polarizing angle from air to glass is 57.0 Degree\n",
+ "(ii) Plolarizing angle from glass to air is 33.0 Degree\n",
+ "(iii) Polarizing angle from water to glass is 49.21 Degree\n",
+ "(iv) Polarizing angle from glass to water is 40.84 Degree\n",
+ "(v) Polarizing angle from air to water is 53.09 Degree\n",
+ "(vi) Polarizing angle from water to air is 36.96 Degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 38
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.5 Page no 131"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "uglass=1.54\n",
+ "uwater=1.33\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "u=uglass/uwater\n",
+ "i=math.atan(u)*180/3.14\n",
+ "u1=uwater/uglass\n",
+ "i1=math.atan(u1)*180/3.14\n",
+ "\n",
+ "#Result\n",
+ "print\"The polarizing angle for water to glass interface\", round(i1,1),\"degree is large\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "The polarizing angle for water to glass interface 40.8 degree is large\n"
+ ]
+ }
+ ],
+ "prompt_number": 43
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.6 Page no 131"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=30 #Degree\n",
+ "a1=45\n",
+ "a2=60\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "I1=(math.cos(a*3.14/180.0))**2\n",
+ "I2=(math.cos(a1*3.14/180.0))**2\n",
+ "I3=(math.cos(a2*3.14/180.0))**2\n",
+ "\n",
+ "#Result\n",
+ "print\"(a) Intensity of light when analyser is rotated through 30 degree is\", round(I1,2)\n",
+ "print\"(b) Intensity of light when analyser is rotated through 45 degree is\", round(I2,2)\n",
+ "print\"(c) Intensity of light when analyser is rotated through 30 degree is\", round(I3,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "(a) Intensity of light when analyser is rotated through 30 degree is 0.75\n",
+ "(b) Intensity of light when analyser is rotated through 45 degree is 0.5\n",
+ "(c) Intensity of light when analyser is rotated through 30 degree is 0.25\n"
+ ]
+ }
+ ],
+ "prompt_number": 51
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.7 Page no 132"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "A=3.0\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "x=1/(math.sqrt(A))\n",
+ "a=math.acos(x)*180/3.14\n",
+ "\n",
+ "#Result\n",
+ "print\"Angle is\", round(a,2),\"Degree\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Angle is 54.76 Degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 60
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.8 Page no 132"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=30 #Degree\n",
+ "b=60\n",
+ "\n",
+ "#Calculation\n",
+ "import math\n",
+ "I=(math.cos(b*3.14/180.0)**2)/(math.cos(a*3.14/180.0)**2)\n",
+ "\n",
+ "#Result\n",
+ "print\"Intensity ratio is\",round(I,2)"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Intensity ratio is 0.33\n"
+ ]
+ }
+ ],
+ "prompt_number": 64
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.9 Page no 132"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "L=6000*10**-8\n",
+ "u0=1.55\n",
+ "ue=1.54\n",
+ "\n",
+ "#Calculation\n",
+ "t=L/(2*(u0-ue))\n",
+ "\n",
+ "#Result\n",
+ "print\"Thickness is\",t,\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Thickness is 0.003 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 66
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.10 Page no 133"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "Uo =1.54\n",
+ "r =1.007\n",
+ "Ue=r*Uo\n",
+ "w =5893*10**-10\n",
+ "\n",
+ "#Calculation\n",
+ "t=w /(2*( Uo -Ue))\n",
+ "t= abs (t)\n",
+ "\n",
+ "print\"Thickness of halfwave plate is\",round(t*10**2,5),\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Thickness of halfwave plate is 0.00273 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 77
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.11 Page no 133"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "Uo =1.652 #refractive index for O ray\n",
+ "Ue =1.488\n",
+ "w =546*10**-9\n",
+ "\n",
+ "#Calculation\n",
+ "p=w/2.0\n",
+ "t=w /(4.0*( Uo -Ue))\n",
+ "t1=t *100\n",
+ "\n",
+ "#Result\n",
+ "print\"Thickness of quarterwave plate is\",round(t1*10**5,2)*10**-5,\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Thickness of quarterwave plate is 8.32e-05 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 23
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.12 Page no 133"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "Uo =1.658\n",
+ "Ue =1.486\n",
+ "w =589*10**-9\n",
+ "n =1\n",
+ "\n",
+ "#Calculation\n",
+ "t =(2*n -1)*w /(4.0*( Uo -Ue))\n",
+ "t1=t *100\n",
+ "\n",
+ "#Result\n",
+ "print\"Thickness of calcite plate is\",round(t1*10**5,2)*10**-5,\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Thickness of calcite plate is 8.56e-05 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 27
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.13 Page no 134"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "Ur =1.55810\n",
+ "Ul =1.55821\n",
+ "w=4*10**-7\n",
+ "d =0.002\n",
+ "\n",
+ "#Calculation\n",
+ "R= 3.14*d*(Ul -Ur)/w\n",
+ "R1=R *180/3.14\n",
+ "\n",
+ "#Result\n",
+ "print\"Amount of optional rotation is\",R1,\"Degree\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Amount of optional rotation is 99.0 Degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 29
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.14 Page no 134"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "Uo =1.5508\n",
+ "Ue =1.5418\n",
+ "w=5.0*10**-5\n",
+ "t =0.0032\n",
+ "\n",
+ "#Calculation\n",
+ "p =2*3.14*(Uo -Ue)*t/w\n",
+ "\n",
+ "#Result\n",
+ "print\"Phase retardation is\",round(p,2),\"radian\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Phase retardation is 3.62 radian\n"
+ ]
+ }
+ ],
+ "prompt_number": 81
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.15 Page no 134"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "w=5892*10**-10\n",
+ "u=0.01\n",
+ "a=0.009\n",
+ "\n",
+ "#Calculation\n",
+ "t=w/(2.0*a)\n",
+ "t1=w/(4.0*a)\n",
+ "\n",
+ "#Result\n",
+ "print\"Thickness of halfwave is\", round(t*10**8,0),\"*10**-8 m\"\n",
+ "print\"Thickness of quarter wave is\",round(t1*10**8,0),\"*10**-8 m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Thickness of halfwave is 3273.0 *10**-8 m\n",
+ "Thickness of quarter wave is 1637.0 *10**-8 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 97
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.16 Page no 135"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "ue=1.553\n",
+ "u0=1.544\n",
+ "w=5890*10**-10 #m\n",
+ "\n",
+ "#Calculation\n",
+ "t=w/(2*(ue-u0))\n",
+ "\n",
+ "#Result\n",
+ "print\"Thickness of halfwave plate is\",round(t*10**7,0),\"*10**-7 m\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Thickness of halfwave plate is 327.0 *10**-7 m\n"
+ ]
+ }
+ ],
+ "prompt_number": 102
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.17 Page no 135"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "theta =6.5\n",
+ "l =2\n",
+ "C =0.05\n",
+ "\n",
+ "#Calculation\n",
+ "S= theta /(l*C)\n",
+ "\n",
+ "#Result\n",
+ "print\"Specific rotation of sugar solution is\",S,\"Degree\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Specific rotation of sugar solution is 65.0 Degree\n"
+ ]
+ }
+ ],
+ "prompt_number": 103
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.18 Page no 135"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=20\n",
+ "b=35\n",
+ "c1=5\n",
+ "c2=10.0\n",
+ "\n",
+ "#Calculation\n",
+ "I2=b*c1/(a*c2)\n",
+ "\n",
+ "#Result\n",
+ "print\"Length of 10% solution is\", I2"
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Length of 10% solution is 0.875\n"
+ ]
+ }
+ ],
+ "prompt_number": 105
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.19 Page no 136"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "l =2 #length of solution in decimeter\n",
+ "theta =12\n",
+ "S =60.0\n",
+ "\n",
+ "#Calculation\n",
+ "C= theta /(S*l)\n",
+ "\n",
+ "#Result\n",
+ "print\"Strength of solution is\",C,\"gm/cc\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Strength of solution is 0.1 gm/cc\n"
+ ]
+ }
+ ],
+ "prompt_number": 34
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.20 Page no 136"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "a=20\n",
+ "l=3.5\n",
+ "s=60\n",
+ "\n",
+ "#Calculation\n",
+ "C=a/(l*s)\n",
+ "\n",
+ "#Result\n",
+ "print\"Strength of sugar solution is\",round(C*10**2,2),\"%\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Strength of sugar solution is 9.52 %\n"
+ ]
+ }
+ ],
+ "prompt_number": 111
+ },
+ {
+ "cell_type": "heading",
+ "level": 2,
+ "metadata": {},
+ "source": [
+ "Example 3.21 Page no 136"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "collapsed": false,
+ "input": [
+ "#Given\n",
+ "b =.172 #bifringe of plate\n",
+ "w=6*10**-7\n",
+ "\n",
+ "\n",
+ "#Calculation\n",
+ "t=w /(4*( b))\n",
+ "t1=t *100\n",
+ "\n",
+ "#Result\n",
+ "print\"Thickness of quarterwave plate is\",round(t1*10**5,2)*10**-5,\"cm\""
+ ],
+ "language": "python",
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "Thickness of quarterwave plate is 8.72e-05 cm\n"
+ ]
+ }
+ ],
+ "prompt_number": 39
+ }
+ ],
+ "metadata": {}
+ }
+ ]
+}
\ No newline at end of file diff --git a/Modern_physics_for_engineers_by_S.P.Taneja/screenshots/image1.png b/Modern_physics_for_engineers_by_S.P.Taneja/screenshots/image1.png Binary files differnew file mode 100644 index 00000000..65702688 --- /dev/null +++ b/Modern_physics_for_engineers_by_S.P.Taneja/screenshots/image1.png diff --git a/Modern_physics_for_engineers_by_S.P.Taneja/screenshots/image2.png b/Modern_physics_for_engineers_by_S.P.Taneja/screenshots/image2.png Binary files differnew file mode 100644 index 00000000..ea66e0b3 --- /dev/null +++ b/Modern_physics_for_engineers_by_S.P.Taneja/screenshots/image2.png diff --git a/Modern_physics_for_engineers_by_S.P.Taneja/screenshots/image3.png b/Modern_physics_for_engineers_by_S.P.Taneja/screenshots/image3.png Binary files differnew file mode 100644 index 00000000..70e1b1f6 --- /dev/null +++ b/Modern_physics_for_engineers_by_S.P.Taneja/screenshots/image3.png |