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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
|
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Chapter 10: THE ATOMIC NUCLEUS"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 10.1: COMPARE_DENSITIES_OF_WATER_AND_NUCLEUS.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"clc;clear;\n",
"//Example 10.1\n",
"\n",
"//given data\n",
"R=1.2*10^-15;//radius in A^(1/3)-m *A is mass number\n",
"mp=1.008;\n",
"mn=mp;//mass of proton and neutron in a.m.u\n",
"pi=3.14;//const\n",
"Dw=1000;///density of water in kg/m^3\n",
"\n",
"//calculation\n",
"Vn=4/3*pi*R^3;\n",
"mp=mp*1.66*10^-27;//conversion in kg\n",
"mn=mp;\n",
"m=mn;//m is combined mass in A-kg\n",
"Dn=m/Vn;\n",
"R=Dn/Dw;\n",
"disp(R,'the ratio is')"
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 10.2: CALCULATE_ENERGY_EQUIVALENCE_FOR_MeV.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"clc;clear;\n",
"//Example 10.2\n",
"\n",
"//calculations\n",
"amu=1.66*10^-27;//1 amu in kg\n",
"c=3*10^8;//speed of light in m/s\n",
"m=amu;\n",
"E=m*c^2;\n",
"kWh=1.6*10^-13;//conversion of kWh in J\n",
"E=E/kWh;\n",
"disp(E,'energy equivalence in MeV')"
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 10.3: CALCULATE_ENERGY_EQUIVALENCE_FOR_kWh.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"clc;clear;\n",
"//Example 10.3\n",
"\n",
"//calculations\n",
"gm=10^-3;//1 gram in kg\n",
"m=gm;\n",
"c=3*10^8;//speed of light in m/s\n",
"E=m*c^2;\n",
"kWh=36*10^5;//1 kWh in J\n",
"EE=E/kWh;\n",
"disp(EE,'energy equivalence in kWh')"
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 10.4: CALCULATE_BINDING_ENERGY.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"clc;clear;\n",
"//Example 10.4\n",
"\n",
"//given data\n",
"mn=1.00893;//mass of neutron in a.m.u\n",
"mp=1.00813;//mass of proton in a.m.u\n",
"md=2.01473;//mass of deuteron in a.m.u\n",
"ma=4.00389;//mass of alpha-particle in a.m.u\n",
"\n",
"//calculations\n",
"dm=md-(mn+mp);\n",
"disp((-dm*931),'binding energy in MeV');\n",
"dm=ma-2*(mn+mp);\n",
"disp((-dm*931),'binding energy in MeV')"
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 10.5: CALCULATE_BINDING_ENERGY_OF_17Cl35.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"clc;clear;\n",
"//Example 10.5\n",
"\n",
"//given data\n",
"m1=1.008665;//mass of 0n1 in a.m.u\n",
"m2=1.007825;//mass of 1H1 in a.m.u\n",
"m3=34.9800;//mass 17Cl35 in a.m.u\n",
"n=17+18;\n",
"\n",
"//calculations\n",
"dm=(17*m2)+(18*m1)-m3;\n",
"Q=dm*931;\n",
"disp(Q,'Binding energy in MeV');\n",
"BEn=Q/n;\n",
"disp(BEn,'Binding energy per nucleon in MeV')"
]
}
,
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 10.6: CALCULATE_BINDING_ENERGY_FOR_LITHIUM_NUCLEUS.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"clc;clear;\n",
"//Example in 10.6\n",
"\n",
"//given data\n",
"m1=1.00814;//mass of proton in a.m.u\n",
"m2=1.00893;//mass of neutron in a.m.u\n",
"m3=7.01822;//mass of lithium in a.m.u\n",
"\n",
"//calculations\n",
"dm=(3*m1)+(4*m2)-m3;\n",
"Q=dm*931;\n",
"disp(Q,'Binding energy in MeV')"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Scilab",
"language": "scilab",
"name": "scilab"
},
"language_info": {
"file_extension": ".sce",
"help_links": [
{
"text": "MetaKernel Magics",
"url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md"
}
],
"mimetype": "text/x-octave",
"name": "scilab",
"version": "0.7.1"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
|