https://github.com/rockbmb/continued-fractions
Haskell library for manipulating and evaluating continued fractions.
https://github.com/rockbmb/continued-fractions
Last synced: 2 months ago
JSON representation
Haskell library for manipulating and evaluating continued fractions.
- Host: GitHub
- URL: https://github.com/rockbmb/continued-fractions
- Owner: rockbmb
- Created: 2019-01-28T00:53:15.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-02T04:30:16.000Z (over 6 years ago)
- Last Synced: 2024-04-26T01:02:05.041Z (about 1 year ago)
- Language: Haskell
- Homepage:
- Size: 76.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
Awesome Lists containing this project
README
Continued Fractions
=========[](https://travis-ci.com/rockbmb/continued-fractions)
`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:
```haskell
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.