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 --- 623/CH1/EX1.1.8/U1_C1_8.sce | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 623/CH1/EX1.1.8/U1_C1_8.sce (limited to '623/CH1/EX1.1.8') 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); -- cgit