math-functions: Collection of tools for numeric computations

[ bsd2, library, math, numeric ] [ Propose Tags ]

This library contain collection of various utilities for numerical computing. So far there're special mathematical functions, compensated summation algorithm, summation of series, root finding for real functions, polynomial summation and Chebyshev polynomials.

[Skip to Readme]
Versions [faq],,,,,,,,,,,,,,,,,,,,,,
Change log
Dependencies base (>=4.5 && <5), data-default-class (>=, deepseq, primitive, vector (>=0.11) [details]
License BSD-2-Clause
Author Bryan O'Sullivan <>, Alexey Khudyakov <>
Maintainer Alexey Khudyakov <>
Revised Revision 1 made by AlexeyKhudyakov at 2020-05-16T19:00:02Z
Category Math, Numeric
Home page
Bug tracker
Source repo head: git clone
Uploaded by AlexeyKhudyakov at 2020-05-16T16:54:13Z
Distributions Arch:, Debian:, Fedora:, FreeBSD:, LTSHaskell:, NixOS:, Stackage:, openSUSE:
Downloads 70023 total (1073 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]


[Index] [Quick Jump]



Use expm1 provided by system. For GHC newer that 8.0, GHCJS, and on Windows has no effect. GHC>=8.0 provides expm1 so it's used. On GHCJS and on Windows we don't have C implementation so bundled one is used instead.


Use erf and erfc provided by system. On GHCJS version provided by library is used regardless of flag for that lack of libc.


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees

Readme for math-functions-

[back to package description]

math-functions: collection of tools for numeric computations

Build Status Build status

This package provides collection of various tools for numeric computations. Namely:

  • Number pure haskell implementations of special function which are used in statistical and numerical computing.

  • Compensated summation (Kahan summation) which allows to

  • Root finding for functions of single real variable

  • Series summation

  • Functions for comparing IEEE754 numbers

Where possible, we give citations and computational complexity estimates for the algorithms used.

Get involved!

Please report bugs via the github issue tracker.

Master git mirror:

  • git clone git://

There's also a Mercurial mirror:

  • hg clone

(You can create and contribute changes using either Mercurial or git.)


This library is written and maintained by Bryan O'Sullivan and Aleksey Khudyakov