continued-fractions: Continued fractions.

[ library, math, numerical, public-domain ] [ Propose Tags ]

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


[Skip to Readme]
Versions [faq] 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]
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 Tue Jan 29 02:58:20 UTC 2019
Distributions NixOS:0.10.0.2
Downloads 4627 total (82 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2019-01-29 [all 1 reports]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for continued-fractions-0.10.0.1

[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.