summaryrefslogtreecommitdiff
path: root/Engineering_Physics_by_K._Rajagopal/Chapter_6.ipynb
blob: b0fcb49baf6e60b82f5ae1bba700f2bd061a52b7 (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
{
 "metadata": {
  "name": ""
 },
 "nbformat": 3,
 "nbformat_minor": 0,
 "worksheets": [
  {
   "cells": [
    {
     "cell_type": "heading",
     "level": 1,
     "metadata": {},
     "source": [
      "Chapter 6: Lasers"
     ]
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 6.1, Page 170"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Variable Declaration\n",
      "D=4*1e8;#distance between earth and moon in m\n",
      "lamda=16000.*1e-10;#wavelength in meters\n",
      "d=1e-3;#aperture in meter\n",
      "\n",
      "#Calculations & Result\n",
      "th=lamda/d;#angular speed\n",
      "print 'angular speed is=',th,'rad'\n",
      "aos=(D*th)**2;#area of spread \n",
      "print 'area of spread is=',aos,'m^2'\n",
      "#Incorrect answer in the textbook\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "angular speed is= 0.0016 rad\n",
        "area of spread is= 4.096e+11 m^2\n"
       ]
      }
     ],
     "prompt_number": 1
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 6.2, Page 170"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Variable Declaration\n",
      "a1=2*1e-3;#distance from the laser\n",
      "a2=3*1e-3;#distance from the laser\n",
      "d1=2;#output beam spot diameter\n",
      "d2=4;#output beam spot diameter\n",
      "\n",
      "#Calculation\n",
      "th=(a2-a1)/(2*(d2-d1));#angle of divergence\n",
      "\n",
      "#Result\n",
      "print 'angle of divergence',th/1e-3,'*10^-3 rad'\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "angle of divergence 0.25 *10^-3 rad\n"
       ]
      }
     ],
     "prompt_number": 2
    },
    {
     "cell_type": "heading",
     "level": 2,
     "metadata": {},
     "source": [
      "Example 6.3, Page 171"
     ]
    },
    {
     "cell_type": "code",
     "collapsed": false,
     "input": [
      "#Variable Declaration\n",
      "D=0.1;#focal length of lens\n",
      "lamda=14400*1e-10;#wavelength in meters\n",
      "p=100*1e-3;#power of laser beam\n",
      "d=10*1e-3;#aperture in meter\n",
      "\n",
      "#Calculations & Results\n",
      "th=lamda/d;#angular speed\n",
      "print 'angular speed is=',th/1e-4,'*10^-4 rad'\n",
      "aos=(D*th)**2;#area of spread \n",
      "print 'area of spread is=',aos/1e-10,'*10^-10 m^2'\n",
      "I=p/aos;#'intensity\n",
      "print 'intensity is=',round(I/1e7,1),'*10^7 W*m^-2'\n",
      "\n"
     ],
     "language": "python",
     "metadata": {},
     "outputs": [
      {
       "output_type": "stream",
       "stream": "stdout",
       "text": [
        "angular speed is= 1.44 *10^-4 rad\n",
        "area of spread is= 2.0736 *10^-10 m^2\n",
        "intensity is= 48.2 *10^7 W*m^-2\n"
       ]
      }
     ],
     "prompt_number": 3
    }
   ],
   "metadata": {}
  }
 ]
}