Skip to content
Snippets Groups Projects
Commit 80dac7b9 authored by Morfouace's avatar Morfouace
Browse files

+ Adding GetBindingEnergy() method to NPNucleus.h

parent 088a27fa
No related branches found
No related tags found
No related merge requests found
...@@ -121,6 +121,7 @@ namespace NPL { ...@@ -121,6 +121,7 @@ namespace NPL {
// Nuclear mass in MeV // Nuclear mass in MeV
double Mass() const {return (fAtomicWeight*amu_c2 + fMassExcess/1000. - fCharge*electron_mass_c2);} double Mass() const {return (fAtomicWeight*amu_c2 + fMassExcess/1000. - fCharge*electron_mass_c2);}
double GetBindingEnergy() const {return (fCharge*proton_mass_c2 + (fAtomicWeight-fCharge)*neutron_mass_c2 + fCharge*electron_mass_c2 - fAtomicWeight*amu_c2 - fMassExcess/1000);}
void Print() const ; void Print() const ;
}; };
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment