clc // Given that r = 3 / 2 // ratio of mass of metre stick to the rest mass of metre stick // Sample Problem 20 on page no. 11.26 printf("\n # PROBLEM 20 # \n") printf(" Standard formula used \n") printf(" m = m_0/((1-v^2/c^2)^1/2) \n l = l_0/((1-v^2/c^2)^1/2) \n") l = 1 * (1 / r) printf("\n Length of meter stick is %f meter if mass is %f times of its rest mass.",l,r)