gutenberg-fibonaccis-1.0.4: The first 1001 Fibonacci numbers, retrieved from the Gutenberg Project.

Safe HaskellSafe-Inferred

Algorithm.Gutenberg.Fibonaccis

Synopsis

Documentation

fibsLen :: IntSource

The fibsLen function returns the number of Fibonacci numbers in the first1001Fibs list.

fibsUpToSource

Arguments

:: Integer

The maximum Fibonacci number to return

-> [Integer]

Returns all Fibonaccis below the threshold

The fibsUpTo function returns the list of Fibonacci numbers that are less than or equal to the given number.

first1001Fibs :: [Integer]Source

first1001Fibs is a list of the first 1001 Fibonacci numbers. This list was retrieved from the Gutenberg Project (http:www.ibiblio.orgpubdocsbooksgutenbergetext01fbncc10.txt)

isFibSource

Arguments

:: Integer

The number to test

-> Bool

Returns whether or not the number is a Fibonacci

The isFib function returns whether or not the given number is a Fibonacci number.

lastFib :: IntegerSource

The lastFib function returns the last Fibonacci number in the list of Fibonacci numbers, first1001Fibs.

nthFibSource

Arguments

:: Int

The index of the Fibonacci number

-> Integer

Returns the requested Fibonacci number

The nthFib function returns the nth Fibonacci number.