Commit Graph

451 Commits

Author SHA1 Message Date
Nick Thompson
4cce07e15e Implement tangent vector computation. Fix index lookup. Close all Catmull-Rom curves and document. 2017-12-22 16:31:36 -07:00
Nick Thompson
cad34ff756 First pass at a Catmull-Rom curve interpolator. 2017-12-21 16:12:24 -07:00
Nick Thompson
67578ce12b Naive Monte-Carlo integration. Still needs to handle exceptions in threads. 2017-11-21 18:49:14 -07:00
pabristow
9b9414c256 numerous minor fixes for JM 1st comments on docs 19Nov17 2017-11-20 17:03:29 +00:00
pabristow
21ccf8b183 More testing near zero and some typos fixed. 2017-11-17 17:57:45 +00:00
pabristow
6aa9f286ff Tests OK, including multiprecision. 2017-11-16 17:58:59 +00:00
jzmaddock
1783c3a74c Math: Fix inspection report errors. 2017-11-09 19:39:32 +00:00
pabristow
89ae728836 added graphs and updated docs to use them. 2017-11-06 17:18:33 +00:00
pabristow
dd06d2beae 100 decimal digit precision values and tests OK. 2017-10-10 15:13:49 +01:00
jzmaddock
25cc8fdad7 Add Gauss and Gauss-Kronrod docs. 2017-09-09 19:18:08 +01:00
pabristow
c1b8ffec7c Needed to merge? 2017-08-31 12:50:11 +01:00
jzmaddock
e7e915816f Merge branch 'gauss_konrod' of https://github.com/NAThompson/math into gauss
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2017-08-24 11:47:26 +01:00
jzmaddock
21b00bba62 Merge branch 'develop' into pr66
Fixed Conflicts:
test/Jamfile.v2
2017-07-15 16:06:27 +01:00
jzmaddock
ffc1106124 Disable barycentric example for older compilers due to change in Boost.Range. 2017-07-01 08:26:24 +01:00
jzmaddock
0fab8fd7c5 Update example Jamfile to handle older compilers. 2017-06-30 09:26:54 +01:00
jzmaddock
9651db9ea7 Rework Jamfiles to make them easier to maintain,
also added examples to CI testing.
2017-06-29 18:27:26 +01:00
jzmaddock
092d4580fd Update and regenerate docs. 2017-06-27 18:35:30 +01:00
pabristow
555e0f416b commit merge from develop 2017-06-22 17:05:02 +01:00
jzmaddock
5e3fd1574e Merge branch 'double_exponential' of https://github.com/NAThompson/math into pr66 2017-06-17 18:10:25 +01:00
jzmaddock
9a8324c989 Merge pull request #71 from boostorg/pr65
PR based on #65 prepared for CI testing
2017-06-17 09:02:56 +01:00
jzmaddock
fdd959a32f Merge branch 'cleanup' of https://github.com/NAThompson/math into pr65.
Also made a couple of  minor modifications.
2017-06-16 19:35:13 +01:00
jzmaddock
a8bb78d25b Merge branch 'romberg' of https://github.com/NAThompson/math into pr59
# Resolved Conflicts:
#	test/Jamfile.v2
2017-06-15 18:26:48 +01:00
jzmaddock
0d15adb16f CI: Fix some more mingw issues
Make serialization a static link and split gcc-6.3 tests into smaller blocks so we don't time out.
2017-06-05 19:49:08 +01:00
jzmaddock
540c93c542 CI: Fix more testing configuration issues.
* Disable testing the old mingw32 - it's too broken.
* Add feature dependency checks for new C++11 tests.
* Disable some tests that generate too large object files.
2017-06-05 09:32:00 +01:00
Nick
1753d6e9e4 Merge branch 'develop' into romberg 2017-05-18 17:34:52 -06:00
Nick Thompson
78409954f2 Use quadrature namespace. Add example. 2017-05-11 21:51:35 -06:00
Nick Thompson
4801e2d8bf Add namespace boost::math::quadrature. Remove throw when condition number of summation exceeds precision of type; how to properly mollify the condition number is not clear and should be done consistently rather than ad-hoc. 2017-05-11 21:03:00 -06:00
jzmaddock
47a126c938 Legendre-Stieltjes: Disable tests in C++03 mode which would fail. 2017-05-10 18:11:37 +01:00
jzmaddock
5db9e8870b Legendre_stieltjes: hook up tests.
Add concept checks.
Fix some warnings, and reduce dependencies.
2017-05-09 19:13:44 +01:00
jzmaddock
83891e2b79 Merge branch 'legendre_stieltjes' of https://github.com/NAThompson/math into stieltjes 2017-05-09 18:36:53 +01:00
John Maddock
72a757d770 Fix non C++11 compiler failures, plus some other build/test related issues on interpolator code 2017-05-07 08:52:04 +01:00
jzmaddock
87ab68456d Improve interpolator documentation and examples. 2017-05-06 12:26:37 +01:00
jzmaddock
9c5604eec5 Add interpolation examples and tests to Jamfiles. 2017-05-04 13:19:09 +01:00
jzmaddock
adc2234d95 Merge branch 'barycentric' of https://github.com/NAThompson/math into interpolate_rat
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2017-05-04 13:18:05 +01:00
Nick Thompson
cf35d745d1 Remove unused typedef. Fix dangling reference to policy in airy. Pipe unused variables in compile test to /dev/null to suppress compiler warnings. Remove comment within comment. 2017-05-03 10:13:18 -06:00
Nick Thompson
2bbadc69fb Place copyright notices in file. 2017-05-01 18:36:26 -06:00
Nick Thompson
4b4c4e9364 Legendre-Stieltjes polynomials. 2017-04-30 15:58:10 -06:00
pabristow
c5ee664a51 Refactored with policies and passes tests and timing. 2017-03-23 14:15:37 +00:00
pabristow
bdee37743d Bug in values near to -exp(-1) corrected. 2017-03-13 10:03:33 +00:00
Nick Thompson
136e7411f5 Adaptive Trapezoidal Quadrature
This routine estimates the definite integral of a function f.
Assuming that f is periodic, it can be shown that this routine converges exponentially fast.
In fact, the test cases given exhibit exponential convergence with decreasing stepsize.

