Euler continued fraction #
This file formalizes a transformation on generalized continued fractions over a field K.
It defines a map sending a generalized continued fraction to an equivalent Euler continued
fraction obtained by an explicit transformation of its coefficient stream.
Main definitions #
GenContFract.IsEuler: predicate for a generalized continued fraction to be an Euler continued fraction.GenContFract.euler: constructs a generalized continued fraction from a head termhand a coefficient streamρ.GenContFract.toEuler: transforms a generalized continued fraction to an Euler continued fraction.
Main results #
convs_euler: explicit formula for convergents of an Euler continued fraction.convs_toEuler: equivalence of convergents between a generalized continued fraction and its corresponding Euler continued fraction.
References #
- https://en.wikipedia.org/wiki/Euler%27s_continued_fraction_formula
- Wall, H.S., Analytic Theory of Continued Fractions
An Euler continued fraction is a generalized continued fraction of the form $$ h + \cfrac{\rho_0} {1 - \cfrac{\rho_1} {1 + \rho_1 - \cfrac{\rho_2} {1 + \rho_2 - \cfrac{\rho_3} {1 + \rho_3 - \dots}}}} $$
Equations
Instances For
euler h ρ constructs an Euler continued fraction whose coefficients are obtained
from the stream ρ with head term h.
Equations
- One or more equations did not get rendered due to their size.
Instances For
toEuler g is the Euler continued fraction equivalent to g, where ρ₀ = a₀ / b₀ and
ρₙ = - aₙ * Bₙ₋₁ / Bₙ₊₁ for n > 0.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The denominators of an Euler continued fraction are all 1.
The numerators of an Euler continued fraction are given by the formula $$ A_n = h + \sum_{i = 0}^{n - 1} \prod_{j = 0}^i \rho_j $$
Euler's continued fraction formula: the convergents of an Euler continued fraction are given by the formula $$ \dfrac{A_n}{B_n} = h + \sum_{i = 0}^{n - 1} \prod_{j = 0}^i \rho_j $$ for example:
A₀ / B₀ = hA₁ / B₁ = h + ρ₀A₂ / B₂ = h + ρ₀ + ρ₀ * ρ₁Aₙ / Bₙ = h + ρ₀ + ρ₀ * ρ₁ + ρ₀ * ρ₁ * ρ₂ + ... + ρ₀ * ρ₁ * ρ₂ * ... * ρₙ₋₁
The transformation toEuler is idempotent.