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 /2411/CH4/EX4.4/Ex4_4.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 '2411/CH4/EX4.4/Ex4_4.sce')
-rwxr-xr-x | 2411/CH4/EX4.4/Ex4_4.sce | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/2411/CH4/EX4.4/Ex4_4.sce b/2411/CH4/EX4.4/Ex4_4.sce new file mode 100755 index 000000000..1fd7ec526 --- /dev/null +++ b/2411/CH4/EX4.4/Ex4_4.sce @@ -0,0 +1,21 @@ +// Scilab Code Ex4.4: Page-235-236 (2008)
+clc; clear;
+c = 3e+008; // Speed of light in vacuum, m/s
+// Part (a)
+v = 0.98*c ; // Speed of the rigid bar, m/s
+L2 = 1.5; // Length of the rigid bar in S_prime frame, m
+L1 = L2*sqrt(1-v^2/c^2); // Apparent length of rod from Lorentz transformation, m
+theta2 = 45; // Angle which the bar makes w.r.t. x-aixs in S_prime frame, degree
+theta1 = atand(tand(theta2)/sqrt(1-v^2/c^2)); // Orientation of bar relative to S frame, degree
+printf("\nThe orientation of the %d m bar relative to S frame = %4.1f degree", L2, theta1);
+// Part(b)
+v = 0.6*c ; // Speed of the rigid bar, m/s
+L2 = 5; // Length of the rigid bar in S_prime frame, m
+L1 = L2*sqrt(1-v^2/c^2); // Apparent length of rod from Lorentz transformation, m
+theta2 = 30; // Angle which the bar makes w.r.t. x-aixs in S_prime frame, degree
+theta1 = atand(tand(theta2)/sqrt(1-v^2/c^2)); // Orientation of bar relative to S frame, degree
+printf("\nThe orientation of the %d m bar relative to S frame = %4.1f degree", L2, theta1);
+
+// Result
+// The orientation of the 1 m bar relative to S frame = 78.7 degree
+// The orientation of the 5 m bar relative to S frame = 35.8 degree
\ No newline at end of file |