Special mathematical functions
Haskell Python R
Clone or download


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://github.com/bos/math-functions.git

There's also a Mercurial mirror:

  • hg clone https://bitbucket.org/bos/math-functions

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


This library is written and maintained by Bryan O'Sullivan bos@serpentine.com and Aleksey Khudyakov alexey.skladnoy@gmail.com.