A potential improvement is using the Bulirsch sequence rather than the Romberg sequence to schedule the refinements.
However, the convergence is so rapid for functions of the class specified above that there seems to be no need at present.

This code is cppcheck clean, and runs successfully under AddressSanitizer and UndefinedBehaviorSanitizer.
2017-03-05 19:05:41 -06:00
Nick Thompson
7dbd074343 Add population example. 2017-03-03 08:58:18 -06:00
Nick Thompson
2b9d88d352 Fixes suggested by code review of PR #57. 2017-03-02 11:54:55 -06:00
pabristow
eb2707e8b0 Failed attempts to get create_test_value to work. 2017-01-02 18:31:16 +00:00
pabristow
ffb025ca2c First very rough prototype of Lambert W function, example of calculating diode current versus voltage, and some tests, including multiprecision and fixed_point types. Not yet using policies and trouble near the singularity at z=-exp(-1) and large z. 2016-12-22 18:30:27 +00:00
pabristow
84a626e000 Revision to Chap 3 overview section 2016-08-12 16:12:46 +01:00
pabristow
62aa43b044 Removed example/quadmath_snprintf.c 2016-08-12 15:16:17 +01:00
pabristow
fe4dbc344a Additions to cstdfloat and float128 docs 2016-08-03 12:03:26 +01:00
Jeremy W. Murphy
0fd22d787c polynomial: Example documentation for test/set zero. 2016-05-15 18:32:17 +10:00
jzmaddock
c9bf1df944 Merge branch 'polynomial_shift' of https://github.com/jeremy-murphy/math into develop
# Resolved Conflicts:
#	test/test_polynomial.cpp
2016-05-09 18:29:22 +01:00
jzmaddock
993cdcb42e Reduce dependencies by removing all use of Boost.Format.
We made only cursory use of the lib, so it's just as easy to do with it.
Also fixed a number of missing #includes which were hidden by including format.hpp.
2016-05-09 11:38:13 +01:00
Jeremy W. Murphy
ab87cb4d27 polynomial: Document right/left shift and odd/even functionality. 2016-04-07 14:54:39 +10:00
Jeremy W. Murphy
e75d47e24a Fix bugs in printing out zero coefficients. 2016-04-07 14:53:33 +10:00
Jeremy W. Murphy
d9fa9fc477 Make an example of brace initializer_list construction. 2016-03-02 13:39:02 +11:00
pabristow
7a7d3321fe Moved polystuff to tools, added JWM as author and numerous minor edits 2015-12-14 16:13:05 +00:00
pabristow
b2bd954faa Polish polynomial example. 2015-12-13 17:33:17 +00:00
jzmaddock
c36506f852 Merge pull request #17 from jeremy-murphy/polynomial_division
Polynomial division
2015-12-13 12:06:00 +00:00
Jeremy W. Murphy
ccbab25823 Polynomial arithmetic example. 2015-12-13 18:18:20 +11:00
akumta
352250c017 remove redundant using statement 2015-12-02 11:19:28 -08:00
akumta
a1c290b1cf remove redundant using statement 2015-12-02 11:10:28 -08:00
akumta
0a88915e2f remove redundant using statement 2015-12-02 11:09:49 -08:00
akumta
bf6c0c55dd remove redundant using statement 2015-12-02 11:08:37 -08:00
akumta
700dae7e89 remove redundant using statement 2015-12-02 11:06:51 -08:00
akumta
7ed88bcdcc update for ticket #11827 2015-12-01 11:05:45 -08:00
akumta
108475fcbf update for ticket #11827 2015-12-01 11:04:29 -08:00
akumta
cf75babb29 update for ticket #11827 2015-12-01 11:03:32 -08:00
akumta
e45ef56d65 update for ticket #11827 2015-12-01 11:01:28 -08:00
akumta
44011b9ec1 update for ticket #11827 2015-12-01 10:56:55 -08:00
jzmaddock
d719e4b567 Remove no longer needed special_functions sub-directory.
Also fix lots of inspect-report failures.
2015-09-07 19:35:29 +01:00
jzmaddock
59a2bd5cb8 Remove the quaternion directory and move contents elsewhere. 2015-09-07 19:09:55 +01:00
jzmaddock
c6593b149b Fix GCC test failures when building with -fno-exceptions. 2015-09-06 19:21:17 +01:00
jzmaddock
ba365b5aaa Enable running of tests with exception handling off.
And fix a few bugs that showed up in the process.
Currently msvc-only (not GCC as Boost.Test doesn't build).
2015-09-05 19:08:28 +01:00
jzmaddock
258a2aeb4c Big warning suppression fix for VC14. 2015-08-01 18:00:41 +01:00
jzmaddock
3bc8020b0d Add docs for airy zeros.
Implementation notes still need adding!
2015-05-26 19:37:43 +01:00
jzmaddock
cb752efcb3 Paul's doc corrections. 2015-05-25 08:46:48 +01:00
jzmaddock
73c27a1a6d Rewrite float-comparison docs to use new public interfaces. 2015-05-23 12:06:36 +01:00
jzmaddock
251e556e42 Fix spelling of "tripples". 2015-05-18 18:28:53 +01:00
jzmaddock
74a42f98ea Fix various typos.
Change Schroeder to Schroder.
2015-05-18 18:23:47 +01:00
jzmaddock
7dd1fb6342 Build performance tables from Jamfile.
Improve table generation.
Update docs with GCC tables.
2015-05-14 13:27:50 +01:00
jzmaddock
95e1ca379b Add the program that generates iteration count tables. 2015-05-12 19:35:12 +01:00
jzmaddock
0b166f37ab Merge branch 'develop' into rooting 2015-05-11 19:08:00 +01:00
jzmaddock
36d0b96347 Tidy up n'th root examples, add stub for elliptic examples. 2015-05-11 13:48:08 +01:00
jzmaddock
e68feb62b6 make boost-root locating consistent. 2015-05-10 11:59:58 +01:00
jzmaddock
ce3c5e5fbc Improve cbrt comparison code.
Tidy up docs.
Clean up unnecessary #includes
Improve file name handling.
Re run performance tests.
2015-05-09 18:32:40 +01:00
jzmaddock
282a74beea Correct call to abs - should be std::abs. 2015-05-06 18:36:30 +01:00
jzmaddock
805fb89a61 Improve root finding examples.
Add updated elliptic integral tests.
Add lambda example.
Tweak wording in places.
2015-05-05 13:22:29 +01:00
jzmaddock
ef0241c0a3 Add elliptic integral example. 2015-05-04 18:36:40 +01:00
jzmaddock
dc1c023540 Minor edits to minimization docs and examples. 2015-04-30 18:33:18 +01:00
jzmaddock
a0fb417bc0 Tidy up comments. 2015-04-30 18:32:48 +01:00
jzmaddock
5cbf37159e Change to use sensible defaults for required digit counts. 2015-04-29 17:57:27 +01:00
jzmaddock
6277275f32 Make sure results of timed calls are really *really* used.
Optimize derivative calculation to reduce redundant computation.
2015-04-28 18:45:24 +01:00
jzmaddock
8d394d4f53 Make sure calculated results are really used to avoid spurious optimizations. 2015-04-27 19:43:56 +01:00
jzmaddock
8b0aaec93f Tidy up:
Remove unneeded '#includes.
Improve finding of boost-root.
Fix debug/release detection to not use MSVC specific macros.
2015-04-27 19:27:22 +01:00
pabristow
e7ae689ea5 New sections of examples or cube, fifth, multiprecision and nth root finding, and comparison of timing and iterations. 2015-04-26 17:41:10 +01:00
Lauri Nurmi
0c273d09a9 Fix spelling of "occurr*". 2015-03-28 22:11:16 +02:00
pabristow
9b293b689d No bad links from inspect and fp_comparison revised. 2015-03-13 13:02:31 +00:00
pabristow
2b57792dbc rooting links corrected, build clean, but some links still broken. 2015-03-12 18:05:36 +00:00
pabristow
7a74c3728f New example and .qbk 2015-03-05 10:25:19 +00:00
jzmaddock
e5a25df9a2 Make a few edits and reorganize root finding docs. 2014-12-15 18:30:39 +00:00
pabristow
4da25c8bb4 Work in progress on root finding examples. 2014-12-12 12:03:29 +00:00
jzmaddock
ccc5dcda99 [examples] Disable initializer list tests for gcc-4.4.x as the compiler doesn't seem to support then even though it has <initializer_list>. 2014-12-10 18:50:22 +00:00
pabristow
39b499bd42 Add arcsine example 2014-10-20 14:38:03 +01:00
pabristow
5a6d292729 Changed comments on snips. 2014-09-25 16:38:38 +01:00
jzmaddock
bc77596f23 Improve calculation of phase probabilities when normalizing so they really should add up to 1.
Allow slight tolerance in checking for sum of phase probabilities.
Add missing call to normalize in iterator constructor.
Remove asserts that duplicated the error handling code - better to provide consistent behavior via the error handlers.
Add comment to examples about other containers working equally well.
2014-09-03 19:25:20 +01:00
sguazt
3c596733f8 [distributions] Hyper-Exponential: added example and doc from (Wolski et al.,2013) paper. 2014-09-01 23:49:32 +02:00
jzmaddock
f8e0a5524d Move code snippets into separate cpp file. 2014-09-01 19:18:12 +01:00
jzmaddock
6e8145a076 Add code to profile changes to toms748_solve.hpp to see if their effect is beneficial.
Change the heuristics used when the initial guess is really bad.
Change example to return a fail-code when an error occurs.
2014-07-31 12:48:23 +01:00
jzmaddock
e20b44e8a9 Move headers that are mostly used for internal maintenance and testing into an "include_private" directory - this is to reduce dependencies on other Boost modules when using this library. 2014-06-09 16:08:35 +01:00
pabristow
7a88296853 Example of upto 128-bit normal tables using cstdfloat 2014-03-16 13:01:47 +00:00
pabristow
e1b4cfe8b6 New examples using cstdfloat 2014-03-16 12:58:10 +00:00
jzmaddock
e0745c7612 Tentative fix for VC12 failures - don't use unnamed namespace for tgamma examples as VC12 has ::tgamma. 2014-01-23 16:48:57 +00:00
jzmaddock
ee56e2c03d Fix Student's t example in code and docs.
Update history: we've added new features so go up a version number.
Regenerate docs.
2014-01-17 18:48:20 +00:00
jzmaddock
8d04137d55 Fix some inspection report issues. 2014-01-14 17:52:37 +00:00
jzmaddock
d65d281de1 Fix some issues in bernoulli docs. 2014-01-11 18:59:14 +00:00
Paul Bristow
56b4ae4425 First revision to docs. 2014-01-10 18:12:06 +00:00
jzmaddock
2216a07483 Fix example so it actually compiles, add better OutputIterator usage and fix try/catch blocks. 2014-01-09 10:18:49 +00:00
Paul Bristow
e0be796c64 Bernoulli example (used by docs) 2014-01-07 14:56:35 +00:00
John Maddock
294e4fcb31 Add needed file.
[SVN r85177]
2013-07-31 11:47:52 +00:00
Paul A. Bristow
138cfa2447 Changed links in examples to use def __ style links
[SVN r84324]
2013-05-17 11:02:32 +00:00
Paul A. Bristow
0f7e4baf16 Changed links in examples to use def __ style links
[SVN r84323]
2013-05-17 11:00:49 +00:00
Paul A. Bristow
db7a1c2a55 Changed links in examples to use def __ style links
[SVN r84321]
2013-05-17 10:59:59 +00:00
John Maddock
9f17b2d2e7 Duplicated more of Trunk's files so we can check links.
Search-and-replace fixed a bunch of links.
Regenerate docs.

[SVN r84208]
2013-05-09 17:58:27 +00:00
John Maddock
a1d526bd36 Change to quickbook 1.6.
Change to use chapters at the top level.
Big search and replace on link names.

[SVN r84201]
2013-05-09 09:04:20 +00:00
John Maddock
57cba0eef4 Reorganise directory structure to make things easier to find and maintain.
[SVN r84143]
2013-05-05 12:32:36 +00:00
John Maddock
cb2804cba0 Remove files that have already been merged to trunk.
[SVN r84124]
2013-05-03 17:37:10 +00:00
John Maddock
81e1943d03 Remove duplicate entry.
[SVN r83620]
2013-03-28 11:30:36 +00:00
Paul A. Bristow
f0b0d0e75c Added #include and try/n/catch blocks to try to see why fails on some platforms (mainly Teeks).
[SVN r83560]
2013-03-25 17:54:57 +00:00
Paul A. Bristow
b57030b7d0 Updates to Bessel and Airy examples.
[SVN r83419]
2013-03-13 17:28:54 +00:00
Paul A. Bristow
e620f3f56a New airy example, providing snippets for docs.
[SVN r83418]
2013-03-13 17:10:13 +00:00
Paul A. Bristow
1e82b52349 Corrected wrong tolerance for check close percent and fraction.
[SVN r83413]
2013-03-12 17:51:35 +00:00
Paul A. Bristow
99507b3d9f Minor corrections from John 10 Mar 13
[SVN r83407]
2013-03-11 12:19:51 +00:00
John Maddock
bc86f6503e Beautify formatting a little.
[SVN r83399]
2013-03-10 17:20:55 +00:00
Paul A. Bristow
987e4396c5 Added split into four examples to the jamfile.
[SVN r83362]
2013-03-08 12:53:35 +00:00
Paul A. Bristow
c7c6172eb9 Bessel and Neumann examples, split into four files.
[SVN r83361]
2013-03-08 12:50:39 +00:00
Paul A. Bristow
5896a2e6a1 Removed 'expected to fail' example.
[SVN r83355]
2013-03-08 10:00:48 +00:00
Paul A. Bristow
0b13cd9a50 Added missing & to std::exception
[SVN r83285]
2013-03-03 18:11:12 +00:00
Paul A. Bristow
3deab3df31 Cosmetic.
[SVN r83059]
2013-02-21 10:22:05 +00:00
John Maddock
c81974e215 Add missing link dependency to Paul Bristow's new example.
Fix tgamma bug reported by Rocco Romeo.
Update history.

[SVN r83011]
2013-02-19 17:02:50 +00:00
Paul A. Bristow
f140d2afb6 Added example of switching expression templates off and using Boost.Test BOOST_CHECK_CLOSE_FRACTION macros.
[SVN r82913]
2013-02-15 18:51:31 +00:00
Paul A. Bristow
b31c119bc8 Use more accurate values for airy zeros as max and min to suit 80 bit long double platforms.
[SVN r82900]
2013-02-15 11:01:22 +00:00
Paul A. Bristow
221985b1e4 use Kahan formula where max_digits10 not available.
[SVN r82899]
2013-02-15 10:49:15 +00:00
Paul A. Bristow
68837b272e Changed to use revised order (and other minor changes).
[SVN r82773]
2013-02-07 14:47:44 +00:00
Paul A. Bristow
f21f359d3b Simplistic example of using multiprecision. Not sure if this is useful?
[SVN r82761]
2013-02-06 17:06:29 +00:00
Paul A. Bristow
b6e135c144 Changes to reflect new signatures of bessel zeros
[SVN r82732]
2013-02-04 18:02:37 +00:00
Paul A. Bristow
f2d563001c Added 2nd {{ and }} and a comment "for some GCC compiler versions"
[SVN r82723]
2013-02-04 10:12:29 +00:00
Paul A. Bristow
3b4322354f Added sample output from fft_sines_table multiprecision use example. (will be referenced from the docs.)
[SVN r82722]
2013-02-04 10:07:14 +00:00
Paul A. Bristow
5ebccaba0c Example of Boost.Multiprecision to generate a high-precision array of sin coefficents for use with FFT.
Version that writes an array (std:: or Boost:: as appropriate).

Quickbook embedded, but not used yet.  TODO!

[SVN r82688]
2013-02-02 16:35:40 +00:00
Paul A. Bristow
a2fce16747 Update to distribution construction examples to include examples of multiprecision.
[SVN r82687]
2013-02-02 16:31:57 +00:00
Paul A. Bristow
7ecf164aad Very much draft temporary commit while we discover the cause of difference between platforms.
[SVN r82667]
2013-01-31 10:12:07 +00:00
Paul A. Bristow
dacdfc4bf6 INitial commit of Chris's bessel zero example - but with a simple integral order test added (and long warning).
[SVN r82639]
2013-01-27 18:04:33 +00:00
Marshall Clow
5015967f95 Removed missed usage of deprecated macros in Boost.Math
[SVN r81586]
2012-11-27 14:19:45 +00:00