Trait malachite_q::conversion::traits::Convergents

source ·
pub trait Convergents {
    type C: Iterator<Item = Rational>;

    // Required method
    fn convergents(self) -> Self::C;
}
Expand description

Returns a number’s convergents, as an iterator of Rationals.

The convergents of a real number are the rational numbers whose continued fractions are the prefixes of the original number’s continued fraction.

Required Associated Types§

source

type C: Iterator<Item = Rational>

Required Methods§

source

fn convergents(self) -> Self::C

Implementors§