Documentation / @interstellar-tools/equations / stumpffS
Function: stumpffS()
ts
function stumpffS(z: number): number;Defined in: helpers/stumpff.ts:104
Compute the Stumpff function
Where
Notes
- Near
(for ) the series is used, since loses digits to cancellation there. decreases as grows, and stays positive.
Parameters
| Parameter | Type | Description |
|---|---|---|
z | number | The argument |
Returns
number
Throws
If z is not a finite number.
Example
ts
stumpffS(0); // 1/6
stumpffS(Math.PI ** 2); // 1 / π² ≈ 0.1013See
- stumpffC
- solveLambert
- https://en.wikipedia.org/wiki/Universal_variable_formulation Universal variable formulation