diff options
Diffstat (limited to '1172/CH6/EX6.3/Example6_3.sce')
-rwxr-xr-x | 1172/CH6/EX6.3/Example6_3.sce | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/1172/CH6/EX6.3/Example6_3.sce b/1172/CH6/EX6.3/Example6_3.sce new file mode 100755 index 000000000..4aa5f6b5f --- /dev/null +++ b/1172/CH6/EX6.3/Example6_3.sce @@ -0,0 +1,11 @@ +clc
+//Given that
+c = 3e8 // speed of light in m/s
+u_x_ = -0.9 * c // velocity of first spaceship in ground frame in m/s
+v = -0.9 *c // velocity of second spaceship in ground frame in m/s
+// sample problem 3 page No. 222
+printf("\n \n\n # Problem 3 # \n")
+printf("\n Standard formula used is u_x = (u_x_ + v) / (1 + v * u_x_ / c^2) ")
+u_x = (u_x_ + v) / (1 + v * u_x_ / c^2) // calculation of Velocity of photon
+printf ("\n Velocity of photon with respect to another is %f c.", u_x / c)
+
|