summaryrefslogtreecommitdiff
path: root/3888/CH7/EX7.1/Ex7_1.sce
diff options
context:
space:
mode:
authorprashantsinalkar2018-02-03 11:01:52 +0530
committerprashantsinalkar2018-02-03 11:01:52 +0530
commit7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch)
tree449d555969bfd7befe906877abab098c6e63a0e8 /3888/CH7/EX7.1/Ex7_1.sce
parentd1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff)
downloadScilab-TBC-Uploads-master.tar.gz
Scilab-TBC-Uploads-master.tar.bz2
Scilab-TBC-Uploads-master.zip
Added new codeHEADmaster
Diffstat (limited to '3888/CH7/EX7.1/Ex7_1.sce')
-rw-r--r--3888/CH7/EX7.1/Ex7_1.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/3888/CH7/EX7.1/Ex7_1.sce b/3888/CH7/EX7.1/Ex7_1.sce
new file mode 100644
index 000000000..034427721
--- /dev/null
+++ b/3888/CH7/EX7.1/Ex7_1.sce
@@ -0,0 +1,20 @@
+//Electric Power Generation, Transmission and Distribution by S.N.Singh
+//Publisher:PHI Learning Private Limited
+//Year: 2012 ; Edition - 2
+//Example 7.1
+//Scilab Version : 6.0.0 ; OS : Windows
+
+clc;
+clear;
+
+
+helium_atomic_mass=4.002603; //Atomic mass of Helium in amu
+mp=1.007277; //Atomic mass of Proton in amu
+mn=1.008665; //Atomic mass of Neutron in amu
+me=0.00055; //Atomic mass of Electron in amu
+del_m=2*mp+2*me+2*mn-helium_atomic_mass; //Mass Defect in amu
+Be=del_m*931; //Helium Binding Energy in MeV
+Be_molecule=Be/4; //Helium Binding Energy per Nucleon in MeV
+
+
+printf("\nBinding energy per nucleon is %.3f MeV",Be_molecule);