Boost.org math module
The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:
ANNOUNCEMENT: Support for C++03 is now deprecated in this library and will be supported in existing features only until March 2021. New features will require at least C++11, as will existing features from next year.
This library is divided into several interconnected parts:
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.
A set of typedefs similar to those provided bybut for floating point types.
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.
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.
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, hypergeometrics, 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.
A comprehensive set of root-finding algorithms over the real line, both with derivatives and derivative free.
Also function minimisation via Brent's Method.
Tools for manipulating polynomials and for efficient evaluation of rationals or polynomials.
Function interpolation via barycentric rational interpolation, compactly supported quadartic, cubic, and quintic B-splines, the Chebyshev transform, trigonometric polynomials, Makima, pchip, and cubic Hermite splines.
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, the complex step derivative, and forward-mode automatic differentiation).
The integration routines are usable for functions returning complex results - and hence can be used for computation of contour integrals.
Quaternion and Octonians as class templates similar to std::complex.
The full documentation is available on boost.org.
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].
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
First, make sure you are in
libs/math/test. You can either run all the tests listed in
Jamfile.v2or run a single test:
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