summaryrefslogtreecommitdiff
path: root/Applied_Physics_by_P._K._Palanisamy/Chapter3_1.ipynb
blob: afe7637e799306d1984270aa70477a9dd94d009e (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
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
{
 "metadata": {
  "name": "",
  "signature": "sha256:50d61ee8fa972cdf457beff8302930b51b8d1018696b3dbcc148db2d3f471c34"
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "3: Principles of Quantum Mechanics"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 3.1, Page number 3.12"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "c = 3*10**8     #velocity of light(m/sec)\n",
      "m = 1.67*10**-27     #mass of proton(kg)\n",
      "h = 6.626*10**-34    #planck's constant\n",
      "\n",
      "#Calculation\n",
      "v = (1/10)*c      #velocity of proton(m/sec)\n",
      "lamda = h/(m*v)     #de Broglie wavelength(m)\n",
      "\n",
      "#Result\n",
      "print \"de Broglie wavelength of proton is\",round(lamda/1e-14,3),\"*10^-14 m\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "de Broglie wavelength of proton is 1.323 *10^-14 m\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 3.2, Page number 3.12"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "V = 400      #potential(V)\n",
      "\n",
      "#Calculation\n",
      "lamda = 12.26/math.sqrt(V)      #de Broglie wavelength(angstrom)\n",
      "\n",
      "#Result\n",
      "print \"de Broglie wavelength of electron is\",lamda,\"angstrom\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "de Broglie wavelength of electron is 0.613 angstrom\n"
       ]
      }
     ],
     "prompt_number": 3
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 3.3, Page number 3.13"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "m = 1.674*10**-27     #mass of neutron(kg)\n",
      "h = 6.626*10**-34     #planck's constant\n",
      "e = 1.6*10**-19\n",
      "KE = 0.025     #kinetic energy(eV)\n",
      "\n",
      "#Calculation\n",
      "E = KE*e     #kinetic energy(J)\n",
      "lamda = h/math.sqrt(2*m*E)      #de Broglie wavelength(m)\n",
      "lamda_nm = lamda*10**9      #de Broglie wavelength(nm)\n",
      "lamda_nm = math.ceil(lamda_nm*10**4)/10**4   #rounding off to 4 decimals\n",
      "\n",
      "#Result\n",
      "print \"de Broglie wavelength is\",lamda_nm,\"nm\" "
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "de Broglie wavelength is 0.1811 nm\n"
       ]
      }
     ],
     "prompt_number": 4
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 3.4, Page number 3.14"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "V = 1600      #potential(V)\n",
      "\n",
      "#Calculation\n",
      "lamda = 12.26/math.sqrt(V)      #de Broglie wavelength(angstrom)\n",
      "\n",
      "#Result\n",
      "print \"de Broglie wavelength of electron is\",lamda,\"angstrom\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "de Broglie wavelength of electron is 0.3065 angstrom\n"
       ]
      }
     ],
     "prompt_number": 5
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 3.5, Page number 3.18"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "delta_x = 0.2      #electron distance(angstrom)\n",
      "h = 6.626*10**-34    #planck's constant\n",
      "\n",
      "#Calculation\n",
      "delta_x = delta_x*10**-10      #electron distance(m)\n",
      "delta_p = h/(2*math.pi*delta_x)      #uncertainity in momentum(kg.m/s)\n",
      "\n",
      "#Result\n",
      "print \"uncertainity in momentum is\",round(delta_p/1e-24,3),\"*10^-24 kg m/s\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        " uncertainity in momentum is 5.273 *10^-24 kg m/s\n"
       ]
      }
     ],
     "prompt_number": 8
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 3.6, Page number 3.27"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "n1 = 1\n",
      "n2 = 1\n",
      "n3 = 1      #for lowest energy\n",
      "e = 1.6*10**-19\n",
      "h = 6.62*10**-34      #planck's constant\n",
      "m = 9.1*10**-31      #mass of electron(kg)\n",
      "L = 0.1     #side of box(nm)\n",
      "\n",
      "#Calculation\n",
      "L = L*10**-9    #side of box(m)\n",
      "E1 = h**2*(n1**2+n2**2+n3**2)/(8*m*L**2)      #lowest energy(J)\n",
      "E1 = E1/e      #lowest energy(eV)\n",
      "E1 = math.ceil(E1*10)/10    #rounding off to 1 decimal\n",
      "\n",
      "#Result\n",
      "print \"lowest energy of electron is\",E1,\"eV\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "lowest energy of electron is 112.9 eV\n"
       ]
      }
     ],
     "prompt_number": 9
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 3.7, Page number 3.27"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "n1 = 1\n",
      "n2 = 1\n",
      "n3 = 2      #for level next to the lowest\n",
      "e = 1.6*10**-19\n",
      "h = 6.62*10**-34      #planck's constant\n",
      "m = 9.1*10**-31       #mass of electron(kg)\n",
      "L = 0.1     #side of box(nm)\n",
      "\n",
      "#Calculation\n",
      "L = L*10**-9    #side of box(m)\n",
      "E1 = h**2*(n1**2+n2**2+n3**2)/(8*m*L**2)      #lowest energy(J)\n",
      "E1 = E1/e      #lowest energy(eV)\n",
      "E1 = math.ceil(E1*10**2)/10**2    #rounding off to 2 decimals\n",
      "\n",
      "#Result\n",
      "print \"energy of electron is\",E1,\"eV\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "energy of electron is 225.75 eV\n"
       ]
      }
     ],
     "prompt_number": 10
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 3.8, Page number 3.28"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "m = 9.1*10**-31     #mass of electron(kg)\n",
      "h = 6.626*10**-34    #planck's constant\n",
      "e = 1.6*10**-19\n",
      "E = 2000     #energy(eV)\n",
      "\n",
      "#Calculation\n",
      "E = E*e      #energy(J)\n",
      "lamda = h/math.sqrt(2*m*E)      #wavelength(m)\n",
      "lamda_nm = lamda*10**9      #velength(nm)\n",
      "lamda_nm = math.ceil(lamda_nm*10**4)/10**4    #rounding off to 4 decimals\n",
      "\n",
      "#Result\n",
      "print \"wavelength is\",lamda_nm,\"nm\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "wavelength is 0.0275 nm\n"
       ]
      }
     ],
     "prompt_number": 11
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 3.9, Page number 3.28"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "n = 1     #for minimum energy\n",
      "h = 6.626*10**-34      #planck's constant(J sec)\n",
      "m = 9.91*10**-31      #mass of electron(kg)\n",
      "L = 4*10**-10     #side of box(m)\n",
      "\n",
      "#Calculation\n",
      "E1 = ((h**2)*(n**2))/(8*m*(L**2))      #lowest energy(J)\n",
      "E1 = E1*10**18;\n",
      "E1 = math.ceil(E1*10**4)/10**4    #rounding off to 4 decimals\n",
      "\n",
      "#Result\n",
      "print \"energy of electron is\",E1,\"*10**-18 J\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "energy of electron is 0.3462 *10**-18 J\n"
       ]
      }
     ],
     "prompt_number": 12
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 3.10, Page number 3.29"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "n1 = 1     #for ground state\n",
      "n2 = 2     #for 1st excited state\n",
      "n3 = 3     #for 2nd excited state\n",
      "h = 6.626*10**-34      #planck's constant(J sec)\n",
      "m = 9.1*10**-31      #mass of electron(kg)\n",
      "L = 1*10**-10       #width(m)\n",
      "\n",
      "#Calculation\n",
      "E1 = h**2*n1**2/(8*m*L**2)      #energy in ground state(J)\n",
      "E2 = n2**2*E1       #energy in 1st excited state(J)\n",
      "E3 = n3**2*E1       #energy in 2nd excited state(J)\n",
      "\n",
      "#Result\n",
      "print \"energy in ground state is\",round(E1/1e-18,3),\"*10^-18 J\"\n",
      "print \"energy in 1st excited state is\",round(E2/1e-17,3),\"*10^-17 J\"\n",
      "print \"energy in 2nd excited state is\",round(E3/1e-17,3),\"*10^-17 J\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "energy in ground state is 6.031 *10^-18 J\n",
        "energy in 1st excited state is 2.412 *10^-17 J\n",
        "energy in 2nd excited state is 5.428 *10^-17 J\n"
       ]
      }
     ],
     "prompt_number": 18
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 3.11, Page number 3.30"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "h = 6.626*10**-34      #planck's constant(J sec)\n",
      "m = 9.1*10**-31      #mass of electron(kg)\n",
      "e = 1.6*10**-19\n",
      "lamda = 1.66*10**-10     #wavelength(m)\n",
      "\n",
      "#Calculation\n",
      "v = h/(m*lamda)      #velocity of electron(m/sec)\n",
      "v_km = v*10**-3      #velocity of electron(km/sec)\n",
      "KE = (1/2)*m*v**2    #kinetic energy(J)\n",
      "KE_eV = KE/e        #kinetic energy(eV)\n",
      "KE_eV = math.ceil(KE_eV*10**3)/10**3    #rounding off to 3 decimals\n",
      "\n",
      "#Result\n",
      "print \"velocity of electron is\",int(v_km),\"km/sec\"\n",
      "print \"kinetic energy of electron is\",KE_eV,\"eV\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "velocity of electron is 4386 km/sec\n",
        "kinetic energy of electron is 54.714 eV\n"
       ]
      }
     ],
     "prompt_number": 19
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 3.12, Page number 3.31"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "V = 15      #potential(kV)\n",
      "\n",
      "#Calculation\n",
      "V = V*10**3     #potential(V)\n",
      "lamda = 12.26/math.sqrt(V)      #de Broglie wavelength(angstrom)\n",
      "lamda = math.ceil(lamda*100)/100    #rounding off to 2 decimals\n",
      "\n",
      "#Result\n",
      "print \"wavelength of electron waves is\",lamda,\"angstrom\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "wavelength of electron waves is 0.11 angstrom\n"
       ]
      }
     ],
     "prompt_number": 20
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example number 3.13, Page number 3.31"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#importing modules\n",
      "import math\n",
      "from __future__ import division\n",
      "\n",
      "#Variable declaration\n",
      "V = 344      #potential(V)\n",
      "n = 1     #for 1st reflection maximum\n",
      "theta = 60     #glancing angle(degrees)\n",
      "\n",
      "#Calculation\n",
      "lamda = 12.26/math.sqrt(V)      #de Broglie wavelength(angstrom)\n",
      "lamda_m = lamda*10**-10     #de Broglie wavelength(m)\n",
      "theta = theta*math.pi/180     ##glancing angle(radians)\n",
      "d = n*lamda_m/(2*math.sin(theta))      #interatomic spacing(m)\n",
      "d = d*10**10       #interatomic spacing(angstrom)\n",
      "d = math.ceil(d*10**5)/10**5    #rounding off to 5 decimals\n",
      "\n",
      "#Result\n",
      "print \"interatomic spacing of crystal is\",d,\"angstrom\""
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "interatomic spacing of crystal is 0.38164 angstrom\n"
       ]
      }
     ],
     "prompt_number": 21
    }
   ],
   "metadata": {}
  }
 ]
}