/* Program to show table of object length at various speeds, computed according to the Lorentz contraction. */ #include #include main () { float frac_c; printf("A one-metre long object contracts to:\n"); for (frac_c=0.1; frac_c<0.95; frac_c+=0.1) { printf ( "%f metre at %3.1f of the speed of light\n", sqrt(1 - frac_c * frac_c), frac_c ); } }