blob: 7fc599f04e5beef2c2b70f74804d0fd01a8da2e2 (
plain)
1
2
3
4
5
6
7
|
clear
clc
disp('Exa-2.10');
c=3*10^8;
u=0.8*c;L=65; //all values are in terms of c
t=u*L/(c^2*(sqrt(1-((u/c)^2)))); //from the equation 2.31
printf('The time interval between the events is %e sec which equals %.2f usec.',t,t*10^6);
|