summaryrefslogtreecommitdiff
path: root/1985/CH3/EX3.6/Chapter3_Example6.sce
blob: 8087ae207ba6ab79eba2e40268714ce2bf328b4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

clc
clear

//INPUT
t=2*10^-6;//The life time of micro mesons in s
v=2.994*10^8;//Speed of micro mesons in m s^-1
c=3*10^8;//Speed of light in m s^-1

//CALCULATIONS
T=(t/sqrt(1-(v^2/c^2)))/10^-5//Life time of micro mesons in s
D=v*T*10^-5//Distance travelled by micro mesons in one life time in m
d=v*t//Distance travelled by the micro mesons if there is no relativistic effect in m

//OUTPUT
mprintf('The mean life time of micro mesons  is %f*10^-5 s \n',T)
mprintf('The distance traveled by micro mesons is %3.1f m \n',D)
mprintf('The distance traveled if there is no relativistic effect is %3.1f m \n',d)