diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1646/CH1/EX1.7/Ch01Ex7.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1646/CH1/EX1.7/Ch01Ex7.sce')
-rwxr-xr-x | 1646/CH1/EX1.7/Ch01Ex7.sce | 12 |
1 files changed, 12 insertions, 0 deletions
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 |