summaryrefslogtreecommitdiff
path: root/2780/CH1/EX1.9/Ex1_9.sce
diff options
context:
space:
mode:
Diffstat (limited to '2780/CH1/EX1.9/Ex1_9.sce')
-rwxr-xr-x2780/CH1/EX1.9/Ex1_9.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/2780/CH1/EX1.9/Ex1_9.sce b/2780/CH1/EX1.9/Ex1_9.sce
new file mode 100755
index 000000000..c36a7b815
--- /dev/null
+++ b/2780/CH1/EX1.9/Ex1_9.sce
@@ -0,0 +1,13 @@
+clc
+//to calculate distance travelled by the beam
+deltat0=2.5*10^-8 //proper half life of pi mesons in (s)
+c=3*10^8 //light speed (m/s)
+v=0.8*c //mesons velocity (m/s)
+deltat=deltat0/sqrt(1-(v/c)^2) //half life (s)
+//No=initial flux ,N=flux after time t
+//N=N0 e^(-t/T)
+//N=N0/e^2 (given)=No e(-t/T)
+//t=2 deltat
+d=2*deltat*v //d=vt
+disp("distance travelled by the beam is d="+string(d)+"m")
+//answer is given in the textbook=19.96 m