Trait malachite_q::conversion::traits::Convergents
source · [−]pub trait Convergents {
type C: Iterator<Item = Rational>;
fn convergents(self) -> Self::C;
}
Expand description
Returns a number’s convergents, as an iterator of Rational
s.
The convergents of a real number are the rational numbers whose continued fractions are the prefixes of the original number’s continued fraction.