cf-0.1: Infinite precision arithmetic using continued fractions

Safe HaskellSafe-Inferred
LanguageHaskell2010

Math.ContinuedFraction

Synopsis

Documentation

convergents :: CF -> [Rational] Source

Produce a list of rational approximations to a number

digits :: Integer -> CF -> [Integer] Source

Produce a list of digits in a given base

showCF :: CF -> String Source

Produce a decimal representation of a number