summaryrefslogtreecommitdiff
path: root/Engineering_Physics_By_G_Vijayakumari/Chapter4.ipynb
blob: 4929251632640e49c94605c7209a8f2fd64832ca (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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "#4: Wave Optics"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 4.1, Page number 92"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The wavelength of light used is 640 nm\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "n=125;   #number of fingers cross the field of view\n",
    "d=0.04*10**-3;   #distance of one of mirror moved(m)\n",
    "\n",
    "#Calculation\n",
    "w=2*d/n;     #wavelength of light used(m)\n",
    "\n",
    "#Result\n",
    "print \"The wavelength of light used is\",int(w*10**9),\"nm\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 4.2, Page number 92"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The wavelength of light used is 600.0 nm\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "Ri=1.5;      #refractive index of thin film of glass\n",
    "n=30;     #number of fringes of sodium light is observed across the field of view\n",
    "t=0.018*10**-3;    #thickness of glass film(m)\n",
    "\n",
    "#Calculation\n",
    "w=2*(Ri-1)*t/n;     #wavelength of the light used(m)\n",
    "\n",
    "#Result\n",
    "print \"The wavelength of light used is\",w*10**9,\"nm\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 4.3, Page number 92"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The wavelength of the monochromatic source used is 589.0 nm\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "n=200;     #number of fringes cross the field of view\n",
    "d=0.0589*10**-3;     #distance of mirror displaced(m)\n",
    "\n",
    "#Calculation\n",
    "w=2*d/n;     #wavelength of the monochromatic source used(m)\n",
    "\n",
    "#Result\n",
    "print \"The wavelength of the monochromatic source used is\",w*10**9,\"nm\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 4.4, Page number 92"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {
    "collapsed": false,
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The thickness of the film is 1.9636 *10**-4 m\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "x=1.55;    #refractive index of transparent film of glass \n",
    "w=480*10**-9;   #wavelength of light(m)\n",
    "n=450;    #number of fringes to sweep across the field\n",
    "\n",
    "#Calculation\n",
    "t=n*w/(2*(x-1));    #thickness of the film(m)\n",
    "\n",
    "#Result\n",
    "print \"The thickness of the film is\",round(t*10**4,4),\"*10**-4 m\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 4.5, Page number 93"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The refractive index of material is 1.675\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "t=0.004*10**-2;    #thickness of transparent sheet(m)\n",
    "d=0.0027*10**-2;   #distance of mirror displaced(m)\n",
    "\n",
    "#Calculation\n",
    "X=(d/t)+1;    #refractive index of the material\n",
    "\n",
    "#Result\n",
    "print \"The refractive index of material is\",X"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 4.6, Page number 93"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The number of fringes shifted across the cross wire of eye piece of the telescope is 110\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "d=0.03205*10**-3;   #distance of movable mirror displaced(m)\n",
    "w=580.9*10**-9;     #wavelength of light(m)\n",
    "\n",
    "#Calculation\n",
    "n=2*d/w;     #number of fringes shifted across the cross wire of eye piece of the telescope\n",
    "\n",
    "#Result\n",
    "print \"The number of fringes shifted across the cross wire of eye piece of the telescope is\",int(n)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 4.7, Page number 101"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The thickness of a quarter wave plate of quartz for sodium light is 7.36625 micro m\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "w=5893*10**-10;   #wavelength of sodium light(m)\n",
    "Re=1.5532;     #Refractive index of quartz for e ray\n",
    "Ro=1.5332;     #Refractive index of quartz for o ray\n",
    "\n",
    "#Calculation\n",
    "t=w/(4*(Re-Ro));     #thickness of a quarter wave plate of quartz for sodium light(m)\n",
    "\n",
    "#Result\n",
    "print \"The thickness of a quarter wave plate of quartz for sodium light is\",t*10**6,\"micro m\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 4.8, Page number 102"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The thickness of a double refracting crystal required at w/2 is 2.727 micro m\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "w=6000*10**-10;    #wavelength(m)\n",
    "Re=1.54;    #Refractive index of double refracting crystal for e ray\n",
    "Ro=1.65;    #Refractive index of double refracting crystal for o ray\n",
    "\n",
    "#Calculation\n",
    "t=w/(2*(Ro-Re));     #thickness of a double refracting crystal required  at w/2(m)\n",
    "\n",
    "#Result\n",
    "print \"The thickness of a double refracting crystal required at w/2 is\",round(t*10**6,3),\"micro m\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 4.9, Page number 102"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The least thickness of a plate when the emergent beam will be plane polarised is 9.54 micro m\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "w=5*10**-7;    #wavelength(m)\n",
    "Re=1.5573;     #Refractive index for e ray when the emergent beam will be plane polarised\n",
    "Ro=1.5442;     #Refractive index for o ray when the emergent beam will be plane polarised\n",
    "\n",
    "#Calculation\n",
    "t=w/(4*(Re-Ro));    #least thickness of a plate(m)\n",
    "\n",
    "#Result\n",
    "print \"The least thickness of a plate when the emergent beam will be plane polarised is\",round(t*10**6,2),\"micro m\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 4.10, Page number 102"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The thickness of the quarter wave plate for calcite is 1.713 *10**-6 m\n",
      "answer given in the book is wrong\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "w=5893*10**-10;    #wavelength of sodium light(m)\n",
    "Ro=1.658;       #Refractive index of calcite for o ray\n",
    "Re=1.486;       #Refractive index of calcite for e ray\n",
    "\n",
    "#Calculation\n",
    "t=w/(2*(Ro-Re));      #thickness of the quarter wave plate for calcite(m)\n",
    "\n",
    "#Result\n",
    "print \"The thickness of the quarter wave plate for calcite is\",round(t*10**6,3),\"*10**-6 m\"\n",
    "print \"answer given in the book is wrong\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 4.11, Page number 102"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The wavelength for which it can act as a half wave plate is 600.0 *10**-9 m\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "t=30*10**-6;     #thickness of wave plate(m)\n",
    "Ro=1.55;      #Refractive index of wave plate for o ray\n",
    "Re=1.54;      #Refractive index of wave plate for e ray\n",
    "\n",
    "#Calculation\n",
    "w=2*t*(Ro-Re);      #wavelength for which it can act as a half wave plate(m)\n",
    "\n",
    "#Result\n",
    "print \"The wavelength for which it can act as a half wave plate is\",w*10**9,\"*10**-9 m\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "##Example number 4.12, Page number 102"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "The thickness of a mica sheet required for making a half wave plate for a light is 4.5508 *10**-5 m\n"
     ]
    }
   ],
   "source": [
    "#importing modules\n",
    "import math\n",
    "from __future__ import division\n",
    "\n",
    "#Variable declaration\n",
    "w=546.1*10**-9;    #wavelength of light(m)\n",
    "Re=1.592;      #Refractive index of mica for e ray\n",
    "Ro=1.586;      #Refractive index of mica for o ray\n",
    "\n",
    "#Calculation\n",
    "t=w/(2*(Re-Ro));    #thickness of a mica sheet(m)\n",
    "\n",
    "#Result\n",
    "print \"The thickness of a mica sheet required for making a half wave plate for a light is\",round(t*10**5,4),\"*10**-5 m\""
   ]
  }
 ],
 "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.9"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}