A Haskell number theory library. This library provides functions for working in Z (the integers), Z mod m (the residue classes mod m), Z * Zi (the Gaussian integers), and for converting quadratic numbers into their continued fraction representations.
Refer to the Haddock documentation for docs.
$ cabal configure
$ cabal build
$ cabal haddock
$ cabal install
$ ghci
Prelude> import NumberTheory