summaryrefslogtreecommitdiff
path: root/2333/CH1/EX1.27/27.sce
blob: eb4061944485229b1f01e60d38374a319c5c7ad1 (plain)
1
2
3
4
5
6
7
8
9
10
11
clc 
// Given that
m_0 = 1.6e-27 // mass of proton in kg
KE = 500 // kinetic energy of electron in MeV
c = 3e8 // speed of light in m/sec
// Sample Problem 27 on page no. 54
printf("\n # PROBLEM 27 # \n")
printf(" Standard formula used \n")
printf("\n E = m*c^2 \n")
del_m = KE*1e6*1.6e-19/c^2 // change in mass of proton in kg
printf("\n Change in mass of proton is %e kg. ",del_m)