{"id":20077234,"url":"https://github.com/boostorg/math","last_synced_at":"2025-05-15T09:05:55.166Z","repository":{"id":6353114,"uuid":"7589942","full_name":"boostorg/math","owner":"boostorg","description":"Boost.org math module","archived":false,"fork":false,"pushed_at":"2025-05-14T11:18:40.000Z","size":184442,"stargazers_count":334,"open_issues_count":96,"forks_count":230,"subscribers_count":33,"default_branch":"develop","last_synced_at":"2025-05-14T12:39:13.359Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://boost.org/libs/math","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"cwi-swat/non-layered-tidy-trees","license":"bsl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/boostorg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2013-01-13T15:58:55.000Z","updated_at":"2025-05-13T04:58:50.000Z","dependencies_parsed_at":"2023-10-15T08:55:12.477Z","dependency_job_id":"cdede761-adf0-4654-a287-56035fb9a0e1","html_url":"https://github.com/boostorg/math","commit_stats":{"total_commits":5720,"total_committers":128,"mean_commits":44.6875,"dds":0.5748251748251748,"last_synced_commit":"53766896dded5ed9ce4953415250510e5161a99b"},"previous_names":[],"tags_count":122,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boostorg%2Fmath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boostorg%2Fmath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boostorg%2Fmath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boostorg%2Fmath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boostorg","download_url":"https://codeload.github.com/boostorg/math/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254310513,"owners_count":22049468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T15:06:39.512Z","updated_at":"2025-05-15T09:05:55.115Z","avatar_url":"https://github.com/boostorg.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"Boost Math Library\n============================\n\n\u003eANNOUNCEMENT: This library requires a compliant C++14 compiler.\n\n\n|                  |  Master  |   Develop   |\n|------------------|----------|-------------|\n| Drone            | [![Build Status](https://drone.cpp.al/api/badges/boostorg/math/status.svg?ref=refs/heads/master)](https://drone.cpp.al/boostorg/math)                                | [![Build Status](https://drone.cpp.al/api/badges/boostorg/math/status.svg)](https://drone.cpp.al/boostorg/math) |\n| Github Actions   | [![Build Status](https://github.com/boostorg/math/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/boostorg/math/actions?query=branch%3Amaster) | [![Build Status](https://github.com/boostorg/math/actions/workflows/ci.yml/badge.svg?branch=develop)](https://github.com/boostorg/math/actions?query=branch%3Adevelop) |\n| Codecov          | [![codecov](https://codecov.io/gh/boostorg/math/branch/master/graph/badge.svg)](https://codecov.io/gh/boostorg/math/branch/master)                                   | [![codecov](https://codecov.io/gh/boostorg/math/branch/develop/graph/badge.svg)](https://codecov.io/gh/boostorg/math/branch/develop) |\n\n\nThe Math library provides numerous advanced mathematical functions\nimplemented in modern C++. The library strives to deliver the utmost\nin numerical and syntactical correctness while still\nmaintaining high-performance.\n\nAll code is header-only, facilitating easy client setup\nand use throughout the entire diverse collection of functions.\n\nThe library is divided into several interconnected parts:\n\n### Floating Point Utilities\n\nUtility 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.\n\n### Specific Width Floating Point Types\n\nA set of `typedef`s similar to those provided by C++20's `\u003cstdfloat\u003e` but in `namespace boost`.\n\n### Mathematical Constants\n\nA wide range of constants ranging from fractions to various multiples of $\\pi$, Euler's constant, etc.\n\nThese are of course usable from template code, or as non-templates with a simplified interface if that is more appropriate.\n\n### Statistical Distributions\n\nProvides a reasonably comprehensive set of statistical distributions, upon which higher level statistical tests can be built.\n\nThe initial focus is on the central univariate distributions. Both continuous (like normal \u0026 Fisher) and discrete (like binomial \u0026 Poisson) distributions are provided.\n\nA comprehensive tutorial is provided, along with a series of worked examples illustrating how the library is used to conduct statistical tests.\n\n### Special Functions\n\nProvides a wide range of high quality special functions; initially these were concentrated\non functions used in statistical applications along with those in the Technical Report\non C++ Library Extensions.\n\nThe function families currently implemented are the gamma, beta and error functions\nalong with the incomplete gamma and beta functions (four variants of each)\nand all the possible inverses of these, plus the digamma, various factorial\nfunctions, Bessel functions, elliptic integrals, hypergeometrics, sinus cardinals\n(along with their hyperbolic variants), inverse hyperbolic functions,\nLegrendre/Laguerre/Hermite/Chebyshev polynomials\nand various special power and logarithmic functions.\n\nAll the implementations are fully generic and support the use of arbitrary \"real-number\" types,\nincluding those in [Boost.Multiprecision](https://github.com/boostorg/multiprecision).\nMost functions are, however, optimized for use with types with known significand (or mantissa) sizes:\ntypically built-in `float`, `double` or `long double`.\n\nThese functions also provide the basis of support for the TR1 special functions,\nmany of which became standardized in [C++17](https://en.cppreference.com/w/cpp/numeric/special_functions).\n\n### Root Finding\n\nA comprehensive set of root-finding algorithms over the real line, both with derivatives and derivative free.\n\n### Optimization\n\nMinimization of cost functions via Brent's method and differential evolution.\n\n### Polynomials and Rational Functions\n\nTools for manipulating polynomials and for efficient evaluation of rationals or polynomials.\n\n### Interpolation\n\nFunction interpolation via barycentric rational interpolation,\ncompactly supported quadratic, cubic, and quintic B-splines,\nthe Chebyshev transform, trigonometric polynomials, Makima,\npchip, cubic Hermite splines, and bilinear interpolation.\n\n### Numerical Integration and Differentiation\n\nA reasonably comprehensive set of routines for integration\n(trapezoidal, Gauss-Legendre, Gauss-Kronrod, Gauss-Chebyshev, double-exponential, and Monte-Carlo)\nand differentiation (Chebyshev transform, finite difference, the complex step derivative,\nand forward-mode automatic differentiation).\n\nThe integration routines are usable for functions returning complex results - and hence can be used for computation of  contour integrals.\n\n### Quaternions and Octonions\n\nQuaternion and Octonion are class templates similar to std::complex.\n\nThe full documentation is available on [boost.org](http://www.boost.org/doc/libs/release/libs/math).\n\n### Standalone Mode\n\nDefining `BOOST_MATH_STANDALONE` allows Boost.Math to be used without any Boost dependencies.\nSome functionality is reduced in this mode. A static_assert message will alert you\nif a particular feature has been disabled by standalone mode. Standalone mode is not designed to \nbe used with the rest of boost, and may result in compiler errors.\n\n## Supported Compilers\n\nThe following compilers are tested with the CI system, and are known to work.\nCurrently a compiler that is fully compliant with C++14 is required to use Boost.Math.\n\n* g++ 5 or later\n* clang++ 5 or later\n* Visual Studio 2015 (14.0) or later\n\n## Support, bugs and feature requests\n\nBugs and feature requests can be reported through the [GitHub issue tracker](https://github.com/boostorg/math/issues)\n(see [open issues](https://github.com/boostorg/math/issues) and\n[closed issues](https://github.com/boostorg/math/issues?utf8=%E2%9C%93\u0026q=is%3Aissue+is%3Aclosed)).\n\nYou can submit your changes through a [pull request](https://github.com/boostorg/math/pulls).\n\nThere is no mailing-list specific to Boost Math, although you can use the general-purpose Boost [mailing-list](http://lists.boost.org/mailman/listinfo.cgi/boost-users) using the tag [math].\n\n\n## Development\n\nClone the whole boost project, which includes the individual Boost projects as submodules ([see boost+git doc](https://github.com/boostorg/boost/wiki/Getting-Started)):\n\n    $ git clone https://github.com/boostorg/boost\n    $ cd boost\n    $ git submodule update --init\n\nThe Boost Math Library is located in `libs/math/`.\n\n### Running tests\n\nFirst, make sure you are in `libs/math/test`.\nYou can either run all the tests listed in `Jamfile.v2` or run a single test:\n\n    test$ ../../../b2                        \u003c- run all tests\n    test$ ../../../b2 static_assert_test     \u003c- single test\n    test$ # A more advanced syntax, demoing various options for building the tests:\n    test$ ../../../b2 -a -j2 -q --reconfigure toolset=clang cxxflags=\"--std=c++14 -fsanitize=address -fsanitize=undefined\" linkflags=\"-fsanitize=undefined -fsanitize=address\"\n\n### Continuous Integration\n\nThe default action for a PR or commit to a PR is for CI to run the full complement of tests. The following can be appended to the end of a commit message to modify behavior:\n\n    * [ci skip] to skip all tests\n    * [linux] to test using GCC Versions 5-12 and Clang Versions 5-14 on Ubuntu LTS versions 18.04-22.04.\n    * [apple] to test Apple Clang on the latest version of MacOS.\n    * [windows] to test MSVC-14.0, MSVC-14.2, MSVC-14.3, CYGWIN, and mingw on the latest version of Windows.\n    * [standalone] to run standalone mode compile tests\n     \n\n### Building documentation\n\nFull instructions can be found [here](https://svn.boost.org/trac10/wiki/BoostDocs/GettingStarted), but to reiterate slightly:\n\n```bash\nlibs/math/doc$ brew install docbook-xsl # on mac\nlibs/math/doc$ touch ~/user-config.jam\nlibs/math/doc$ # now edit so that:\nlibs/math/doc$ cat ~/user-config.jam\nusing darwin ;\n\nusing xsltproc ;\n\nusing boostbook\n    : /usr/local/opt/docbook-xsl/docbook-xsl\n    ;\n\nusing doxygen ;\nusing quickbook ;\nlibs/math/doc$ ../../../b2\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboostorg%2Fmath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboostorg%2Fmath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboostorg%2Fmath/lists"}