diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /509/CH7/EX7.1/7_1.sci | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '509/CH7/EX7.1/7_1.sci')
-rw-r--r-- | 509/CH7/EX7.1/7_1.sci | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/509/CH7/EX7.1/7_1.sci b/509/CH7/EX7.1/7_1.sci new file mode 100644 index 000000000..82a07cf5b --- /dev/null +++ b/509/CH7/EX7.1/7_1.sci @@ -0,0 +1,16 @@ +//Chapter 7 Example 1//
+clc
+clear
+// Mass defect=m, molecular mass of He=m1,atomic mass of He=m2//
+//mass of proton=mp,mass of neutron=mn,mass of electron=me//
+mp=1.007277;mn=1.008665;me=0.00055;// in amu//
+m1=(2*mp)+(2*mn)+(2*me);
+m2=4.002603; //in amu//
+m=m1-m2;
+printf("\n Mass Defect = %.6f amu\n",m);
+//Binding energy=be//
+be=m*931;// in MeV//
+printf("\n Binding Energy = %.3f MeV\n",be);
+//Binding energy per nucleon=bep//
+bep=be/4;
+printf("\n Binding Energy per nucleon = %.3f MeV\n",bep);
\ No newline at end of file |