diff options
Diffstat (limited to '3756/CH9/EX9.4')
-rw-r--r-- | 3756/CH9/EX9.4/Ex9_4.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/3756/CH9/EX9.4/Ex9_4.sce b/3756/CH9/EX9.4/Ex9_4.sce new file mode 100644 index 000000000..9294a9dca --- /dev/null +++ b/3756/CH9/EX9.4/Ex9_4.sce @@ -0,0 +1,19 @@ +clc +// +// +// + +//Variable declaration +L0=20 //The distance of the star +v=0.95 //velocity + +//Calculations +t=L0/v +L=L0*sqrt(1-v**2) +L=(L) + +t1=(L*3*10**8)/(v*3*10**8) + +//Result +printf("\n (1) The time taken on earth (t) = %0.2f year",t) +printf("\n (2) The time taken on spaceship (t1) = %0.2f year",t1) |