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]
Versions [faq] 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 Sun Feb 3 01:55:05 UTC 2019
Distributions NixOS:
Downloads 3769 total (100 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2019-02-03 [all 1 reports]


[Index] [Quick Jump]


Maintainer's Corner

For package maintainers and hackage trustees

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.