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
|
{
"metadata": {
"name": "",
"signature": "sha256:e330c51bf6e610e7419d5a8924484e7b299e4592ed588610e8ac90d2d1956ef9"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter1-Fundamental Concepts"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex1-pg21"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"##Chapter 1, Example 1.1, Page 21\n",
"import math\n",
"##Find Atomic weight of Boron\n",
"I10 = 0.199 ## Isotopic abundance of B10 (Value used in question is wrong)\n",
"A10 = 10.012937 ##Atomic weight of B10\n",
"I11 = 0.801 ## Isotopic abundance of B11\n",
"A11 = 11.009306 ##Atomic weight of B11\n",
"##Calculation\n",
"W = (I10*A10)+(I11*A11)\n",
"print'%s %.2f %s'%(\"The atomic weight of Boron = \",W,\"\");\n",
"\n",
"##Answers may vary due to round off error\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The atomic weight of Boron = 10.81 \n"
]
}
],
"prompt_number": 6
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex2-pg22"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"##Chapter 1, Example 1.2, Page 22\n",
"import math\n",
"##Find number of 10B molecules in 5g of Boron\n",
"m = 5. ##g\n",
"Na = 0.6022*10**24 ##atoms/mol\n",
"AB = 10.811 ##Atomic weight of 10B , g/mol\n",
"NB = (m*Na)/(AB)\n",
"print'%s %.2e %s'%(\"The number of Boron atoms = \",NB,\" atoms\");\n",
"\n",
"##Answers may vary due to round off error\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The number of Boron atoms = 2.79e+23 atoms\n"
]
}
],
"prompt_number": 4
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex3-pg22"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"##Chapter 1, Example 1.3, Page 22\n",
"import math\n",
"##Estimate the mass on an atom of U 238. From Eq. (1.3)\n",
"##Calculating the approximate weight\n",
"Mapprox = 238./(6.022*10**23)\n",
"##Calculating the precise weight\n",
"M = 238.050782/(6.022142*10**23)\n",
"print'%s %.2e %s'%(\"The approximate mass on an atom of U 238 = \",Mapprox,\" g/atom\");\n",
"print'%s %.2e %s'%(\"\\n The precise mass on an atom of U 238 = \",M,\" g/atom\")\n",
"print(\"Varies by a negligible error\")\n",
"##Answers may vary due to round off error\n",
"\n",
" \n",
" \n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The approximate mass on an atom of U 238 = 3.95e-22 g/atom\n",
"\n",
" The precise mass on an atom of U 238 = 3.95e-22 g/atom\n",
"Varies by a negligible error\n"
]
}
],
"prompt_number": 3
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Ex4-pg23"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"##Chapter 1, Example 1.4, Page 23\n",
"import math\n",
"##Density of Hydrogen atom in water\n",
"p = 1. ## density of water in g cm^-3\n",
"Na = 6.022*10**23 ## molucules/mol\n",
"A = 18. ## atomic weight of water in g/mol\n",
"N = (p*Na)/A\n",
"NH = 2.*N\n",
"print'%s %.2e %s'%(\"The density of water = \",N,\" molecules/cm3\");\n",
"print'%s %.2e %s'%(\"\\n The density of hydrogen atoms = \",NH,\" atoms/cm3\");\n",
"##Answers may vary due to round off error\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The density of water = 3.35e+22 molecules/cm3\n",
"\n",
" The density of hydrogen atoms = 6.69e+22 atoms/cm3\n"
]
}
],
"prompt_number": 2
}
],
"metadata": {}
}
]
}
|