Go to file
2019-10-31 17:55:37 +00:00
build Remove fake boost_math library target; no longer required 2019-10-31 17:55:37 +00:00
config pFq: Add tests for hypergeometric_pFq_precision. 2019-08-01 15:19:01 +01:00
doc Update version number in docs. 2019-10-31 17:55:35 +00:00
dot_net_example [CI SKIP] changes to get inspect program problem-free, but one test failure in recurrence.cpp 2019-08-23 09:25:22 +01:00
example Add multiprecision test to continued fractions. 2019-09-10 18:22:33 +01:00
include/boost Cut down on the warnings that I've introduced slowly over time 2019-10-31 17:55:37 +00:00
include_private/boost/math test_data.hpp: Update to handle functions with more arguments. 2019-07-17 18:23:12 +01:00
meta Add metadata file. 2014-08-18 15:07:15 +01:00
minimax Change to use JM W0 version. 2018-01-30 12:11:03 +00:00
reporting [CI SKIP] changes to get inspect program problem-free, but one test failure in recurrence.cpp 2019-08-23 09:25:22 +01:00
src/tr1 Fix for build failure when there are no long double functions. 2012-10-10 12:21:16 +00:00
test Cut down on the warnings that I've introduced slowly over time 2019-10-31 17:55:37 +00:00
tools Update Lanczos generator program. 2019-10-18 17:58:31 +01:00
vc71_fix Apply VC-7.1 fixes: sometimes ADL fails, and we need a using declaration in order for the correct overload to be found. 2008-04-24 09:40:31 +00:00
.gitattributes Special functions, octonions, quaternions by Hubert Holin 2001-06-23 08:02:37 +00:00
.gitignore Add OSX debug symbol directories to .gitignore [CI SKIP] 2018-12-10 12:10:54 -07:00
.travis.yml 1F1: update xcode image in CI tests to the latest 2019-07-27 16:57:47 +01:00
appveyor.yml Also remove duplicated test of misc. 2019-10-14 14:26:18 -04:00
index.html Redirect to new index. 2007-10-11 11:51:19 +00:00
README.md Add CI badges 2018-11-06 19:43:19 +00:00

Boost Math Library Build Status

This library is divided into several interconnected parts:

Floating Point Utilities

Utility functions for dealing with floating point arithmetic, includes functions for floating point classification (fpclassify, isnan, isinf etc), sign manipulation, rounding, comparison, and computing the distance between floating point numbers.

Specific Width Floating Point Types

A set of typedefs similar to those provided by but for floating point types.

Mathematical Constants

A wide range of constants ranging from various multiples of π, fractions, Euler's constant, etc.

These are of course usable from template code, or as non-templates with a simplified interface if that is more appropriate.

Statistical Distributions

Provides a reasonably comprehensive set of statistical distributions, upon which higher level statistical tests can be built.

The initial focus is on the central univariate distributions. Both continuous (like normal & Fisher) and discrete (like binomial & Poisson) distributions are provided.

A comprehensive tutorial is provided, along with a series of worked examples illustrating how the library is used to conduct statistical tests.

Special Functions

Provides a small number of high quality special functions; initially these were concentrated on functions used in statistical applications along with those in the Technical Report on C++ Library Extensions.

The function families currently implemented are the gamma, beta & error functions along with the incomplete gamma and beta functions (four variants of each) and all the possible inverses of these, plus the digamma, various factorial functions, Bessel functions, elliptic integrals, sinus cardinals (along with their hyperbolic variants), inverse hyperbolic functions, Legrendre/Laguerre/Hermite/Chebyshev polynomials and various special power and logarithmic functions.

All the implementations are fully generic and support the use of arbitrary "real-number" types, including Boost.Multiprecision, although they are optimised for use with types with known significand (or mantissa) sizes: typically float, double or long double.

These functions also provide the basis of support for the TR1 special functions.

Root Finding and Function Minimisation

A comprehensive set of root-finding algorithms over the real line, both with derivatives and derivative free.

Also function minimisation via Brent's Method.

Polynomials and Rational Functions

Tools for manipulating polynomials and for efficient evaluation of rationals or polynomials.

Interpolation

Function interpolation via barycentric rational interpolation, compactly supported cubic B-splines, and the Chebyshev transform.

Numerical Integration and Differentiation

A reasonably comprehensive set of routines for integration (trapezoidal, Gauss-Legendre, Gauss-Kronrod, Gauss-Chebyshev, double-exponential, and Monte-Carlo) and differentiation (Chebyshev transform, finite difference, and the complex step derivative).

The integration routines are usable for functions returning complex results - and hence can be used for computation of contour integrals.

Quaternions and Octonions

Quaternion and Octonians as class templates similar to std::complex.

The full documentation is available on boost.org.

Master Develop
Travis Build Status Build Status
Appveyor Build status Build status

Support, bugs and feature requests

Bugs and feature requests can be reported through the Gitub issue tracker (see open issues and closed issues).

You can submit your changes through a pull request.

There is no mailing-list specific to Boost Math, although you can use the general-purpose Boost mailing-list using the tag [math].

Development

Clone the whole boost project, which includes the individual Boost projects as submodules (see boost+git doc):

$ git clone https://github.com/boostorg/boost
$ cd boost
$ git submodule update --init

The Boost Math Library is located in libs/math/.

Running tests

First, make sure you are in libs/math/test. You can either run all the tests listed in Jamfile.v2 or run a single test:

test$ ../../../b2                        <- run all tests
test$ ../../../b2 static_assert_test     <- single test
test$ # A more advanced syntax, demoing various options for building the tests:
test$ ../../../b2 -a -j2 -q --reconfigure toolset=clang cxxflags="--std=c++14 -fsanitize=address -fsanitize=undefined" linkflags="-fsanitize=undefined -fsanitize=address"

Building documentation

Full instructions can be found here, but to reiterate slightly:

libs/math/doc$ brew install docbook-xsl # on mac
libs/math/doc$ touch ~/user-config.jam
libs/math/doc$ # now edit so that:
libs/math/doc$ cat ~/user-config.jam
using darwin ;

using xsltproc ;

using boostbook
    : /usr/local/opt/docbook-xsl/docbook-xsl
    ;

using doxygen ;
using quickbook ;
libs/math/doc$ ../../../b2