summaryrefslogtreecommitdiff
path: root/3622/CH6/EX6.2/Ex6_2.sce
blob: 38913abaa311193a1bf9e1ecce2be1a9c077f3e2 (plain)
1
2
3
4
5
6
7
8
9
//Initialisation of variables
clc
amu=1.6558e-24
c=3e10
ev=1.6e-12//electron volt
E=amu*c^2/ev
EinMeV=E/10^6
printf('energy in million electron volt is %d MeV \n',EinMeV)