clc //Given that ratio = 0.5 // Ratio of lengths of spaceship c = 3e8 // speed of light in m/s // sample problem 8a page No. 224 printf("\n \n\n # Problem 8a # \n") printf("\n Standard formula used \n l = l_o* sqrt ( 1- (v/c)^2)") v = c * sqrt(1 - ratio^2) // calculation of Speed of spaceship printf ("\n Speed of spaceship is %e m/s.",v)