Reference · Journey mode: transfers, launch windows and flip-and-burn trips
keptGoingfunction
Distance and Earth time if a ship keeps proper acceleration a (m/s²) for properS seconds on board and never brakes, starting from rest.
Rapidity is capped so the hyperbolic functions stay finite; a trip inside the solar system is nowhere near the cap.
Import it
import { keptGoing } from "@johnmorrisdotca/uchusen-rockets/journey";
Definition
function keptGoing(a: number, properS: number): { distanceM: number; earthS: number; }
Parameters
| Name | Type | Description |
|---|---|---|
a | number | Proper acceleration, metres a second squared. |
properS | number | Time on board, seconds. |
Returns
{ distanceM: number; earthS: number; }
Distance in the frame the ship started at rest in (metres), and how far that frame's clocks move (seconds).
Examples
import { G0, keptGoing } from "@johnmorrisdotca/uchusen-rockets/journey";
const gone = keptGoing(G0, 86_400);
console.log(gone.distanceM > 0, gone.earthS > 86_000);true trueWhat it prints (run when this page was built)