from_continued_fraction function
The number a continued fraction stands for.
How to write it
from_continued_fraction(terms)
- terms
- The terms of a continued fraction. Takes a list.
Examples
from_continued_fraction([2, 3])In the solver,
Open in the solverfrom_continued_fraction([2, 3])gives7/3.
Related functions
- continued_fraction
The continued fraction of a rational number, as a list.
- harmonic_number
The n-th harmonic number: 1 + 1/2 + ... + 1/n.
- fibonacci
The n-th Fibonacci number, with F(1) = F(2) = 1.
- integer_exponent
The exponent of a prime in a whole number.
- factor_integer
Prime factorization of a whole number, as a list of prime and exponent pairs.
- integer_partitions
All the ways to write a whole number as a sum of positive whole numbers.