[][src]Module reikna::continued_fraction

Module for working with continued fractions.

This module has functions for generating continued fraction representations of square roots and e, and functions for expanding continued fractions into simple fractions and floating point formats.

Functions

e

Return a ContinuedFraction of the continued fraction representing e to n terms.

expand_f64

Expand the continued fraction fraction one time, storing the result as an f64.

expand_f64_ntimes

Expand the continued fraction fraction n times, storing the result as an f64.

expand_fraction

Expand the continued fraction fraction one time, storing the result as a fraction in a double tuple of u64.

expand_fraction_ntimes

Expand the continued fraction fraction n times, storing the result as a fraction in a double tuple of u64.

square_root

Return a ContinuedFraction representing the square root of x.

to_string

Return a nicely formatted String of the continued fraction `fraction.

Type Definitions

ContinuedFraction

Type alias for continued fractions.