Reference · Journey mode: transfers, launch windows and flip-and-burn trips
synodicPeriodfunction
The time between two meetings of two bodies in circular orbits, from their periods: 1 / |1/T1 - 1/T2|.
Import it
import { synodicPeriod } from "@johnmorrisdotca/uchusen-rockets/journey";
Definition
function synodicPeriod(period1: number, period2: number): number
Parameters
| Name | Type | Description |
|---|---|---|
period1 | number | The first period, any unit. |
period2 | number | The second period, in the same unit. |
Returns
number
The synodic period, in that unit.
Examples
import { synodicPeriod } from "@johnmorrisdotca/uchusen-rockets/journey";
console.log(synodicPeriod(365.256, 686.98).toFixed(1));779.9What it prints (run when this page was built)