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 --- 1646/CH1/EX1.7/Ch01Ex7.sce | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 1646/CH1/EX1.7/Ch01Ex7.sce (limited to '1646/CH1/EX1.7/Ch01Ex7.sce') diff --git a/1646/CH1/EX1.7/Ch01Ex7.sce b/1646/CH1/EX1.7/Ch01Ex7.sce new file mode 100755 index 000000000..0e6992b20 --- /dev/null +++ b/1646/CH1/EX1.7/Ch01Ex7.sce @@ -0,0 +1,12 @@ +// Scilab Code Ex1.7 : Page:29 (2011) +clc;clear; +m0 = 1; // For simplicity assume the rest mass of stick to be unity, kg +m = 1.5*m0; // Mass of the moving stick, kg +L0 = 1; // Assume resting length of the stick to be unity, m +// As m = m0/sqrt(1-v^2/c^2) = m0*gama, solving for gama +gama = m/m0; // Relativistic factor +L = L0/gama; // Contracted length of the metre stick, m +printf("\nThe contracted length of the metre stick = %4.2f m", L); + +// Result +// The contracted length of the metre stick = 0.67 m \ No newline at end of file -- cgit