From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2411/CH4/EX4.5/Ex4_5.sce | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 2411/CH4/EX4.5/Ex4_5.sce (limited to '2411/CH4/EX4.5/Ex4_5.sce') diff --git a/2411/CH4/EX4.5/Ex4_5.sce b/2411/CH4/EX4.5/Ex4_5.sce new file mode 100755 index 000000000..c7b61d9e1 --- /dev/null +++ b/2411/CH4/EX4.5/Ex4_5.sce @@ -0,0 +1,11 @@ +// Scilab Code Ex4.5: Page-236 (2008) +clc; clear; +c = 3e+008; // Speed of light in vacuum, m/s +t0 = 2.5e-008; // Proper life time of pi-meson, s +t = 2.5e-007; // MEan life time of pi-meson, s +// As t = t0/(sqrt(1-v^2/c^2)), solving for v +v = sqrt(1-(t0/t)^2)*c; // Velocity of pi meson, m/s +printf("\nThe velocity of pi meson = %5.3f c = %4.2e m/s", v/c, v); + +// Result +// The velocity of pi meson = 0.995 c = 2.98e+008 m/s \ No newline at end of file -- cgit