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
|
{
"metadata": {
"name": "",
"signature": "sha256:5681cda1a39ee67e447ba1a84903896a8e1196df60e583969d262ff3e357d1cb"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter16:WIRELESS WANs: CELLULAR TELEPHONE\n",
"AND SATELLITE NETWORKS"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex16.1:pg-479"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#example1\n",
"#calculate the period of the Moon\n",
"\n",
"C=1.0/100;\n",
"dist_moon=384000; # 384,000 km\n",
"radius_earth = 6378; # 6378 km\n",
"distance=dist_moon+radius_earth ;# total distance in km\n",
"Period=C*((distance)**1.5); #formula\n",
"month=round(Period/2592000); # 1 month = 60*60*24*30=2592000 seconds\n",
"print\"The period of the Moon, according to Keplers law is\",round(month)\n",
"\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The period of the Moon, according to Keplers law is 1.0\n"
]
}
],
"prompt_number": 13
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex16.2:pg-479"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"#example2\n",
"#calculate of the period of the satellite\n",
"C=1.0/100;\n",
"orbit=35786; # 35,786 km\n",
"radius_earth = 6378; # 6378 km\n",
"distance=orbit+radius_earth ;# total distance in km\n",
"Period=C*((distance)**1.5); #formula\n",
"hour=round(Period/3600); # 1 hour = 60*60=3600 seconds\n",
"print\"According to Keplers law, the period of the satellite is\",floor(Period),\"s or \",hour, \"hours.\"\n",
"print\"\\nThis means that a satellite located at\", orbit,\"km has a period of \",hour,\"h, which is the same as the rotation period of the Earth.\\nA satellite like this is said to be stationary to the Earth. The orbit is called a geosynchronous orbit.\"\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"According to Keplers law, the period of the satellite is 86579.0 s or 24.0 hours.\n",
"\n",
"This means that a satellite located at 35786 km has a period of 24.0 h, which is the same as the rotation period of the Earth.\n",
"A satellite like this is said to be stationary to the Earth. The orbit is called a geosynchronous orbit.\n"
]
}
],
"prompt_number": 14
},
{
"cell_type": "code",
"collapsed": false,
"input": [],
"language": "python",
"metadata": {},
"outputs": []
}
],
"metadata": {}
}
]
}
|