gamma: Gamma function and related functions.

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

Approximations of the gamma function, incomplete gamma functions, generalized gamma functions, and factorials.

[Skip to Readme]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Versions [RSS] 0.7,,,,
Change log
Dependencies base (>=4.9 && <5), continued-fractions (>=0.10), converge, template-haskell, vector (>=0.5) [details]
License LicenseRef-PublicDomain
Author James Cook <mokus ΑΤ deepbondi dοt net>
Maintainer James Cook <mokus ΑΤ deepbondi dοt net>, Alexandre Rodrigues Baldé <alexandrer_b ΑΤ outlook dοt com>
Category Math, Numerical
Home page
Bug tracker
Source repo head: git clone git://
Uploaded by rockbmb at 2019-02-03T01:55:05Z
Reverse Dependencies 9 direct, 65 indirect [details]
Downloads 6629 total (10 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2019-02-03 [all 1 reports]

Readme for gamma-

[back to package description]


Build Status

gamma is a number theory package written in Haskell that aims to provide its users with the following functionality:

  • A typeclass
    class Num a => Factorial a
    that provides a factorial function.
  • A typeclass
    class (Eq a, Floating a, Factorial a) => Gamma a
    that provides the functions
    • gamma
    • lnGamma (natural logarithm of the gamma function) and
    • lnFactorial (natural logarithm of the factorial function).
  • A typeclass
    class Gamma a => IncGamma a
    for the incomplete lower and upper gamma functions.
  • A typeclass
    class Gamma a => GenGamma a
    to represent the multivariate gamma function.