Anzeige



Calculate a Continued Fraction

Calculator for continued fractions up to a certain number of calculation steps. A continued fraction has the form a1+b1/(a2+b2/(...)). This calculation can be infinite, here is can be performed up to a lot of steps n, if ai and bi can be represented as formulas. n must be a positive integer, it is started with the value of n and then calculated to 1. As running variable in the formulas, i is used. The basic arithmetic operations + - * / are allowed, as well as the power function pow(), like pow(2#i) for 2i. Further allowed functions are sin(), cos(), tan(), asin(), acos(), atan(), log() for the natural logarithm and fac() for the factorial. Also, the constants e and pi can be used.

a =
b =
Calculations steps n:



Round to decimal places.




The calculation is done backwards:
kn = an + bn
kn-1 = an-1 + bn-1 / kn
kn-2 = an-2 + bn-2 / kn-1
...
k1 = a1 + b1 / k2

Examples:

A continued fraction is theoretically a fraction that repeats itself ad infinitum. In practice, of course, it cannot be calculated infinitely often, but only up to a certain calculation depth. The deeper the calculation, the more the calculated result should approximate the true value of the continued fraction.
Continued fractions can be used to generate real numbers, i.e., those with an infinite number of irregular decimal places. This is also possible with square roots; for example, the golden ratio mentioned above can also be written as (1 +√5)/2. However, there are also real numbers that cannot be represented by square roots, i.e., they are not solutions of polynomials. These numbers are called non-algebraic or transcendental. An example of this is the number pi. Such numbers can also be represented using a continued fraction expansion; one for pi is given above. Euler's number e, another transcendental number, can also be generated using a continued fraction expansion, but this is more complicated and not feasible with the calculator above.





Anzeige





Bluesky Logo