summaryrefslogtreecommitdiff
path: root/3622/CH6/EX6.1/Ex6_1.sce
blob: 5826aea0b8c413482d286f25375f5b0ac5200c56 (plain)
1
2
3
4
5
6
7
8
9
10
//Initialisation of variables
clc
mo=9.028e-28//grams
c=3e10
E=mo*c^2
ev=1.6e-12//electron volt
EineV=E/ev
EinMeV=EineV/10^6
printf('energy in million electron volt is %f MeV \n',EinMeV)