# from_continued_fraction 函数

连分数所表示的数。

## 怎么写

### from_continued_fraction(terms)

**terms**

连分数的各项。接受一个列表。

## 示例

- $\displaystyle \operatorname{from\_continued\_fraction}(\left[ 2, 3 \right]) = \frac{7}{3}$

  `from_continued_fraction([2, 3])`

  在求解器中，`from_continued_fraction([2, 3])` 的结果是 `7/3`。

  [在求解器中打开](https://zh.hilberon.com/?q=from_continued_fraction%28%5B2%2C%203%5D%29)

## 相关函数

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

  有理数的连分数，以列表形式给出。
- [harmonic_number](https://zh.hilberon.com/library/harmonic_number)

  第 n 个调和数：1 + 1/2 + ... + 1/n。
- [fibonacci](https://zh.hilberon.com/library/fibonacci)

  第 n 个斐波那契数，其中 F(1) = F(2) = 1。
- [integer_exponent](https://zh.hilberon.com/library/integer_exponent)

  某个素数在一个整数中的指数。
- [factor_integer](https://zh.hilberon.com/library/factor_integer)

  整数的质因数分解，以质数和指数成对的列表给出。
- [integer_partitions](https://zh.hilberon.com/library/integer_partitions)

  把一个整数写成正整数之和的所有方式。

---
Source: https://zh.hilberon.com/library/from_continued_fraction
