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

    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

Required Methods

Implementors