diff options
author | Trupti Kini | 2016-07-20 23:30:30 +0600 |
---|---|---|
committer | Trupti Kini | 2016-07-20 23:30:30 +0600 |
commit | c3a544006d60ca70e01072230696dd3cb6c17d67 (patch) | |
tree | 555884c513a9c3367d357d4d6c91a6af78ea508c /Principles_of_Physics_by_F.J.Bueche/Chapter24.ipynb | |
parent | ebfbaa96a859fbdfb15f2ea5e897840da206a840 (diff) | |
download | Python-Textbook-Companions-c3a544006d60ca70e01072230696dd3cb6c17d67.tar.gz Python-Textbook-Companions-c3a544006d60ca70e01072230696dd3cb6c17d67.tar.bz2 Python-Textbook-Companions-c3a544006d60ca70e01072230696dd3cb6c17d67.zip |
Added(A)/Deleted(D) following books
A Principles_of_Physics_by_F.J.Bueche/Chapter1.ipynb
A Principles_of_Physics_by_F.J.Bueche/Chapter10.ipynb
A Principles_of_Physics_by_F.J.Bueche/Chapter11.ipynb
A Principles_of_Physics_by_F.J.Bueche/Chapter13.ipynb
A Principles_of_Physics_by_F.J.Bueche/Chapter14.ipynb
A Principles_of_Physics_by_F.J.Bueche/Chapter15.ipynb
A Principles_of_Physics_by_F.J.Bueche/Chapter16.ipynb
A Principles_of_Physics_by_F.J.Bueche/Chapter17.ipynb
A Principles_of_Physics_by_F.J.Bueche/Chapter18.ipynb
A Principles_of_Physics_by_F.J.Bueche/Chapter19.ipynb
A Principles_of_Physics_by_F.J.Bueche/Chapter2.ipynb
A Principles_of_Physics_by_F.J.Bueche/Chapter20.ipynb
A Principles_of_Physics_by_F.J.Bueche/Chapter21.ipynb
A Principles_of_Physics_by_F.J.Bueche/Chapter22.ipynb
A Principles_of_Physics_by_F.J.Bueche/Chapter23.ipynb
A Principles_of_Physics_by_F.J.Bueche/Chapter24.ipynb
A Principles_of_Physics_by_F.J.Bueche/Chapter25.ipynb
A Principles_of_Physics_by_F.J.Bueche/Chapter26.ipynb
A Principles_of_Physics_by_F.J.Bueche/Chapter27.ipynb
A Principles_of_Physics_by_F.J.Bueche/Chapter3.ipynb
A Principles_of_Physics_by_F.J.Bueche/Chapter4.ipynb
A Principles_of_Physics_by_F.J.Bueche/Chapter5.ipynb
A Principles_of_Physics_by_F.J.Bueche/Chapter6.ipynb
A Principles_of_Physics_by_F.J.Bueche/Chapter7.ipynb
A Principles_of_Physics_by_F.J.Bueche/Chapter8.ipynb
A Principles_of_Physics_by_F.J.Bueche/Chapter9.ipynb
A Principles_of_Physics_by_F.J.Bueche/chapter12.ipynb
A Principles_of_Physics_by_F.J.Bueche/screenshots/11.2.png
A Principles_of_Physics_by_F.J.Bueche/screenshots/24.4.png
A Principles_of_Physics_by_F.J.Bueche/screenshots/8.4.png
Diffstat (limited to 'Principles_of_Physics_by_F.J.Bueche/Chapter24.ipynb')
-rw-r--r-- | Principles_of_Physics_by_F.J.Bueche/Chapter24.ipynb | 172 |
1 files changed, 172 insertions, 0 deletions
diff --git a/Principles_of_Physics_by_F.J.Bueche/Chapter24.ipynb b/Principles_of_Physics_by_F.J.Bueche/Chapter24.ipynb new file mode 100644 index 00000000..493417e2 --- /dev/null +++ b/Principles_of_Physics_by_F.J.Bueche/Chapter24.ipynb @@ -0,0 +1,172 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# Chapter 24:Interference and Diffraction" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex24.1:pg-1130" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The angle at which the reinforcement line occurs is theta2= 44.0 degrees\n" + ] + } + ], + "source": [ + " #Example 24_1\n", + "import math \n", + " \n", + " #To find the angle at which the reinforcement line occurs\n", + "n=2 #units in constant\n", + "lamda=0.7 #units in cm\n", + "d=2 #units in cm\n", + "theta2=math.asin((n*lamda)/d)*180/math.pi #Units in degrees\n", + "print \"The angle at which the reinforcement line occurs is theta2=\",round(theta2),\" degrees\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex24.2:pg-1131" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The thickness of air gap increases by= 294.0 nm\n" + ] + } + ], + "source": [ + " #Example 24_2\n", + " \n", + " \n", + " #To find by how much does thickness of air gap increases\n", + "lamda=589 #units in nm\n", + "gap=round(lamda/2) #units in nm\n", + "print \"The thickness of air gap increases by=\",round(gap),\" nm\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex24.3:pg-1132" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "The thickness that should be coated for minimum reflection is L= 99.6 nm\n" + ] + } + ], + "source": [ + " #Example 24_3\n", + " \n", + " \n", + " #To find the thickness that should be coated for minimum reflection\n", + "lamda=550 #units in nm\n", + "n=1.38 #units in constant\n", + "L=(lamda/2)/(2*n) #units in nm\n", + "print \"The thickness that should be coated for minimum reflection is L=\",round(L,1),\" nm\"\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Ex24.4:pg-1133" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "metadata": { + "collapsed": false + }, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "For the first order theta1= 32.0 degrees\n", + "For the second order theta2= 53.0 degrees\n", + "\n", + " As it is impossible for the sine of angle that is= 1.18 radians to be greater that unity this second order and higher order images doesnot exist\n" + ] + } + ], + "source": [ + " #Example 24_4\n", + "\n", + "import math \n", + " \n", + "#To find out the angle at which the line appears\n", + "line=5.89*10**-7 #Units in meters\n", + "noline=1/10.0**6 #units in Lines per meter\n", + "theta1=math.sin(line/noline)*180/math.pi #units in degrees\n", + "#For second order\n", + "theta2=math.sin(2*line/noline)*180/math.pi #units in degrees\n", + "print \"For the first order theta1=\",round(theta1),\" degrees\\nFor the second order theta2=\",round(theta2),\" degrees\"\n", + "sinevalue=2*line/noline #units in radians\n", + "print \"\\n As it is impossible for the sine of angle that is=\",round(sinevalue,2),\" radians to be greater that unity this second order and higher order images doesnot exist\"\n" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 2", + "language": "python", + "name": "python2" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 2 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython2", + "version": "2.7.11" + } + }, + "nbformat": 4, + "nbformat_minor": 0 +} |