The time for the trip is measured in two ways: (1) As seen by a person who stays behind on Earth, and (2) as measured by you on the ship. For your convenience, space-sickness pills are available aft of the observation lounge.
The equations for the computations came from the
Desy Web Site.
Here is what I used:
d
as the distance of half the trip in meters.
(Note: There are about 9.47e15 meters per light year).
a
as the acceleration in meters/secĀ².
(Note: The conversion is 9.81 times the acceleration measured in gravities.)
c
equal to the speed of light in meters/sec (which is
3.00e8).
2 * sqrt( (d*d)/(c*c) + 2*d/a )
asinh
is the inverse hyperbolic sin function, computed
in Java with the formula Math.log(x+Math.sqrt(x*x+1))
.