summaryrefslogtreecommitdiff
path: root/2411/CH9/EX9.1.3/Ex9_1_3.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2411/CH9/EX9.1.3/Ex9_1_3.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2411/CH9/EX9.1.3/Ex9_1_3.sce')
-rwxr-xr-x2411/CH9/EX9.1.3/Ex9_1_3.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/2411/CH9/EX9.1.3/Ex9_1_3.sce b/2411/CH9/EX9.1.3/Ex9_1_3.sce
new file mode 100755
index 000000000..a6fc9dd8d
--- /dev/null
+++ b/2411/CH9/EX9.1.3/Ex9_1_3.sce
@@ -0,0 +1,19 @@
+// Scilab Code Ex9.1.3:Page-411 (2008)
+clc; clear;
+u = 931.508; // Energy equivalent of 1 amu, MeV
+Z = 8; // Atomic number of O-16
+A = 16; // Mass number of O-16
+m_p = 1.008142; // Mass of a proton, u
+m_n = 1.008982; // Mass of a neutron, u
+M_O = 15.994915; // Atomic mass of O-16 nucleus, u
+delta_m = Z*m_p + (A-Z)*m_n - M_O; // Mass difference, u
+BE = delta_m*u; // Binding energy of O-16 nucleus, MeV
+BE_bar = BE/A; // Binding energy per nucleon of O-16 nucleus, MeV
+delta_m = abs(M_O - A); // Mass difference, u
+PF = delta_m/A; // Packing fraction for O-16 nucleus, u
+printf("\nThe binding energy per nucleon for O-16 nucleus = %4.2f MeV/nucleon", BE_bar);
+printf("\nThe packing fraction for O-16 nucleus = %5.3e u", PF);
+
+// Result
+// The binding energy per nucleon for O-16 nucleus = 8.27 MeV/nucleon
+// The packing fraction for O-16 nucleus = 3.178e-004 u \ No newline at end of file