diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1172/CH8/EX8.15.2/Example8_15b.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1172/CH8/EX8.15.2/Example8_15b.sce')
-rwxr-xr-x | 1172/CH8/EX8.15.2/Example8_15b.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/1172/CH8/EX8.15.2/Example8_15b.sce b/1172/CH8/EX8.15.2/Example8_15b.sce new file mode 100755 index 000000000..a69949231 --- /dev/null +++ b/1172/CH8/EX8.15.2/Example8_15b.sce @@ -0,0 +1,16 @@ +clc
+//Given that
+M_p = 1.6725e-24 // mass of proton in g
+M_n = 1.6748e-24 // mass of neutron in g
+M_d = 3.3433e-24 // mass of deuteron in g
+c= 3e8 // speed of light in m/s
+// sample problem 15b page No. 306
+printf("\n\n\n # Problem 15b # \n")
+
+printf("\n Standard formula used E = m*c^2")
+del_m = M_p + M_n - M_d // calculation of Loss in mass during formation of 1 atom of hydrogen
+
+b_e = (del_m / 1000) * c^2 / (1.6e-19 * 1e6) // calculation of Binding energy of deuteron
+
+printf ("\n Binding energy of deuteron is %f MeV.", b_e)
+
|