# 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

- $\displaystyle \operatorname{convergents}(\left[ 1, 2, 3 \right]) = \left[ 1, \frac{3}{2}, \frac{10}{7} \right]$

  `convergents([1, 2, 3])`

  In the solver, `convergents([1, 2, 3])` gives `[1, 3/2, 10/7]`.

  [Open in the solver](https://hilberon.com/?q=convergents%28%5B1%2C%202%2C%203%5D%29)

## Related functions

- [discrete_log](https://hilberon.com/library/discrete_log)

  The exponent that takes a base to a value modulo a number.
- [continued_fraction](https://hilberon.com/library/continued_fraction)

  The continued fraction of a rational number, as a list.
- [divisor_count](https://hilberon.com/library/divisor_count)

  How many positive divisors a whole number has.
- [chinese_remainder](https://hilberon.com/library/chinese_remainder)

  The number that leaves given remainders on division by given moduli.
- [divisor_sigma](https://hilberon.com/library/divisor_sigma)

  Sum of the powers of the divisors of a whole number.
- [catalan_number](https://hilberon.com/library/catalan_number)

  The n-th Catalan number.

---
Source: https://hilberon.com/library/convergents
