Skip to content

ContinuedFraction

ContinuedFraction = object

Defined in: packages/math-analysis/src/continued-fraction-eval.ts:28

The coefficients of b₀ + a₁/(b₁ + a₂/(b₂ + a₃/(b₃ + ⋯))), supplied as functions of the term index so an unbounded fraction needs no array.

// Every coefficient is 1, for any depth.
const goldenRatio: ContinuedFraction = {
numerator: () => 1,
denominator: () => 1,
};
```;
## See
[Continued fractions](https://anthochamp.pages.grenadine.io/node-essentials/topics/math/calculus/series/)
## Properties
### denominator
> **denominator**: (`index`) => `number`
Defined in: packages/math-analysis/src/continued-fraction-eval.ts:36
The partial denominator `bⱼ`, called with `index ≥ 0`. `b₀` is the leading
term, outside the fraction proper.
#### Parameters
##### index
`number`
#### Returns
`number`
***
### numerator
> **numerator**: (`index`) => `number`
Defined in: packages/math-analysis/src/continued-fraction-eval.ts:30
The partial numerator `aⱼ`, called with `index ≥ 1`.
#### Parameters
##### index
`number`
#### Returns
`number`