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]


Manual Flags


Use expm1 provided by GHC. On GHCJS we don't have one so we have to use hand-coded one.


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


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],,,,,,,,,,,,,,,,,,,,,,,,,
Change log
Dependencies base (>=4.9 && <5), data-default-class (>=, deepseq, primitive, vector (>=0.11) [details]
License BSD-2-Clause
Author Bryan O'Sullivan <>, Alexey Khudyakov <>
Maintainer Alexey Khudyakov <>
Category Math, Numeric
Home page
Bug tracker
Source repo head: git clone
Uploaded by AlexeyKhudyakov at 2024-03-30T16:56:00Z
Distributions Arch:, Debian:, Fedora:, FreeBSD:, LTSHaskell:, NixOS:, Stackage:, openSUSE:
Reverse Dependencies 40 direct, 4727 indirect [details]
Downloads 93009 total (345 in the last 30 days)
Rating 2.25 (votes: 2) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

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