CalcWorldHub
Free online calculator · no signup

Rational continued fraction and convergents calculator

Expand an exact rational number into a finite simple continued fraction and list its convergents.

4,000 tools
Rational continued fraction and convergents calculator — Integer numerator, Positive integer denominator and calculation method
Rational continued fraction and convergents calculator: inputs and calculation method.

How to use this calculator

Expand an exact rational number into a finite simple continued fraction and list its convergents.

  1. Enter Integer numerator, Positive integer denominator. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Rational continued fraction and convergents explained

Continued fraction4; 2, 6, 7
Continued fraction: 4; 2, 6, 7 in the worked scenario.

How the calculation works

Repeated Euclidean quotient expansion

Safe-integer inputs are converted to BigInt; the final finite expansion uses a last coefficient greater than one where possible..

Set up the calculation

a — Integer numerator
Integer numerator. Enter a whole number.
b — Positive integer denominator
Positive integer denominator. Enter a whole number.

Limits of this model

Safe-integer inputs are converted to BigInt; the final finite expansion uses a last coefficient greater than one where possible.

Check this example

Integer numerator = 415; Positive integer denominator = 93.

  • Continued fraction: 4; 2, 6, 7
  • Convergents: 4/1; 9/2; 58/13; 415/93

Interpreting the result

Each convergent uses one more partial quotient. For this rational input the final convergent, 415/93, is exact; earlier convergents are simpler approximations and need not improve by a fixed amount at each step.

Frequently asked questions

Can the numerator be negative?

Yes, floor division defines the initial coefficient.

Are convergents decimal approximations?

They are exact rational approximations.

Why does the final convergent equal the input?

A rational number has a terminating Euclidean expansion.

How do I use the Rational continued fraction and convergents calculator?

Enter Integer numerator, Positive integer denominator. Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Rational continued fraction and convergents?

Integer numerator = 415; Positive integer denominator = 93. Continued fraction: 4; 2, 6, 7 Convergents: 4/1; 9/2; 58/13; 415/93