diff options
Diffstat (limited to '623/CH1/EX1.1.8/U1_C1_8.sce')
-rwxr-xr-x | 623/CH1/EX1.1.8/U1_C1_8.sce | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/623/CH1/EX1.1.8/U1_C1_8.sce b/623/CH1/EX1.1.8/U1_C1_8.sce new file mode 100755 index 000000000..4761dff23 --- /dev/null +++ b/623/CH1/EX1.1.8/U1_C1_8.sce @@ -0,0 +1,9 @@ +//variable initialization
+IbyI_not=.99 //ratio of moving length and rest length
+c=3*10^8; //speed of light (meter/second)
+
+//calculation of velocity of rocket ship
+Beta=(1-IbyI_not^2)^(1/2); //calculating value of Beta
+v=Beta*c; //velocity of rocket ship (meter/second)
+
+printf("\nThe velocity of the rocket ship = %.2e meter/second",v);
|