summaryrefslogtreecommitdiff
path: root/Engineering_Physics_by_V_Rajendran/Chapter7.ipynb
blob: 4a23f5d21d3defd593a86d3ce54b9756c49ab039 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
{
 "metadata": {
  "name": "",
  "signature": "sha256:091a42f6c4748025b72b34c7f12edc07c6f7f79e00e0f5e82232274fbc41738c"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "7: Interference"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 7.1, Page number 16"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "theta=40;    #angle of wedge(s)\n",
      "beta=0.125*10**-2;   #fringe width(m)\n",
      "\n",
      "#Calculation\n",
      "lamda=2*beta*theta*(math.pi/180)*(1/60)*(1/60);    #wavelength of light(m)\n",
      "\n",
      "#Result\n",
      "print \"wavelength of light is\",int(lamda*10**10),\"angstrom\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "wavelength of light is 4848 angstrom\n"
       ]
      }
     ],
     "prompt_number": 4
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 7.3, Page number 17"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "n=100;    #number of fringes\n",
      "d=0.03*10**-3;    #distance moved(m)\n",
      "\n",
      "#Calculation\n",
      "lamda=2*d/n;   #wavelength of light(m)\n",
      "\n",
      "#Result\n",
      "print \"wavelength of light is\",lamda*10**10,\"angstrom\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "wavelength of light is 6000.0 angstrom\n"
       ]
      }
     ],
     "prompt_number": 6
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 7.4, Page number 17"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "lamda1=5896*10**-10;    #wavelength of D1 line(m)\n",
      "lamda2=5890*10**-10;    #wavelength of D2 line(m)\n",
      "\n",
      "#Calculation\n",
      "d=lamda1*lamda2/(2*(lamda1-lamda2));    #distance the mirror has to be moved(m)\n",
      "\n",
      "#Result\n",
      "print \"distance the mirror has to be moved is\",round(d*10**3,4),\"mm\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "distance the mirror has to be moved is 0.2894 mm\n"
       ]
      }
     ],
     "prompt_number": 13
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 7.5, Page number 18"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "mew=1.5;     #refractive index of plate\n",
      "d=1.24;    #distance between dark fringes(mm)\n",
      "\n",
      "#Calculation\n",
      "t=d/(mew-1);    #thickness of glass plate(mm)\n",
      "\n",
      "#Result\n",
      "print \"thickness of glass plate is\",t,\"mm\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "thickness of glass plate is 2.48 mm\n"
       ]
      }
     ],
     "prompt_number": 15
    }
   ],
   "metadata": {}
  }
 ]
}