summaryrefslogtreecommitdiff
path: root/1985/CH3/EX3.6/Chapter3_Example6.sce
diff options
context:
space:
mode:
Diffstat (limited to '1985/CH3/EX3.6/Chapter3_Example6.sce')
-rwxr-xr-x1985/CH3/EX3.6/Chapter3_Example6.sce18
1 files changed, 18 insertions, 0 deletions
diff --git a/1985/CH3/EX3.6/Chapter3_Example6.sce b/1985/CH3/EX3.6/Chapter3_Example6.sce
new file mode 100755
index 000000000..8087ae207
--- /dev/null
+++ b/1985/CH3/EX3.6/Chapter3_Example6.sce
@@ -0,0 +1,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)