summaryrefslogtreecommitdiff
path: root/1871/CH7/EX7.14/Ch07Ex14.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1871/CH7/EX7.14/Ch07Ex14.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 '1871/CH7/EX7.14/Ch07Ex14.sce')
-rwxr-xr-x1871/CH7/EX7.14/Ch07Ex14.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/1871/CH7/EX7.14/Ch07Ex14.sce b/1871/CH7/EX7.14/Ch07Ex14.sce
new file mode 100755
index 000000000..204998819
--- /dev/null
+++ b/1871/CH7/EX7.14/Ch07Ex14.sce
@@ -0,0 +1,14 @@
+// Scilab code Ex7.14: Pg:309 (2008)
+clc;clear;
+amu = 931.5; // Energy equivalent of 1 amu, MeV
+M_He = 4.00260; // Mass of helium, amu
+m_e = 0.00055; // Mass of electron, amu
+M_C = 12.000; // Mass of carbon, amu
+m_He = M_He - 2*m_e; // Mass of helium nucleus, amu
+m_C = M_C - 6*m_e; // Mass of carbon nucleus, amu
+d_m = 3*m_He - m_C; // Mass defect, amu
+E = d_m*amu; // Equivalent energy of mass defect, MeV
+printf("\nThe energy invloved in each fusion reaction inside the star = %4.2f MeV", E);
+
+// Result
+// The energy invloved in each fusion reaction inside the star = 7.27 MeV \ No newline at end of file