summaryrefslogtreecommitdiff
path: root/2780/CH1/EX1.8/Ex1_8.sce
blob: c2cdbeb319d46ffe04f7175e56ba841d0fe392f2 (plain)
1
2
3
4
5
6
7
8
9
clc
//to calculate speed of the clock
//clock should record l=59 minutes for each hour recorded by clocks stationary with respect to the observer
l=59 
lo=60
c=3*10^8 //light speed (m/s)
v=sqrt(c^2*(1-l^2/lo^2))
disp("speed of the clock is ="+string(v)+"m/s")