Skip to content

Documentation / @interstellar-tools/equations / cr3bpMassRatio

Function: cr3bpMassRatio() ​

ts
function cr3bpMassRatio(m1: number, m2: number): number;

Defined in: three-body/cr3bp-mass-ratio.ts:39

Compute the mass ratio μ of the circular restricted three-body problem.

μ=m2m1+m2

Where:

  • m1 is the larger body's mass, m2 the smaller's

Units

  • Inputs: m1 and m2 in the same unit: kg, or gravitational parameters in m³/s² (the ratio is the same).
  • Output: μ, dimensionless, in (0, 0.5].

Notes

  • In the normalised rotating frame, the larger body sits at x=−μ and the smaller at x=1−μ; their centre of mass is the origin.
  • Earth–Moon: μ≈0.01215. Sun–Earth: μ≈3.0×10−6. Sun–Jupiter: μ≈9.5×10−4.
  • The Lagrange points L4 and L5 are stable for μ<0.0385.

Parameters ​

ParameterTypeDescription
m1numberMass (or gravitational parameter) of the larger body (finite, > 0).
m2numberMass (or gravitational parameter) of the smaller body (finite, > 0, <= m1).

Returns ​

number

The mass ratio μ.

Throws ​

  • If any input is not a finite number.
  • If m1 <= 0, m2 <= 0 or m2 > m1.

Example ​

ts
// Earth and Moon, from their gravitational parameters
cr3bpMassRatio(3.986004418e14, 4.902800118e12); // ≈ 0.012151

See ​