summaryrefslogtreecommitdiff
path: root/1271/CH11/EX11.20/example11_20.sce
blob: 57be0e938b1d1eb3159dae79711b9154272dd182 (plain)
1
2
3
4
5
6
7
8
9
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)