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
|
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Chapter 9 : Special Theory of Relativity"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example number 1 , Page number 284"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Change in length in diameter= 6.37 *10**-2 m\n"
]
}
],
"source": [
"#importing modules\n",
"import math\n",
"from __future__ import division\n",
"\n",
"#Variable declaration\n",
"l=2*6371 #Diameter of earth\n",
"v=30 #velocity\n",
"c=3*10**5 #velocity of light\n",
"\n",
"#Calculations\n",
"dell=(l*v**2)/(2*c**2)/10**-5\n",
"\n",
"#Result\n",
"print\"Change in length in diameter=\",round(dell,2),\"*10**-2 m\""
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example number 2 , Page number 284"
]
},
{
"cell_type": "code",
"execution_count": 27,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The minimum speed v= 0.99999996247 c\n"
]
}
],
"source": [
"#importing modules\n",
"import math\n",
"from __future__ import division\n",
"\n",
"#Variable declaration\n",
"delt=10 #time duration at earth\n",
"delt1=1/365 \n",
"\n",
"#Calculations\n",
"v=math.sqrt(1-(delt1/delt)**2)\n",
"\n",
"#Result\n",
"print\"The minimum speed v= \",v,\"c\""
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example number 3 , Page number 285"
]
},
{
"cell_type": "code",
"execution_count": 39,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"(1) The time taken on earth (t) = 21.05 year\n",
"(2) The time taken on spaceship (t1) = 6.53 year\n"
]
}
],
"source": [
"#importing modules\n",
"import math\n",
"from __future__ import division\n",
"\n",
"#Variable declaration\n",
"L0=20 #The distance of the star\n",
"v=0.95 #velocity\n",
"\n",
"#Calculations\n",
"t=L0/v\n",
"L=L0*math.sqrt(1-v**2)\n",
"L=round(L,1)\n",
"t1=(L*3*10**8)/(v*3*10**8)\n",
"\n",
"#Result\n",
"print\"(1) The time taken on earth (t) = \",round(t,2),\"year\"\n",
"print\"(2) The time taken on spaceship (t1) = \",round(t1,2),\"year\""
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example number 4 , Page number 285"
]
},
{
"cell_type": "code",
"execution_count": 45,
"metadata": {
"collapsed": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"(1) The height will be same and the length(L0) = 6.25 m\n",
"(2) The time elapsed on his friend's watch(t1) = 8.0 sec\n"
]
}
],
"source": [
"#importing modules\n",
"import math\n",
"from __future__ import division\n",
"\n",
"#Variable declaration\n",
"L=5 #Lenth\n",
"v=0.6 #velocity\n",
"t=10 #time\n",
"\n",
"#Calculations\n",
"L0=L/math.sqrt(1-v**2)\n",
"t1=t*math.sqrt(1-v**2)\n",
"\n",
"#Result\n",
"print\"(1) The height will be same and the length(L0) = \",L0,\"m\"\n",
"print\"(2) The time elapsed on his friend's watch(t1) = \",t1,\"sec\""
]
}
],
"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.3"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
|