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
|
{
"metadata": {
"name": "",
"signature": "sha256:a22a4cd44988289c63c9da64c71766c244fd20324a2c5a80b53d48938212c4cc"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
"cell_type": "heading",
"level": 1,
"metadata": {},
"source": [
"Chapter 9: Atomic Structure"
]
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 9.1, page no. 300"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"\n",
"\n",
"#Variable declaration\n",
"\n",
"Ub = 9.27 * 10 ** -24 #(J/T)\n",
"B = 1.00 #magnetic field strength (T)\n",
"h = 6.58 * 10 ** -16 #Planck's constant (eV.s)\n",
"e = 1.6 * 10 ** -19 #electron charge (C)\n",
"\n",
"#Calculation\n",
"\n",
"hwl = Ub * B / e\n",
"wl = hwl / h\n",
"\n",
"#results\n",
"\n",
"print \"The magnetic energy is\",round(hwl/10**-5,2),\"x 10^-5 eV and the Larmor frequency is\",round(wl/10**10,2),\"x 10^10 rad/s.\"\n"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"The magnetic energy is 5.79 x 10^-5 eV and the Larmor frequency is 8.81 x 10^10 rad/s.\n"
]
}
],
"prompt_number": 2
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 9.4, page no. 311"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"\n",
"#Variable declaration\n",
"\n",
"l2 = 589.592 #sodium doublet wavelength (nm)\n",
"l1 = 588.995 #sodium doublet wavelength (nm)\n",
"hc = 1240 #planck's constant X speed of light (eV.nm)\n",
"\n",
"#Calculation\n",
"\n",
"dE = hc * (l2-l1)/(l2*l1)\n",
"\n",
"#Results\n",
"\n",
"print \"dE =\",round(dE/10**-3,2),\"X 10^-3 eV represents the spin orbit splitting of the initial levels.\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"dE = 2.13 X 10^-3 eV represents the spin orbit splitting of the initial levels.\n"
]
}
],
"prompt_number": 6
},
{
"cell_type": "heading",
"level": 2,
"metadata": {},
"source": [
"Example 9.6, page no. 317"
]
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"\n",
"import math\n",
"\n",
"#Variable declaration\n",
"\n",
"E = -5.14 #Energy of the 3s electron in sodium (eV)\n",
"Eh = 13.6 #energy of the 3s electron in hydrogen (eV)\n",
"\n",
"\n",
"#Calculation\n",
"\n",
"Zeff = 3 * math.sqrt(-E/Eh)\n",
"\n",
"#Results\n",
"\n",
"print \"Zeff for the 3s electron in sodium is\",round(Zeff,2)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"output_type": "stream",
"stream": "stdout",
"text": [
"Zeff for the 3s electron in sodium is 1.84\n"
]
}
],
"prompt_number": 10
}
],
"metadata": {}
}
]
}
|