continued-fractions: Continued fractions.

[ library, math, numerical, public-domain ] [ Propose Tags ] [ Report a vulnerability ]

A type and some functions for manipulating and evaluating continued fractions.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.9, 0.9.0.1, 0.9.1.0, 0.9.1.1, 0.10.0.0, 0.10.0.1, 0.10.0.2
Change log CHANGES.md
Dependencies base (>=4.9 && <5) [details]
Tested with ghc ==8.0.2, ghc ==8.2.2, ghc ==8.4.3, ghc ==8.6.1
License LicenseRef-PublicDomain
Author James Cook <mokus ΑT deepbondi dot net>
Maintainer James Cook <mokus ΑT deepbondi dot net>, Alexandre Rodrigues Baldé <alexandrer_b ΑT outlook dot com>
Category Math, Numerical
Home page https://github.com/rockbmb/continued-fractions
Bug tracker https://github.com/rockbmb/continued-fractions/issues
Source repo head: git clone https://github.com/rockbmb/continued-fractions.git
Uploaded by rockbmb at 2019-01-29T03:34:43Z
Distributions
Reverse Dependencies 2 direct, 73 indirect [details]
Downloads 8152 total (33 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2019-01-29 [all 1 reports]

Readme for continued-fractions-0.10.0.2

[back to package description]

Continued Fractions

Build Status

continued-fractions is a Haskell library for manipulating and evaluating continued fractions.

To use this library, the following information is relevant:

  • The CF datatype is defined thusly:
data CF a = CF a [a]
          | GCF a [(a,a)]

where the CF constructor is used to represent continued fractions whose numerators are all 1, and GCF represents generalized continued fractions. These constructors are not exported.

  • The cf :: a -> [a] -> CF a function is used to create continued fractions.

  • The gcf :: a -> [(a,a)] -> CF a function is used to create generalized continued fractions.