summaryrefslogtreecommitdiff
path: root/1172/CH6/EX6.14.3/Example6_14c.sce
blob: 5d180c13af71899ef176e7996fa65553862b830c (plain)
1
2
3
4
5
6
7
8
9
10
11
clc
//Given that 
m = 9e-31 // mass in kg
E = 1e9 // Energy of accelerated electron in eV
c = 3e8 // speed of light in m/s
// sample problem 14c page No. 227
printf("\n \n\n # Problem 14c # \n")
printf("\n Standard formula used \n E = m*c^2")
E_0 = m * c^2// calculation of rest mass energy
ratio = E / E_0 *1.6e-19// calculation of Ratio of energy to rest mass energy
printf ("\n Ratio of energy to rest mass energy is %e.",ratio )