summaryrefslogtreecommitdiff
path: root/3648/CH25/EX25.2/Ex25_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3648/CH25/EX25.2/Ex25_2.sce')
-rw-r--r--3648/CH25/EX25.2/Ex25_2.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/3648/CH25/EX25.2/Ex25_2.sce b/3648/CH25/EX25.2/Ex25_2.sce
new file mode 100644
index 000000000..6fd64255b
--- /dev/null
+++ b/3648/CH25/EX25.2/Ex25_2.sce
@@ -0,0 +1,11 @@
+
+//Example 25_2
+clc();
+clear;
+//How long it would take according to earth clock for a space ship to make a round trip
+fac=0.9990 //Units in c
+relfactor=sqrt(1-fac^2) //units in constant
+time1=4.5 //Units in Years
+time=2*time1 //Units in Years
+oritime=relfactor*time //Units in years
+printf("The original time that is required to complete a round trip is=%.1f Years or %d Months",oritime,round(12*oritime))