clc //Given that c = 3e8 // speed of light in m/s v = 0.5 * c // speed of particle in m/s // sample problem 7 page No. 223 printf("\n \n\n # Problem 7 # \n") printf("\n Standard formula used \n m = m_o/sqrt ( 1- (v/c)^2)") ratio = sqrt(1- (v /c)^2) // calculation of Ratio of rest mass and relativistic mass of particle printf ("\n Ratio of rest mass and relativistic mass of particle is %f.", ratio)