convergents function
The convergents of a continued fraction.
How to write it
convergents(terms)
- terms
- The terms of a continued fraction. Takes a list.
Examples
convergents([1, 2, 3])In the solver,
Open in the solverconvergents([1, 2, 3])gives[1, 3/2, 10/7].
Related functions
- discrete_log
The exponent that takes a base to a value modulo a number.
- continued_fraction
The continued fraction of a rational number, as a list.
- divisor_count
How many positive divisors a whole number has.
- chinese_remainder
The number that leaves given remainders on division by given moduli.
- divisor_sigma
Sum of the powers of the divisors of a whole number.
- catalan_number
The n-th Catalan number.