Ok, we actually did this problem in class so I can discuss details.When you consider relativistic travel, you should not forget that the space ship does not achieve cruising velocity in a blink of an eye. A huge mass needs time to gather momentum and it uses acceleration to do it. Therefore you should really ask yourself what kind of acceleration do you need to use to travel the distance.
Calculating acceleration is quite different than calculating velocity but it does make sense. If you are out in space in null gravity, you can use acceleration to simulate gravity. Therefore accelerating with 1 g makes most sense to gather speed, then halfway to your destination you use negative acceleration to slow the ship down, again creating perfect Earth-like gravity. If you however want to take time travelling with constant velocity (and therefore null gravity which sounds nice until you think about the effects on human physiology), then you need to use the special relativity equations.
We did the math on the famous twin paradox (though it's not a paradox at all) and came up with a following solution. If you start two stopwatches when the space ship leaves Earth (one stopwatch stays on Earth, the other travels with the spaceship), in the middle of the journey (the point where you need to stop increasing velocity and start decreasing it) they will show different results. The difference is:
tE = c/g *cosh(g*tT/c) or inverted
tT = c/g *arccosh(g*tE/2/c)
tE - Earth time
tT - Traveller's time
g - Earth's gravity (9.80665 m/s/s)
c - light speed (299,792,458 m/s)
cosh - hyperbolic cosine function (Windows calculator has it on scientific view; enable the Hyp square and then press the 'cos' button)
arccosh - inverse hyperbolic cosine function (Windows calculator also has it; enable both Inv and Hyp squares, then click 'cos' button)
Now if you want to know the time at reaching the destination, simply multiply the result with 2. If your space ship goes one way, then immediately turns and returns to Earth the same way, just use 4 instead of 2.
Now, for the distance. Let's say you want to travel the distance from Earth to Alpha Centauri, the closest star. The distance is roughly 4 light years. That means you need to accelerate 2 light years and decelerate the other 2 light years. You get halfway (the point where you need to stop increasing velocity and start decreasing it) in the time given by:
tT = c/g *sqrt[ (x*g/c/c)^2 - 1 ]
So if you input x = 2 ly (1 light year = 9.45e15 m) and the rest as it was above, then you get 1.71 years which is about 20 months. The destination to Alpha Centauri occurs in 40 months. To get back to Earth you need 80 months.
How much time passes for the observer on Earth? Put tT into the above equation and you get tE = 2.91 years, almost twice the time.
You can modify the two formulas. If you want to use higher acceleration, input 2g or 3g instead of 1g. The c and g values are absolute, the rest is simple computation. Just remember to input all numbers in the same units, preferably meters and seconds since both g anc c are defined in those units. If you input kilometers and years or god forbid miles, you will get wrong results.
The beauty of these equations is that you don't need to bother with the relativistic factors (gamma = sqrt[ 1 - v*v/c/c] ) at all. You don't even need to know the velocity at which you will be travelling.
Just for reality's sake: it would make little sense for a distance of 1 AU to be travelled at relativistic speeds. When it comes to interstellar distances, then you can talk FTL.
[This message has been edited by MartinV (edited October 14, 2010).]