Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Provides the first 1001 Fibonacci numbers, retrieved from the Gutenberg Project, along with functions to retrieve and query these numbers in Haskell.
Haskell
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
javascripts
src/Algorithm/Gutenberg
stylesheets
.gitignore
COPYING
README.md
Setup.hs
gutenberg-fibonaccis.cabal
index.html
params.json

README.md

gutenberg-fibonaccis

Provides the first 1001 Fibonacci numbers, retrieved from the Gutenberg Project, along with functions to retrieve and query these numbers in Haskell.

The Git repository for this package can be found at https://github.com/justinhanekom/gutenberg-fibonaccis.

This repository can be freely used and/or modified as per the GNU General Public License, version 3. Change requests, criticisms, or contributions are most welcome!

Below are some samples of using the Gutenberg.Fibonaccis Haskell module from an interactive console such as as ghci.

Examples

>>> fibsLen
1001

>>> fibsUpTo 35
[1, 1, 2, 3, 5, 8, 13, 21, 34]

>>> isFib 21
True

>>> isFib 23
False

>>> firstFib
1

>>> nthFib 6
8

>>> nthFib lastFib
70330367711422815821835254877183549770181269836358732742604905087154537118196933579742249494562611733487750449241765991088186363265450223647106012053374121273867339111198139373125598767690091902245245323403501

Changes

Changes in 1.1.1

Changes in 1.1.0

Changes in 1.0.5

  • Updated and expanded documentation using Haddock markup
Something went wrong with that request. Please try again.