Documentation / @interstellar-tools/equations / stumpffC
Function: stumpffC()
ts
function stumpffC(z: number): number;Defined in: helpers/stumpff.ts:48
Compute the Stumpff function
Where
Notes
- One formula for all three kinds of orbit: the circular functions on an ellipse, the hyperbolic ones on a hyperbola, and the series that joins them at
. - Near
(for ) the series is used, since loses digits to cancellation there. : one whole revolution. solveLambert only searches below it.
Parameters
| Parameter | Type | Description |
|---|---|---|
z | number | The argument |
Returns
number
Throws
If z is not a finite number.
Example
ts
stumpffC(0); // 0.5
stumpffC(Math.PI ** 2); // 2 / π² ≈ 0.2026See
- stumpffS
- solveLambert
- https://en.wikipedia.org/wiki/Universal_variable_formulation Universal variable formulation