Continued fraction BCMATH programs
- Euclid's algorithm and the continued fraction expansion of a rational number.
- The optimal continued fraction (OCF) expansion of a rational number.
- Nearest integer version of Euclid's algorithm.
- Guessing the simple continued fraction expansion of logba.
- Calculating the fraction represented by the simple continued fraction a0+1/a1+ ··· +1/an.
- Finding the simple continued fraction of a quadratic irrational.
- Finding the simple continued fraction of √d over a range of consecutive d.
- Finding the positive and negative representations of the simple continued fraction of a quadratic surd, as far as the end of the first period.
- Testing a quadratic surd for being RCF-reduced.
- Finding the nearest integer continued fraction of a quadratic irrational (A. Hurwitz).
- Finding the nearest integer continued fraction of a quadratic irrational (half regular).
- Finding the nearest integer continued fraction of √d over a range of consecutive d.
- Finding the optimal continued fraction of a quadratic irrational.
- Finding the nearest square continued fraction of a quadratic irrational.
- Finding the nearest square continued fraction of √d over a range of consecutive d.
- Testing a quadratic surd for being NSCF-reduced.
- Finding period-length of the simple continued fraction of √d using midpoint criteria.
- Solving the Pell equation x2 - dy2 = ±1 by the nearest integer continued fraction method (NICF-P), using midpoint criteria.
- Solving the Pell equation x2 - dy2 = ±1 by the nearest square continued fraction method (NSCF), using midpoint criteria.
- Solving the diophantine equation x2 - xy - (D-1)y2/4 = ±1, using the nearest square continued fraction of (1+√D)/2, D ≡ 1(mod 4).
- Calculating the quadratic irrationality whose periodic simple continued fraction is given.
- Finding the simple continued fraction of the n-th root of a positive rational.
- Finding the simple continued fraction of the unique positive root of a trinomial axn+bx+c.
- Finding the simple continued fraction of the unique positive root of a trinomial axn+bxn-1+c.
- Finding the continued fraction of the unique positive root > 1 of a polynomial with integer coefficients.
- Finding a Sturm sequence for a squarefree polynomial.
- Factorising a non-negative unimodular matrix.
- Factorising a non-negative non-singular matrix.
- Finding the simple continued fraction of ep/q.
- Producing a quadratic surd equivalent to a given one.
Last modified 3th February 2010
Return to main page