Documentation / @interstellar-tools/equations / solveKeplerBisection
Function: solveKeplerBisection()
ts
function solveKeplerBisection(
M: Radians,
e: number,
maxIter: number,
tolerance: number
): Radians;Defined in: kepler/solve-kepler-bisection.ts:35
Solve Kepler's equation for the eccentric anomaly (
Equation
Bracketing & normalization
- Normalize (
) to ( ). - Use the bracket (
). Then ( ) and ( ). - For (
), ( ) ⇒ strictly increasing ⇒ unique root.
Stopping criteria (either)
- Residual: (
) - Bracket width: (
)
Parameters
| Parameter | Type | Description |
|---|---|---|
M | Radians | Mean anomaly (radians). Can be any real; will be normalized to ( |
e | number | Eccentricity, must satisfy ( |
maxIter | number | Maximum iterations (must be > 0). |
tolerance | number | Convergence tolerance for both residual and half-interval (must be > 0, radians). |
Returns
Eccentric anomaly (
Throws
If inputs are non-finite or out of domain.
Example
ts
const E = solveKeplerBisection((Math.PI / 3) as Radians, 0.5, 100, 1e-12);