MakarovSuites
English
EnglishDeutschРусскийУкраїнськаFrançaisEspañolItalianoPolski
Contact & licences

Math

Continued fractions

Build continued fractions term by term and inspect convergents, denominators and approximation errors for famous constants and custom decimals.

Continued fractions — Actual application image
Actual application image

Try this

Expand π, e, the golden ratio, √2 or a positive decimal into convergents. Each row adds one partial quotient. Computation uses double precision and stops after ten terms or a near-zero remainder; late terms are numerical approximations.

Equations used in the module
Equations
x = a₀ + 1/(a₁ + 1/(a₂ + …))
pₙ = aₙpₙ₋₁ + pₙ₋₂; qₙ = aₙqₙ₋₁ + qₙ₋₂
pₙqₙ₋₁ − pₙ₋₁qₙ = (−1)ⁿ⁻¹
π = [3;7,15,1,…] → 3, 22/7, 333/106, 355/113, …

Related experiments

Back to catalogue
Möbius transformations — Actual application image

Math

Möbius transformations

Transform complex grids and circles by translations, rotations, reciprocals and fractional linear maps, with a Riemann-sphere view.

Logic gates — Actual application image

Math

Logic gates

Operate Boolean gates, half and full adders, a four-bit carry chain and an edge-triggered memory bit.