How to use this calculator
Expand an exact rational number into a finite simple continued fraction and list its convergents.
- Enter Integer numerator, Positive integer denominator. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Rational continued fraction and convergents explained
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
Read our calculation methodology.