Convergents
The successive convergents of a continued fraction, given as its list of terms or as the number itself.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
Convergents✓Convergents(list)the convergents of a term list, such as one ContinuedFraction returnsConvergents(x)every convergent of a rational — the last one is itselfConvergents(x, n)the first convergents of , via ContinuedFraction(x, n)Typed signatures
| Type | Package | Applies |
|---|---|---|
(value, integer?) -> list<number> | modular | always |
Details
- The two-term recurrence , , seeded — the same recurrence ModularMatrix multiplication runs, one at a time
- Every convergent is in lowest terms, and each is a better rational approximation of than any fraction with a smaller denominator
Convergents(x)(non) needs a RATIONAL , sinceContinuedFraction(x)alone does; an irrational needsConvergents(x, n)
Examples
Basic #
Scope #
About
| Examples | 10 |
|---|---|
| Checked against | Wolfram Language 10 agree |
| Crosswalk | Wolfram Language |
See also: ContinuedFraction, ContinuedFractionK