cf-0.4.1: Exact real arithmetic using continued fractions

Safe HaskellSafe-Inferred
LanguageHaskell2010

Math.ContinuedFraction

Description

A continued fraction whose terms may be positive, negative or zero. The methods in Floating are supported, with the exception of asin, acos and atan.

Synopsis

Documentation

newtype CF' a Source

Constructors

CF [a] 

cfString :: CF -> String Source

Produce the (possibly infinite) decimal expansion of a continued fraction

cfcf :: CF' CF -> CF Source

Convert a continued fraction whose terms are continued fractions into an ordinary continued fraction with integer terms