Jeremy W. Murphy
240e4e6e0f
Separate out into unchecked_synthetic_division().
2015-10-25 12:05:32 +11:00
Jeremy W. Murphy
35041b318c
Add / and %.
2015-10-25 10:49:47 +11:00
Jeremy W. Murphy
cf840c4ce2
First draft of working quotient_remainder.
2015-10-25 01:46:20 +11:00
jzmaddock
a7a0117859
Tentative VC7.1 fix.
2015-10-22 10:51:04 +01:00
jzmaddock
5d42feb5c1
Reduce conceptual requirements on log_min_value/log_max_value.
2015-10-22 10:12:55 +01:00
jzmaddock
1690851386
Fix for __float128 support in fpclassify.
2015-09-24 10:18:29 +01:00
jzmaddock
2f31042470
Merge branch 'develop' of https://github.com/boostorg/math into develop
2015-09-11 12:02:29 +01:00
jzmaddock
3287c922ea
Fix some corner cases in the beta functions.
...
Add better tests for the incomplete beta derivative.
Update docs to match.
2015-09-11 12:02:04 +01:00
Adam Wulkiewicz
00714c1a6d
Fix type passed into BOOST_MATH_NOEXCEPT() in specialization of epsilon().
2015-09-09 15:06:29 +02: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
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
a0f0b96921
Fix case where non-centrality parameter for chi-squared is zero.
...
See https://svn.boost.org/trac/boost/ticket/11557 .
2015-09-04 09:40:08 +01:00
jzmaddock
9d3d2e96a0
Fix code to match documentation in hypergeometric distro.
2015-09-03 19:23:10 +01:00
jzmaddock
789131a224
Add some needed typecasts to args of std::max.
2015-09-03 18:43:36 +01:00
jzmaddock
c2b706da15
Add __float128 support.
2015-09-03 18:43:05 +01:00
jzmaddock
e4ec61699a
Fix tests for FLT_EVAL_TYPE.
...
See https://svn.boost.org/trac/boost/ticket/11429 .
2015-09-03 18:13:20 +01:00
jzmaddock
1d1d400762
Add some needed typecasts.
2015-09-03 10:29:28 +01:00
jzmaddock
429825535b
Fix type of boolean values.
2015-09-03 09:34:42 +01:00
jzmaddock
7dcabda78b
Merge branch 'accuracy' into develop
...
Conflicts:
test/float128/test_polygamma.cpp
test/powm1_sqrtp1m1_test.hpp
2015-09-03 09:12:11 +01:00
jzmaddock
673c229a6c
More constexpr and noexcept specifiers.
2015-09-01 17:34:50 +01:00
jzmaddock
146f0471ec
Fix previous commit!
2015-08-29 11:21:55 +01:00
jzmaddock
3d8d58262d
Add workaround for early/broken constexpr implementations.
2015-08-29 09:20:28 +01:00
jzmaddock
57219acee9
Make more functions constexpr and noexcept.
2015-08-28 12:27:41 +01:00
jzmaddock
06cff2b46f
Merge branch 'accuracy' of https://github.com/boostorg/math into accuracy
2015-08-27 10:43:25 +01:00
jzmaddock
4c278283a7
More noexcept specs.
2015-08-27 10:42:45 +01:00
jzmaddock
dac39d03e1
Change noexcept to be less greedy in instantiating numeric_limits: fixes some multiprecision failures
2015-08-25 09:04:29 +01:00
jzmaddock
bf29ef6628
Begin marking up functions as constexpr and noexcept where possible.
2015-08-23 17:50:56 +01:00
jzmaddock
8f252f78a0
Building with hidden scope doesn't work on Oracle.
...
Also added needed typecast for Oracle 64-bit build.
2015-08-20 08:53:00 +01:00
jzmaddock
ba98215010
Oracle compiler needs GNU align syntax.
2015-08-17 19:07:37 +01:00
jzmaddock
277dbd4f5c
Add compiler comparison option.
2015-08-17 13:05:50 +01:00
jzmaddock
8a29241cc3
Fix bug in root bracketing code
2015-08-11 18:17:56 +01:00
jzmaddock
3e67c80eeb
Improve quantile calculation so as to avoid underflow causing lots of PDF calls and poor performance.
2015-08-09 17:29:34 +01:00
jzmaddock
c3793dbff2
One more try to get powm1 accuracy down.
2015-08-02 18:26:47 +01:00
jzmaddock
801a739595
Fix GCC warnings.
2015-08-01 19:13:22 +01:00
jzmaddock
258a2aeb4c
Big warning suppression fix for VC14.
2015-08-01 18:00:41 +01:00
jzmaddock
a18661ad40
Tweak powm1 one more time near the boundary conditions.
2015-07-31 19:19:47 +01:00
jzmaddock
da958ee36a
Some more tweaks to powm1.
...
Plus some more tests.
2015-07-31 09:25:31 +01:00
jzmaddock
ce953afcda
Yet another "better powm1".
2015-07-28 19:23:53 +01:00
jzmaddock
1177477903
Remove deprecated type_traits usage.
2015-07-25 11:45:49 +01:00
jzmaddock
e973194d55
Fix some corner cases in the non-central distros.
2015-07-18 16:41:28 +01:00
jzmaddock
541f0d2839
Fix method selection condition in powm1.
2015-07-13 10:39:35 +01:00
jzmaddock
74b8427084
Fix domain_error for k==1.
2015-07-11 09:49:17 +01:00
jzmaddock
869bf00304
Improve powm1 accuracy slightly.
2015-07-11 09:16:55 +01:00
jzmaddock
bab82f2eb1
Correct overflow handling in bessel derivatives.
2015-07-10 19:50:05 +01:00
jzmaddock
43de5afcf2
Oops correct previous commit.
2015-07-07 18:45:45 +01:00
jzmaddock
faacf0520d
Fix function template specialization definition.
2015-07-07 18:42:01 +01:00
jzmaddock
d9dc112aee
Fix bug in ellint_2 for very small angles.
...
With thanks to Rocco Romeo.
2015-07-05 19:42:31 +01:00
jzmaddock
32b31bbb72
Add explicit overloads for std::pair to handle C++03 compilers.
2015-06-19 10:05:12 +01:00
jzmaddock
aedcfb355b
Fix template name used only on Darwin.
2015-06-18 18:35:15 +01:00
jzmaddock
2a94e603e5
Add relative_difference tests.
...
And fix resulting issues.
2015-05-26 17:17:47 +01:00
jzmaddock
afc1237939
Stop using modfl on Mingw - it crashes!
2015-05-25 19:20:09 +01:00
jzmaddock
69b2524d13
Document ulp function.
...
Improve tests, and fix issues that show up.
2015-05-25 08:47:34 +01:00
jzmaddock
94b8195aad
Add ulp function.
...
Update tests for relative_difference etc.
Add new functions to math_fwd.hpp.
Add new functions to concept tests.
2015-05-24 12:01:06 +01:00
jzmaddock
73c27a1a6d
Rewrite float-comparison docs to use new public interfaces.
2015-05-23 12:06:36 +01:00
jzmaddock
e7b5c6a0be
Add relative_difference.hpp
2015-05-18 18:24:26 +01:00
jzmaddock
74a42f98ea
Fix various typos.
...
Change Schroeder to Schroder.
2015-05-18 18:23:47 +01:00
jzmaddock
8aaf48ecaa
Add test case for root-finding.
...
Also fix missing using declaration in roots.hpp.
2015-05-14 19:02:40 +01:00
jzmaddock
66296fc6bd
Fix bug in newton_raphson_iterate.
...
Which may cause switching to bisection too early.
2015-05-12 19:32:59 +01:00
jzmaddock
0b166f37ab
Merge branch 'develop' into rooting
2015-05-11 19:08:00 +01:00
jzmaddock
764738d596
Change root finding code to be better boiler-plated.
...
Re-run tests accordingly.
2015-05-10 10:06:08 +01:00
jzmaddock
308f39c78a
Fix iteration count housekeeping so we don't accidentally miss one if we get an exact result because f(x) is zero.
2015-05-05 13:15:23 +01:00
jzmaddock
c8eb3c9cf4
Add default constructor for eps_tolerance.
2015-04-29 18:47:09 +01:00
jzmaddock
da33ba4425
Fix heuristic in schroeder_iterate.
...
Brings schroeder_iterate more into line with halley_iterate.
2015-04-28 19:16:33 +01:00
Jessica Hamilton
d4240296b5
Haiku: disable float128 and long double support
2015-04-09 09:38:27 +12:00
jzmaddock
2f09aca3cd
Merge branch 'develop' of https://github.com/boostorg/math into develop
2015-04-07 18:01:54 +01:00
jzmaddock
0cbed0315d
Fix digit count for 128-bit quad-floart types.
...
As per discussion here: http://www.exploringbinary.com/7-bits-are-not-enough-for-2-digit-accuracy/comment-page-1/#comment-9358
2015-04-07 17:57:07 +01:00
Lauri Nurmi
0c273d09a9
Fix spelling of "occurr*".
2015-03-28 22:11:16 +02:00
pabristow
1f0552daea
merged develop into rooting and rebuilt html
2015-03-12 12:31:01 +00:00
jzmaddock
c6e152efd4
Disable __float128 on Solaris - it segfaults when used at program startup (tested solaris 11).
2015-03-08 18:58:15 +00:00
jzmaddock
b423b350a8
Add needed member.
2015-02-28 19:42:39 +00:00
jzmaddock
97cd1ea0ea
Change not to use cstdfloat as that header may not actually define any types!
2015-02-28 19:31:05 +00:00
jzmaddock
5e92ce7ae6
Solaris doesn't have fpclassify
2015-02-26 11:55:23 +00:00
jzmaddock
58edb99ca8
Workaround for bug in Solaris compiler.
2015-02-23 17:15:23 +00:00
jzmaddock
1ef4e9c1c2
Tentative fix for solaris/oracle compiler issue https://svn.boost.org/trac/boost/ticket/10925
2015-02-22 18:48:09 +00:00
jzmaddock
ec7a31e982
Merge branch 'carlson' into develop
2015-02-20 13:30:24 +00:00
jzmaddock
7fa11a133f
Add Heuman Lambda Function.
2015-02-19 19:33:56 +00:00
jzmaddock
072d6ef395
Add Jacobi Zeta Function.
2015-02-19 16:49:03 +00:00
jzmaddock
026d5d2ee2
Hook up a full set of tests for ellint_d.
2015-02-18 18:04:02 +00:00
jzmaddock
c1200bf7cd
Add initial version of Elliptic Integral D.
2015-02-17 19:03:50 +00:00
jzmaddock
bf3f5528eb
Merge branch 'carlson' into develop
2015-02-17 13:08:21 +00:00
jzmaddock
4705e25f70
Fix some compiler warnings
2015-02-17 12:43:54 +00:00
jzmaddock
61cc79bebd
Fix test failures.
2015-02-17 12:43:40 +00:00
jzmaddock
5eb3bbbfcc
Apply Carlson's latest relations for the Legendre Elliptic integrals.
2015-02-16 17:49:56 +00:00
jzmaddock
f7c55524be
Add missing #include.
2015-02-15 18:57:14 +00:00
jzmaddock
110a5327b2
Apply more special cases to RD and RG plus tests.
2015-02-15 18:48:33 +00:00
jzmaddock
cbb1d9cb5f
Add RF(x, y, 0) as a special case.
2015-02-15 11:34:44 +00:00
jzmaddock
545961746c
Fix for issue https://svn.boost.org/trac/boost/ticket/10938
2015-02-05 19:02:52 +00:00
jzmaddock
20965d162e
Tidy up dead code, make comment a little clearer. See https://svn.boost.org/trac/boost/ticket/10985
2015-02-05 18:34:49 +00:00
jzmaddock
529190e194
Merge branch 'master' of https://github.com/alexhenrie/math into develop
2015-02-05 18:10:30 +00:00
Alex Henrie
a4664e00d5
Correct spelling of "suppress"
2015-01-30 15:28:30 -07:00
jzmaddock
63525295e4
[Carlson RG] Fix test failures and concept-checking failures.
2015-01-21 17:46:14 +00:00
jzmaddock
b358c793d5
[Carlson Elliptic Integrals] Add doc for RG.
2015-01-08 18:15:18 +00:00
jzmaddock
11d4d7eb11
[Carlson elliptic Integrals] Add ellint_rg plus tests.
2015-01-08 13:43:37 +00:00
jzmaddock
2ba0b25c16
[Carlson Elliptic Integrals] Fix #includes and conceptual errors. Tweak RD convergence and error rates.
2015-01-08 09:47:20 +00:00
jzmaddock
64bf08fce4
[Carlson Elliptic Integrals] Add special cases for RF.
2015-01-07 19:00:25 +00:00
jzmaddock
ef2312dfd5
[Carlson elliptic integrals] Fix missing return statement.
2015-01-07 18:38:11 +00:00
jzmaddock
89fcff4266
[Carlson Elliptic Integrals] Update RD to use Carlson's latest methods. Add more RD test cases. Update copyright info.
2015-01-07 18:24:08 +00:00
jzmaddock
9561623736
[Beta/Gamma]Fix concept failures caused by previous commit.
2015-01-06 18:06:10 +00:00
jzmaddock
08a365a1f5
[legendre polys] Disable policy based overloads when the final argument is not in fact a policy. See https://svn.boost.org/trac/boost/ticket/10902
2015-01-05 19:08:56 +00:00
jzmaddock
b6e56ccd22
[constants] Fix namespace scope constants so they are constexpr, see https://svn.boost.org/trac/boost/ticket/10901
2015-01-05 18:32:30 +00:00
jzmaddock
5bd2b77ec4
[gamma_p_derivative] Fix spurious underflow spotted by Rocco Romeo.
2015-01-05 18:16:51 +00:00
jzmaddock
bc3d8ed2e3
[Incomplete Beta] Fix some more spurious underflows spotted by Rocco Romeo.
2015-01-05 17:39:13 +00:00
jzmaddock
b3d11e9545
[Ellint Carlson] Update RJ to carlson's latest algorithm. Add missing include to ellint_rc.hpp. Add more test cases for RJ special cases.
2015-01-05 11:46:34 +00:00
jzmaddock
fe6d89db43
[tgamma] Apply fix from https://svn.boost.org/trac/boost/ticket/10905 .
2014-12-31 18:18:37 +00:00
jzmaddock
669214556a
[ellint RC] rewrite to use elementary functions only.
2014-12-30 13:24:41 +00:00
jzmaddock
04abb9d194
[ellint RF] rewrite to use carlson's latest methods.
2014-12-30 13:24:08 +00:00
jzmaddock
1def3942bf
[ellint 3] Move k==0 case to earlier in the logic
2014-12-30 13:23:11 +00:00
jzmaddock
4c9624786c
[Ellint Pi] Change v < 0 case to use Rocco Romeo's simplified expressions.
2014-12-27 18:57:32 +00:00
jzmaddock
e6b86ba93d
[Ellint Pi] Fix spurious underflow in sqrt(-v*N).
2014-12-27 13:30:51 +00:00
jzmaddock
47c2f9254c
[Ellint Pi] Add some more special case handling, plus tests.
2014-12-26 17:21:10 +00:00
jzmaddock
18dd27295d
[Ellint Pi] Reorganize which reduction occurs in which order, and fix numerical stability issues identified by Rocco Romeo.
2014-12-25 16:52:37 +00:00
jzmaddock
83155a7a67
[Elliptic Pi] Change expression to not suffer spurious under/over flow, add test case.
2014-12-22 16:55:06 +00:00
jzmaddock
2ab808f547
[Ellint Pi] Try and actually use the correct equation for negative v in Pi[v, k] !
2014-12-21 19:08:18 +00:00
jzmaddock
b885aa757a
[bernoulli] suppress some compiler warnings.
2014-12-21 13:10:16 +00:00
jzmaddock
57b38b0dfc
Add binomial_coefficient to math_fwd.hpp and test.
2014-12-21 13:09:40 +00:00
jzmaddock
5af7e8fdb8
[incomplete gamma] Fix corner cases identified by Rocco Romeo.
2014-12-20 19:18:25 +00:00
jzmaddock
0c1a603e17
[incomplete beta] Fix corner cases identified by Rocco Romeo.
2014-12-20 18:18:16 +00:00
jzmaddock
160beaa477
[Ellint Pi] Fix corner cases identified by Rocco Romeo and add tests for them.
2014-12-20 09:47:06 +00:00
jzmaddock
50bffe8005
Update conceptual requirements for root finding algorithms, and add concept test for them.
2014-12-14 09:44:03 +00:00
pabristow
ee8d6338fc
Merge branch 'develop' into arcsine_dist
...
Conflicts:
doc/html/backgrounders.html
doc/html/constants.html
doc/html/cstdfloat.html
doc/html/dist.html
doc/html/extern_c.html
doc/html/gcd_lcm.html
doc/html/index.html
doc/html/indexes.html
doc/html/indexes/s01.html
doc/html/indexes/s02.html
doc/html/indexes/s03.html
doc/html/indexes/s04.html
doc/html/indexes/s05.html
doc/html/inverse_complex.html
doc/html/math_toolkit/acknowledgement.html
doc/html/math_toolkit/acknowledgements.html
doc/html/math_toolkit/acos.html
doc/html/math_toolkit/acosh.html
doc/html/math_toolkit/airy.html
doc/html/math_toolkit/airy/ai.html
doc/html/math_toolkit/airy/aip.html
doc/html/math_toolkit/airy/bi.html
doc/html/math_toolkit/airy/bip.html
doc/html/math_toolkit/archetypes.html
doc/html/math_toolkit/asin.html
doc/html/math_toolkit/asinh.html
doc/html/math_toolkit/atan.html
doc/html/math_toolkit/atanh.html
doc/html/math_toolkit/bessel.html
doc/html/math_toolkit/bessel/bessel_derivatives.html
doc/html/math_toolkit/bessel/bessel_first.html
doc/html/math_toolkit/bessel/bessel_over.html
doc/html/math_toolkit/bessel/bessel_root.html
doc/html/math_toolkit/bessel/mbessel.html
doc/html/math_toolkit/bessel/sph_bessel.html
doc/html/math_toolkit/building.html
doc/html/math_toolkit/c99.html
doc/html/math_toolkit/comp_compilers.html
doc/html/math_toolkit/comparisons.html
doc/html/math_toolkit/compile_time.html
doc/html/math_toolkit/compilers_overview.html
doc/html/math_toolkit/complex_history.html
doc/html/math_toolkit/complex_implementation.html
doc/html/math_toolkit/concepts.html
doc/html/math_toolkit/config_macros.html
doc/html/math_toolkit/constants.html
doc/html/math_toolkit/constants_faq.html
doc/html/math_toolkit/constants_intro.html
doc/html/math_toolkit/contact.html
doc/html/math_toolkit/conventions.html
doc/html/math_toolkit/create.html
doc/html/math_toolkit/credits.html
doc/html/math_toolkit/demo.html
doc/html/math_toolkit/directories.html
doc/html/math_toolkit/dist_concept.html
doc/html/math_toolkit/dist_ref.html
doc/html/math_toolkit/dist_ref/dist_algorithms.html
doc/html/math_toolkit/dist_ref/dists.html
doc/html/math_toolkit/dist_ref/dists/bernoulli_dist.html
doc/html/math_toolkit/dist_ref/dists/beta_dist.html
doc/html/math_toolkit/dist_ref/dists/binomial_dist.html
doc/html/math_toolkit/dist_ref/dists/cauchy_dist.html
doc/html/math_toolkit/dist_ref/dists/chi_squared_dist.html
doc/html/math_toolkit/dist_ref/dists/exp_dist.html
doc/html/math_toolkit/dist_ref/dists/extreme_dist.html
doc/html/math_toolkit/dist_ref/dists/f_dist.html
doc/html/math_toolkit/dist_ref/dists/gamma_dist.html
doc/html/math_toolkit/dist_ref/dists/geometric_dist.html
doc/html/math_toolkit/dist_ref/dists/hyperexponential_dist.html
doc/html/math_toolkit/dist_ref/dists/hypergeometric_dist.html
doc/html/math_toolkit/dist_ref/dists/inverse_chi_squared_dist.html
doc/html/math_toolkit/dist_ref/dists/inverse_gamma_dist.html
doc/html/math_toolkit/dist_ref/dists/inverse_gaussian_dist.html
doc/html/math_toolkit/dist_ref/dists/laplace_dist.html
doc/html/math_toolkit/dist_ref/dists/logistic_dist.html
doc/html/math_toolkit/dist_ref/dists/lognormal_dist.html
doc/html/math_toolkit/dist_ref/dists/nc_beta_dist.html
doc/html/math_toolkit/dist_ref/dists/nc_chi_squared_dist.html
doc/html/math_toolkit/dist_ref/dists/nc_f_dist.html
doc/html/math_toolkit/dist_ref/dists/nc_t_dist.html
doc/html/math_toolkit/dist_ref/dists/negative_binomial_dist.html
doc/html/math_toolkit/dist_ref/dists/normal_dist.html
doc/html/math_toolkit/dist_ref/dists/pareto.html
doc/html/math_toolkit/dist_ref/dists/poisson_dist.html
doc/html/math_toolkit/dist_ref/dists/rayleigh.html
doc/html/math_toolkit/dist_ref/dists/skew_normal_dist.html
doc/html/math_toolkit/dist_ref/dists/students_t_dist.html
doc/html/math_toolkit/dist_ref/dists/triangular_dist.html
doc/html/math_toolkit/dist_ref/dists/uniform_dist.html
doc/html/math_toolkit/dist_ref/dists/weibull_dist.html
doc/html/math_toolkit/dist_ref/nmp.html
doc/html/math_toolkit/ellint.html
doc/html/math_toolkit/ellint/ellint_1.html
doc/html/math_toolkit/ellint/ellint_2.html
doc/html/math_toolkit/ellint/ellint_3.html
doc/html/math_toolkit/ellint/ellint_carlson.html
doc/html/math_toolkit/ellint/ellint_intro.html
doc/html/math_toolkit/error_handling.html
doc/html/math_toolkit/exact_typdefs.html
doc/html/math_toolkit/examples.html
doc/html/math_toolkit/exp.html
doc/html/math_toolkit/expint.html
doc/html/math_toolkit/expint/expint_i.html
doc/html/math_toolkit/expint/expint_n.html
doc/html/math_toolkit/factorials.html
doc/html/math_toolkit/factorials/sf_binomial.html
doc/html/math_toolkit/factorials/sf_double_factorial.html
doc/html/math_toolkit/factorials/sf_factorial.html
doc/html/math_toolkit/factorials/sf_falling_factorial.html
doc/html/math_toolkit/factorials/sf_rising_factorial.html
doc/html/math_toolkit/fastest_typdefs.html
doc/html/math_toolkit/float128.html
doc/html/math_toolkit/float128/exp_function.html
doc/html/math_toolkit/float128/overloading_template_functions_w.html
doc/html/math_toolkit/float128/typeinfo.html
doc/html/math_toolkit/fp_facets.html
doc/html/math_toolkit/fp_facets/examples.html
doc/html/math_toolkit/fp_facets/facets_intro.html
doc/html/math_toolkit/fp_facets/portability.html
doc/html/math_toolkit/fp_facets/rationale.html
doc/html/math_toolkit/fp_facets/reference.html
doc/html/math_toolkit/fpclass.html
doc/html/math_toolkit/future.html
doc/html/math_toolkit/gcd_credits.html
doc/html/math_toolkit/gcd_function_object.html
doc/html/math_toolkit/gcd_header.html
doc/html/math_toolkit/gcd_history.html
doc/html/math_toolkit/getting_best.html
doc/html/math_toolkit/greatest_typdefs.html
doc/html/math_toolkit/hankel.html
doc/html/math_toolkit/hankel/cyl_hankel.html
doc/html/math_toolkit/hankel/sph_hankel.html
doc/html/math_toolkit/high_precision.html
doc/html/math_toolkit/high_precision/e_float.html
doc/html/math_toolkit/high_precision/float128.html
doc/html/math_toolkit/high_precision/use_mpfr.html
doc/html/math_toolkit/high_precision/use_multiprecision.html
doc/html/math_toolkit/high_precision/use_ntl.html
doc/html/math_toolkit/high_precision/using_test.html
doc/html/math_toolkit/high_precision/why_high_precision.html
doc/html/math_toolkit/hints.html
doc/html/math_toolkit/history1.html
doc/html/math_toolkit/history2.html
doc/html/math_toolkit/internals1.html
doc/html/math_toolkit/internals1/cf.html
doc/html/math_toolkit/internals1/minima.html
doc/html/math_toolkit/internals1/rational.html
doc/html/math_toolkit/internals1/roots.html
doc/html/math_toolkit/internals1/roots2.html
doc/html/math_toolkit/internals1/series_evaluation.html
doc/html/math_toolkit/internals1/tuples.html
doc/html/math_toolkit/internals2.html
doc/html/math_toolkit/internals2/error_test.html
doc/html/math_toolkit/internals2/minimax.html
doc/html/math_toolkit/internals2/polynomials.html
doc/html/math_toolkit/internals2/test_data.html
doc/html/math_toolkit/internals_overview.html
doc/html/math_toolkit/interp.html
doc/html/math_toolkit/intro_pol_overview.html
doc/html/math_toolkit/introduction.html
doc/html/math_toolkit/inv_hyper.html
doc/html/math_toolkit/inv_hyper/acosh.html
doc/html/math_toolkit/inv_hyper/asinh.html
doc/html/math_toolkit/inv_hyper/atanh.html
doc/html/math_toolkit/inv_hyper/inv_hyper_over.html
doc/html/math_toolkit/issues.html
doc/html/math_toolkit/jacobi.html
doc/html/math_toolkit/jacobi/jac_over.html
doc/html/math_toolkit/jacobi/jacobi_cd.html
doc/html/math_toolkit/jacobi/jacobi_cn.html
doc/html/math_toolkit/jacobi/jacobi_cs.html
doc/html/math_toolkit/jacobi/jacobi_dc.html
doc/html/math_toolkit/jacobi/jacobi_dn.html
doc/html/math_toolkit/jacobi/jacobi_ds.html
doc/html/math_toolkit/jacobi/jacobi_elliptic.html
doc/html/math_toolkit/jacobi/jacobi_nc.html
doc/html/math_toolkit/jacobi/jacobi_nd.html
doc/html/math_toolkit/jacobi/jacobi_ns.html
doc/html/math_toolkit/jacobi/jacobi_sc.html
doc/html/math_toolkit/jacobi/jacobi_sd.html
doc/html/math_toolkit/jacobi/jacobi_sn.html
doc/html/math_toolkit/lanczos.html
doc/html/math_toolkit/lcm_function_object.html
doc/html/math_toolkit/macros.html
doc/html/math_toolkit/main_faq.html
doc/html/math_toolkit/main_intro.html
doc/html/math_toolkit/main_tr1.html
doc/html/math_toolkit/mem_typedef.html
doc/html/math_toolkit/minimum_typdefs.html
doc/html/math_toolkit/namespaces.html
doc/html/math_toolkit/navigation.html
doc/html/math_toolkit/new_const.html
doc/html/math_toolkit/next_float.html
doc/html/math_toolkit/next_float/float_advance.html
doc/html/math_toolkit/next_float/float_distance.html
doc/html/math_toolkit/next_float/float_next.html
doc/html/math_toolkit/next_float/float_prior.html
doc/html/math_toolkit/next_float/nextafter.html
doc/html/math_toolkit/number_series.html
doc/html/math_toolkit/number_series/bernoulli_numbers.html
doc/html/math_toolkit/number_series/primes.html
doc/html/math_toolkit/number_series/tangent_numbers.html
doc/html/math_toolkit/oct_create.html
doc/html/math_toolkit/oct_header.html
doc/html/math_toolkit/oct_history.html
doc/html/math_toolkit/oct_mem_fun.html
doc/html/math_toolkit/oct_non_mem.html
doc/html/math_toolkit/oct_overview.html
doc/html/math_toolkit/oct_specialization.html
doc/html/math_toolkit/oct_synopsis.html
doc/html/math_toolkit/oct_tests.html
doc/html/math_toolkit/oct_todo.html
doc/html/math_toolkit/oct_trans.html
doc/html/math_toolkit/oct_typedefs.html
doc/html/math_toolkit/oct_value_ops.html
doc/html/math_toolkit/octonion.html
doc/html/math_toolkit/overview.html
doc/html/math_toolkit/overview_tr1.html
doc/html/math_toolkit/owens_t.html
doc/html/math_toolkit/perf_over1.html
doc/html/math_toolkit/perf_over2.html
doc/html/math_toolkit/perf_test_app.html
doc/html/math_toolkit/pol_overview.html
doc/html/math_toolkit/pol_ref.html
doc/html/math_toolkit/pol_ref/assert_undefined.html
doc/html/math_toolkit/pol_ref/discrete_quant_ref.html
doc/html/math_toolkit/pol_ref/error_handling_policies.html
doc/html/math_toolkit/pol_ref/internal_promotion.html
doc/html/math_toolkit/pol_ref/iteration_pol.html
doc/html/math_toolkit/pol_ref/namespace_pol.html
doc/html/math_toolkit/pol_ref/pol_ref_ref.html
doc/html/math_toolkit/pol_ref/policy_defaults.html
doc/html/math_toolkit/pol_ref/precision_pol.html
doc/html/math_toolkit/pol_tutorial.html
doc/html/math_toolkit/pol_tutorial/ad_hoc_dist_policies.html
doc/html/math_toolkit/pol_tutorial/ad_hoc_sf_policies.html
doc/html/math_toolkit/pol_tutorial/changing_policy_defaults.html
doc/html/math_toolkit/pol_tutorial/namespace_policies.html
doc/html/math_toolkit/pol_tutorial/policy_tut_defaults.html
doc/html/math_toolkit/pol_tutorial/policy_usage.html
doc/html/math_toolkit/pol_tutorial/understand_dis_quant.html
doc/html/math_toolkit/pol_tutorial/user_def_err_pol.html
doc/html/math_toolkit/pol_tutorial/what_is_a_policy.html
doc/html/math_toolkit/powers.html
doc/html/math_toolkit/powers/cbrt.html
doc/html/math_toolkit/powers/cos_pi.html
doc/html/math_toolkit/powers/ct_pow.html
doc/html/math_toolkit/powers/expm1.html
doc/html/math_toolkit/powers/hypot.html
doc/html/math_toolkit/powers/log1p.html
doc/html/math_toolkit/powers/powm1.html
doc/html/math_toolkit/powers/sin_pi.html
doc/html/math_toolkit/powers/sqrt1pm1.html
doc/html/math_toolkit/quat.html
doc/html/math_toolkit/quat_header.html
doc/html/math_toolkit/quat_history.html
doc/html/math_toolkit/quat_mem_fun.html
doc/html/math_toolkit/quat_non_mem.html
doc/html/math_toolkit/quat_overview.html
doc/html/math_toolkit/quat_synopsis.html
doc/html/math_toolkit/quat_tests.html
doc/html/math_toolkit/quat_todo.html
doc/html/math_toolkit/rationale.html
doc/html/math_toolkit/rationale0.html
doc/html/math_toolkit/refs.html
doc/html/math_toolkit/relative_error.html
doc/html/math_toolkit/remez.html
doc/html/math_toolkit/result_type.html
doc/html/math_toolkit/rounding.html
doc/html/math_toolkit/rounding/modf.html
doc/html/math_toolkit/rounding/round.html
doc/html/math_toolkit/rounding/trunc.html
doc/html/math_toolkit/run_time.html
doc/html/math_toolkit/sf_beta.html
doc/html/math_toolkit/sf_beta/beta_derivative.html
doc/html/math_toolkit/sf_beta/beta_function.html
doc/html/math_toolkit/sf_beta/ibeta_function.html
doc/html/math_toolkit/sf_beta/ibeta_inv_function.html
doc/html/math_toolkit/sf_erf.html
doc/html/math_toolkit/sf_erf/error_function.html
doc/html/math_toolkit/sf_erf/error_inv.html
doc/html/math_toolkit/sf_gamma.html
doc/html/math_toolkit/sf_gamma/digamma.html
doc/html/math_toolkit/sf_gamma/gamma_derivatives.html
doc/html/math_toolkit/sf_gamma/gamma_ratios.html
doc/html/math_toolkit/sf_gamma/igamma.html
doc/html/math_toolkit/sf_gamma/igamma_inv.html
doc/html/math_toolkit/sf_gamma/lgamma.html
doc/html/math_toolkit/sf_gamma/tgamma.html
doc/html/math_toolkit/sf_implementation.html
doc/html/math_toolkit/sf_poly.html
doc/html/math_toolkit/sf_poly/hermite.html
doc/html/math_toolkit/sf_poly/laguerre.html
doc/html/math_toolkit/sf_poly/legendre.html
doc/html/math_toolkit/sf_poly/sph_harm.html
doc/html/math_toolkit/sign_functions.html
doc/html/math_toolkit/sinc.html
doc/html/math_toolkit/sinc/sinc_overview.html
doc/html/math_toolkit/sinc/sinc_pi.html
doc/html/math_toolkit/sinc/sinhc_pi.html
doc/html/math_toolkit/spec.html
doc/html/math_toolkit/special_tut.html
doc/html/math_toolkit/special_tut/special_tut_impl.html
doc/html/math_toolkit/special_tut/special_tut_test.html
doc/html/math_toolkit/stat_tut.html
doc/html/math_toolkit/stat_tut/dist_params.html
doc/html/math_toolkit/stat_tut/overview.html
doc/html/math_toolkit/stat_tut/overview/complements.html
doc/html/math_toolkit/stat_tut/overview/generic.html
doc/html/math_toolkit/stat_tut/overview/headers.html
doc/html/math_toolkit/stat_tut/overview/objects.html
doc/html/math_toolkit/stat_tut/overview/parameters.html
doc/html/math_toolkit/stat_tut/overview/summary.html
doc/html/math_toolkit/stat_tut/variates.html
doc/html/math_toolkit/stat_tut/weg.html
doc/html/math_toolkit/stat_tut/weg/binom_eg.html
doc/html/math_toolkit/stat_tut/weg/binom_eg/binom_conf.html
doc/html/math_toolkit/stat_tut/weg/binom_eg/binom_size_eg.html
doc/html/math_toolkit/stat_tut/weg/binom_eg/binomial_coinflip_example.html
doc/html/math_toolkit/stat_tut/weg/binom_eg/binomial_quiz_example.html
doc/html/math_toolkit/stat_tut/weg/c_sharp.html
doc/html/math_toolkit/stat_tut/weg/cs_eg.html
doc/html/math_toolkit/stat_tut/weg/cs_eg/chi_sq_intervals.html
doc/html/math_toolkit/stat_tut/weg/cs_eg/chi_sq_size.html
doc/html/math_toolkit/stat_tut/weg/cs_eg/chi_sq_test.html
doc/html/math_toolkit/stat_tut/weg/dist_construct_eg.html
doc/html/math_toolkit/stat_tut/weg/error_eg.html
doc/html/math_toolkit/stat_tut/weg/f_eg.html
doc/html/math_toolkit/stat_tut/weg/find_eg.html
doc/html/math_toolkit/stat_tut/weg/find_eg/find_location_eg.html
doc/html/math_toolkit/stat_tut/weg/find_eg/find_mean_and_sd_eg.html
doc/html/math_toolkit/stat_tut/weg/find_eg/find_scale_eg.html
doc/html/math_toolkit/stat_tut/weg/geometric_eg.html
doc/html/math_toolkit/stat_tut/weg/inverse_chi_squared_eg.html
doc/html/math_toolkit/stat_tut/weg/nag_library.html
doc/html/math_toolkit/stat_tut/weg/nccs_eg.html
doc/html/math_toolkit/stat_tut/weg/nccs_eg/nccs_power_eg.html
doc/html/math_toolkit/stat_tut/weg/neg_binom_eg.html
doc/html/math_toolkit/stat_tut/weg/neg_binom_eg/neg_binom_conf.html
doc/html/math_toolkit/stat_tut/weg/neg_binom_eg/neg_binom_size_eg.html
doc/html/math_toolkit/stat_tut/weg/neg_binom_eg/negative_binomial_example1.html
doc/html/math_toolkit/stat_tut/weg/neg_binom_eg/negative_binomial_example2.html
doc/html/math_toolkit/stat_tut/weg/normal_example.html
doc/html/math_toolkit/stat_tut/weg/normal_example/normal_misc.html
doc/html/math_toolkit/stat_tut/weg/st_eg.html
doc/html/math_toolkit/stat_tut/weg/st_eg/paired_st.html
doc/html/math_toolkit/stat_tut/weg/st_eg/tut_mean_intervals.html
doc/html/math_toolkit/stat_tut/weg/st_eg/tut_mean_size.html
doc/html/math_toolkit/stat_tut/weg/st_eg/tut_mean_test.html
doc/html/math_toolkit/stat_tut/weg/st_eg/two_sample_students_t.html
doc/html/math_toolkit/synopsis.html
doc/html/math_toolkit/threads.html
doc/html/math_toolkit/tr1_ref.html
doc/html/math_toolkit/trans.html
doc/html/math_toolkit/tuning.html
doc/html/math_toolkit/tutorial.html
doc/html/math_toolkit/tutorial/non_templ.html
doc/html/math_toolkit/tutorial/templ.html
doc/html/math_toolkit/tutorial/user_def.html
doc/html/math_toolkit/value_op.html
doc/html/math_toolkit/zetas.html
doc/html/math_toolkit/zetas/zeta.html
doc/html/octonions.html
doc/html/overview.html
doc/html/perf.html
doc/html/policy.html
doc/html/quaternions.html
doc/html/special.html
doc/html/status.html
doc/html/toolkit.html
doc/html/using_udt.html
doc/html/utils.html
2014-12-08 12:45:58 +00:00
jzmaddock
5b9d72131f
[polygamma] Fix integer arithmetic bug.
2014-12-01 13:16:41 +00:00
pabristow
f9b2addcdc
Improved docs and tests and graphs.
2014-11-27 16:44:42 +00:00
jzmaddock
f064f2e36b
[signbit] Fix call to work when signbit is a macro.
2014-11-26 19:15:24 +00:00
jzmaddock
b4111f8312
[polygamma] Fix signed/unsigned comparison warning
2014-11-26 19:06:10 +00:00
jzmaddock
85b59d348b
[Polygamma] Fix a few corner cases, and bail out early in reflection formula if n is too large.
2014-11-26 18:22:30 +00:00
jzmaddock
e21bca611f
[polygamma] Remove series acceleration from polygamma_nearzero as it appears to make no real difference to the number of terms required.
2014-11-26 17:42:30 +00:00
jzmaddock
4194fea6d0
[polygamma] Fix integer overflow in branch check case, and bail out of transition code is the number of series evaluations is too high.
2014-11-24 18:08:31 +00:00
jzmaddock
a663232f38
[polygamma] Add two special cases for x = 1 and x = 0.5.
2014-11-22 18:37:31 +00:00
jzmaddock
e2cd2e72dc
[polygamma] Document new method for negative x in code comments, simply some code, change table to coefficients to store only non-zero values.
2014-11-20 09:56:21 +00:00
jzmaddock
075f9f893b
[polygamma] Change low order negative-x cases to use new polynomial method. Change expected error rates to match.
2014-11-18 18:27:21 +00:00
jzmaddock
495d4655b4
[polygamma] remove dead code.
2014-11-17 18:23:30 +00:00
jzmaddock
f4b86c2996
[polygamma] Switch to new better method for handling negative arguments.
2014-11-17 18:12:25 +00:00
jzmaddock
26f063eca4
Fix accuracy issue in cos_pi.
...
Add tests for cos_pi and sin_pi.
Doc regen.
2014-11-16 17:18:17 +00:00
jzmaddock
9d6df5d835
[polygamma] Remove some dead code and tidy up initialization and policy usage.
2014-11-14 17:05:41 +00:00
jzmaddock
2bcdfed1a4
[Polygamma] Remove dead code.
2014-11-08 11:03:45 +00:00
jzmaddock
dd92123098
[digamma] fix reference.
2014-11-07 16:57:18 +00:00
jzmaddock
50778a40c4
[digamma]Oops fix missing return statement on half integer special case.
2014-11-07 16:56:15 +00:00
jzmaddock
0e98fd90c2
[Polygamma] Add optimized trigamma version that uses rational approximations.
2014-11-07 16:32:41 +00:00
jzmaddock
8477de53b4
[polygamma]Fix spurious overflow for very large x.
2014-11-04 18:27:48 +00:00
jzmaddock
3478ee9c46
[polygamma] Fix GCC failures, a few bugs and forward policy arguments. Fix test data to be 128-bit safe.
2014-11-03 17:55:21 +00:00
pabristow
04c43aba75
Cosmetic tidy.
2014-11-03 12:11:50 +00:00
jzmaddock
d50cf889f6
Add basic thread safety and initialization code.
2014-11-03 12:01:11 +00:00
jzmaddock
eccec791c7
[polygamma] Fix spurious overflow in transition zone, update cot derivative to work to arbitrary level.
2014-11-03 11:50:10 +00:00
jzmaddock
e70f53e670
[Polygamma] Fix issues with small negative arguments for x.
...
Tidy up a couple of cosmetic coding issues.
2014-10-31 18:51:14 +00:00
jzmaddock
8438b8a84b
[Polygamma] Extend derivatives-of-cot method to larger orders.
...
Extend test cases for negative x.
Fix missing return statement on error condition.
2014-10-31 18:07:01 +00:00
jzmaddock
31c345108c
[polygamma] Fix gcc-11 test failures.
2014-10-30 17:13:39 +00:00
pabristow
397a3cf4ff
Merge branch 'arcsine_dist' of https://github.com/boostorg/math into arcsine_dist
2014-10-30 12:15:13 +00:00
pabristow
2de39afe7e
Fixed silly mistake causing real_concept tests to fail
2014-10-30 12:14:33 +00:00
jzmaddock
6bf9d2bffc
[arcsine]Fix concept failures
2014-10-30 11:46:05 +00:00
jzmaddock
812122d56f
Fix include order to be alphabetical, update copyright.
2014-10-30 11:13:31 +00:00
jzmaddock
3f58ab9009
Fix copyright info.
2014-10-30 11:11:50 +00:00
jzmaddock
081abc704a
[zeta/polygamma]Add cache of odd-integer zeta values.
...
Fix even integer case to call fast closed-form code more often.
Fix initialization code to initializes new cache of even-integer values.
2014-10-30 11:08:36 +00:00
jzmaddock
8a36ba07d1
{Polygamma]Fix polygamma_nearzero to call correct zeta function overload.
2014-10-30 11:06:28 +00:00
jzmaddock
232e7af69b
[polygamma] short circuit series evaluation when it can make no difference to the result.
2014-10-29 17:38:38 +00:00
jzmaddock
8362ab2a08
[polygamma]
...
Replace small-x expansion with one that's accelerated and avoids spurious overflow.
Also tweak selection logic, and reuse variables better.
2014-10-28 19:39:35 +00:00
pabristow
477e194490
Corrected previous failures using real_concept. tested locally OK on MSVC and gcc 4.8
2014-10-28 16:37:43 +00:00
pabristow
0a932fa52b
Expanded tests from double, but errors - see email 27 Oct14
2014-10-27 15:51:54 +00:00
jzmaddock
a3bed60089
More test failure fixes.
2014-10-26 16:25:19 +00:00
jzmaddock
22bc7212e7
[Polygamma]
...
Hook up concept checks.
Move test instantiations into instances lib.
Fix a few test failures.
Add Nikhar's trigamma tests.
2014-10-26 09:42:11 +00:00
jzmaddock
dffdb444ee
Expand test cases for negative x.
...
Add comment on the calculation of derivatives of cot(x).
2014-10-25 17:28:09 +01:00
jzmaddock
bda3331ed3
[Polygamma]
...
Fix digits_base10 to actually return the correct value!
Add support for negative x.
Add missing using declaration to digamma.
Update tests with negative x tests.
2014-10-24 18:50:37 +01:00
jzmaddock
f2ae6940ca
[Polygamma]
...
Optimize zeta function for integer arguments.
2014-10-23 17:08:19 +01:00
jzmaddock
29e86c8fcb
[Polygamma]
...
Extend existing digamma implementation to true multiprecision.
Add integer and half-integer test cases for digamma.
Change polygamma to call digamma when order is zero.
2014-10-23 11:42:57 +01:00
jzmaddock
d9ea302cff
Hook up basic multiprecision digamma.
2014-10-23 09:59:08 +01:00
jzmaddock
4bc3b6076c
[Polygamma]
...
Fix real_concept compilation and runtime.
Add digits_base10 support function to policies.
2014-10-21 19:03:26 +01:00
jzmaddock
5f89e70efd
[Polygamma]
...
Add test cases.
Rewrite polygamma_atinfinityplus to avoid spurious underflow/overflow.
Rewrite polygamma_attransitionplus to call polygamma_atinfinityplus rather than have it's own routine.
Change condition which selects when polygamma_atinfinityplus can be called.
2014-10-21 13:12:26 +01:00
pabristow
716e7eff75
First draft of working docs. Need more tests.
2014-10-20 14:36:03 +01:00
jzmaddock
eb2525b516
Merge branch 'develop' into bernoulli-tgamma
...
Conflicts:
doc/equations/bernoulli_numbers2.mml
doc/equations/bernoulli_numbers2.png
doc/equations/bernoulli_numbers2.svg
doc/equations/generate.sh
doc/equations/tangent_numbers.png
doc/equations/tangent_numbers.svg
doc/math.qbk
include/boost/cstdfloat.hpp
include/boost/math/policies/error_handling.hpp
include/boost/math/special_functions/detail/bernoulli_details.hpp
2014-10-18 17:49:49 +01:00
pabristow
7d303aaab0
Initial rough drafts of arcsine (only committed so can pick up better diagnostics in error_handling from inf_dist branch)
2014-10-03 10:12:05 +01:00
jzmaddock
bd807c74e1
Fix more spurious overflows detected by Rocco Romeo.
2014-09-24 18:02:00 +01:00
jzmaddock
b471723bd1
Fix bug cases reported by Rocco Romeo:
...
* Add another approximation for x very small.
* Add code to handle cases where tgamma(a) would overflow.
* Add tests for the above.
2014-09-14 17:05:15 +01:00
jzmaddock
d1d6d5b063
Fix derivative of incomplete beta in special cases where a = b = 0.5 and b = 1.
...
Add additional tests to non-central F and T distributions to verify above fix.
Fixes https://svn.boost.org/trac/boost/ticket/10480 .
2014-09-12 16:29:29 +01:00
jzmaddock
321d8f2eda
Merge branch 'hyper_exponential' into develop
2014-09-08 18:12:52 +01:00
jzmaddock
17e4f40fce
Revert "[distributions] Hyper-Exponential: changed return type of 'probabilities' and 'rates' from 'vector<...>' to 'vector<...> const\&' to allow users to do things like this: 'std::copy(he.probabilities().begin(), he.probabilities().end(), std::ostream_iterator<double>(std::cout, " "));'."
...
This reverts commit a8efc9a637
.
2014-09-08 18:10:53 +01:00
jzmaddock
5d37faf873
Merge branch 'feature/hyperexponential_dist' of https://github.com/sguazt/math into hyper_exponential
2014-09-08 17:14:23 +01:00
sguazt
a8efc9a637
[distributions] Hyper-Exponential: changed return type of 'probabilities' and 'rates' from 'vector<...>' to 'vector<...> const\&' to allow users to do things like this: 'std::copy(he.probabilities().begin(), he.probabilities().end(), std::ostream_iterator<double>(std::cout, " "));'.
2014-09-07 10:29:09 +02:00
jzmaddock
f73ecae7f5
Add some tests for the error handlers.
2014-09-05 18:56:49 +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
43de825473
[distributions] Hyper-Exponential: BOOST_MSVC -> _MSC_VER (as _MSC_VER is always defined for MS VS, whereas BOOST_MSVC isn’t defined until *after* the first call to boost/config.hpp). Also, added MSVC pragma 4389.
2014-09-01 21:25:11 +02:00
jzmaddock
4a6cbc1135
Initializer-list constructors don't need to be templates - indeed it is better if they're not.
2014-09-01 18:14:35 +01:00
sguazt
f5cec49a60
[distributions] Hyper-Exponential: added include of 'iterator' for 'std::distance' and aesthetic changes.
2014-09-01 09:50:16 +02:00
sguazt
34e42a36c5
[distributions] Hyper-Exponential: added include file for macro BOOST_NO_CXX11_HDR_INITIALIZER_LIST and removed 'const\&' from 'std::initializer_list' (as from (Stroustrup,TCPL4e).
2014-08-31 23:22:15 +02:00
jzmaddock
60a6730fe2
Modify Marco's 1 and 2 arg constructors to use SFINAE to differentiate between iterators and ranges.
...
Add a 1 arg initializer list constructor.
Update tests accordingly.
2014-08-30 17:03:26 +01:00
sguazt
62ee849eab
[distributions] Hyper-Exponential: added more constructors and class construction test case.
2014-08-28 10:12:41 +02:00
jzmaddock
08308ab945
Merge branch 'feature/hyperexponential_dist' of https://github.com/sguazt/math into hyper_exponential
2014-08-26 18:57:25 +01:00
sguazt
fa198a0b04
[distributions] Hyper-Exponential: clean-up.
2014-08-26 17:08:05 +02:00
jzmaddock
2e7eede435
Add comment linking to discussion.
2014-08-25 17:04:52 +01:00
jzmaddock
d8c97bec27
Add initializer_list support and tests.
2014-08-25 13:11:51 +01:00
sguazt
c693510588
[distributions] Hyper-Exponential: use exponential's PDF in hyperexponential PDF.
2014-08-25 10:45:08 +02:00
jzmaddock
d424e2ef23
Fix some more warnings and enable tests for all the test types.
2014-08-24 18:40:21 +01:00
jzmaddock
b925b0c0e8
Add hyperexponential_distribution to concept checks, fix for warnings/bugs.
2014-08-24 15:21:36 +01:00
jzmaddock
ffc483f907
Up precision of tests.
...
Fix some conceptual compiler errors in hyperexponential_distribution.
2014-08-24 09:29:11 +01:00
Robin Eckert
fb835eb029
fix rounding errors
...
- the direct predecessor/successor for 0.5/-0.5 was formerly wrongly
rounded to 1.0/-1.0 rather than 0.0
- integral numbers of the format 1xxxxxx1 filling mantissa completely
were formerly rounded to the next integral away from zero
2014-08-23 19:42:02 +02:00
sguazt
0735d8177e
[distributions] Hyper-exponential: range arguments to contructor should be passed by const-ref.
2014-08-22 18:32:22 +02:00
sguazt
3621b083e2
[distributions] Hyper-Exponential: registered tests and fixed some test-related issue.
2014-08-22 16:37:35 +02:00
sguazt
144db22c2f
[distributions] Hyper-Exponential: solved 'unused parameter' warning in 'mode' function.
2014-08-22 15:06:12 +02:00
sguazt
412bba6a24
[distributions] Added Hyper-Exponential distribution.
2014-08-22 15:01:23 +02:00
Kohei Takahashi
3c07a49aac
Don't check long double capability for BOOST_CSTDFLOAT_xx.
...
For example IA-32, those macros suggest long double as 80-bit floating
point type, however some math runtime implementations are broken for
long doublle even if supported by compiler (e.g. FreeBSD 9, ...).
Signed-off-by: Kohei Takahashi <flast@flast.jp>
2014-08-18 05:13:00 +09:00
jzmaddock
97cdf3ca3a
Disable some msvc warnings, see: d02ae84866 (commitcomment-7257997)
2014-08-04 19:11:53 +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
Marcel Raad
7621f1e931
Remove redundant variable declarations
...
... to silence compiler warnings about variable shadowing.
2014-07-12 12:44:45 +02:00
Rogier van Dalen
d9ba6ae8b0
Fix missing include
2014-07-10 15:45:49 +01:00
jzmaddock
866492cb02
remove dependency to tr1 - we don't really need it anymore.
2014-06-13 13:32:08 +01:00
jzmaddock
2f65e6cb65
Fix typos.
2014-06-13 08:20:14 +01:00
jzmaddock
ee8edd4c33
Fix up functions that were returning tools::max_value to call overflow_error instead.
...
See https://svn.boost.org/trac/boost/ticket/10111 .
2014-06-12 13:50:30 +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
jzmaddock
09fceb2142
Merge branch 'develop' of https://github.com/boostorg/math into develop
2014-05-28 13:25:10 +01:00
jzmaddock
7cb3316d06
Fix for 106-bit "double double" types.
2014-05-28 13:24:40 +01:00
Kohei Takahashi
c50b5a8bcc
Fix missing header
...
Signed-off-by: Kohei Takahashi <flast@flast.jp>
2014-05-27 11:07:23 +09:00
jzmaddock
a29a74bdaf
Add needed include to config.hpp, fix runtime checks under valgrind in erf_inv initialization, see https://svn.boost.org/trac/boost/ticket/10005
2014-05-26 19:14:49 +01:00
jzmaddock
ab6cc524dd
Fix Halley iteration to work when derivative is zero, even though the second derivative is not, see https://svn.boost.org/trac/boost/ticket/10046 .
2014-05-25 15:35:08 +01:00
jzmaddock
e6996e1188
Fix round and trunc functions to work with integer arguments, see https://svn.boost.org/trac/boost/ticket/10066 .
2014-05-24 09:47:21 +01:00
jzmaddock
5a9688e4ef
Apply fix from https://svn.boost.org/trac/boost/ticket/9884
2014-04-14 15:49:43 +01:00
jzmaddock
0c01f682eb
Fix some corner cases in negative_binomial_distribution, see https://svn.boost.org/trac/boost/ticket/9834
2014-04-06 11:59:10 +01:00
jzmaddock
88b1695b58
More tentative apple fixes.
2014-04-04 17:20:09 +01:00
jzmaddock
1c1ae42e6e
Tentative fix for more clang/apple failures.
2014-04-04 17:15:19 +01:00
jzmaddock
9199b09304
Fix missing policy parameter in some SF forwarding calls. See https://svn.boost.org/trac/boost/ticket/9833 .
2014-04-04 15:08:27 +01:00
jzmaddock
2d0d36d865
Provide a further customization point for constants initialization (to allow for explicit construction).
2014-04-02 16:47:36 +01:00
jzmaddock
41fb7e1c91
Tentative fix for clang/libc++ on Apple issue.
2014-03-31 18:47:13 +01:00
jzmaddock
a0ad3d8764
Add some static casts to avoid C++11 errors in initializer lists.
2014-03-28 18:15:59 +00:00
jzmaddock
fa1896fbc4
Make sure the forward declarations get included before the real definitions in all headers.
2014-03-27 09:17:33 +00:00
jzmaddock
ef123b3504
Fix GCC release mode failures in test_next.cpp by explicitly testing SSE2 settings in next.hpp.
2014-03-22 19:16:36 +00:00
jzmaddock
4087c44efd
Fix random number usage in the post-TR1 world.
2014-03-21 12:11:49 +00:00
jzmaddock
200f384c14
Tentative fix for gcc-4.7 and earlier failures.
2014-03-21 11:36:57 +00:00
jzmaddock
6bddb5be85
Merge branch 'cstdfloat' into develop
...
Conflicts:
doc/overview/roadmap.qbk
example/cstdfloat_example.cpp
include/boost/cstdfloat.hpp
test/test_gamma.cpp
test/test_gamma.hpp
2014-03-19 13:38:42 +00:00
jzmaddock
296173dbe2
Some mostly cosmetic changes to the cstdfloat docs.
2014-03-17 16:58:58 +00:00
jzmaddock
cae085c873
More fixes for factorials and gamma function ratios from Rocco Romeo.
2014-03-16 09:59:11 +00:00
jzmaddock
3e338ec355
Fix some corner cases in tgamma_delta_ratio, with thanks to Rocco Romeo.
2014-03-14 18:18:22 +00:00
jzmaddock
c3e530716a
Merge branch 'cstdfloat' of https://github.com/boostorg/math into cstdfloat
2014-03-13 18:43:28 +00:00
jzmaddock
80894e9025
Fix errors in corner cases of rising/falling factorials and gamma ratios raised by Rocco Romeo.
2014-03-13 16:30:10 +00:00
ckormanyos
849853f337
In <cstdfloat>, correct (again) the handling of cancellation errors in 128-bit sinh(x).
2014-03-12 21:56:08 +01:00
ckormanyos
aae19f5f08
In <cstdfloat>, correct the handling of cancellation errors in 128-bit sinh(x).
2014-03-12 21:23:44 +01:00
ckormanyos
9876cecd8f
In <cstdfloat>, properly handle cancellation errors in 128-bit sinh(x).
2014-03-12 20:26:13 +01:00
jzmaddock
c9d65cfa1f
Add basic tests for __float128 functions.
...
Fix one complex function.
Add factorials test.
2014-03-10 18:25:08 +00:00
jzmaddock
9f8ffee4b7
Disable some native operators when --fast-math or the Intel compiler is in use as they simply don't work in that environment, see https://svn.boost.org/trac/boost/ticket/9748#comment:3
2014-03-10 09:40:51 +00:00
jzmaddock
b4e1fe2375
Fix some compile errors in instrumentation code and extend a little into the Bessel functions.
2014-03-10 09:39:38 +00:00
jzmaddock
52a2b9edc3
Make sure all the error handlers return a result and don't just rely on an exception being thrown.
2014-03-05 09:13:26 +00:00
ckormanyos
8fd67e5edf
In <boost/cstdfloat.hpp>, improve clarity of a compiler switch and make better comments.
2014-03-01 23:45:15 +01:00
jzmaddock
4fef819a00
Fix debug build.
2014-02-28 19:07:51 +00:00
jzmaddock
d3780ea58a
Change to use C++11 <random> when available.
2014-02-28 13:40:10 +00:00
ckormanyos
3eca6efc55
In <boost/cstdfloat.hpp> and its quadmath part, do style modifications and add some informative comments. Undefine the internal BOOST_NO_FLOAT128_T from public availability.
2014-02-27 21:03:44 +01:00
jzmaddock
049f707a67
Fix Linux GCC failures
2014-02-27 17:07:25 +00:00
jzmaddock
b4759e553b
Enable broken <cmath> function overloads only when needed.
2014-02-26 19:15:23 +00:00
jzmaddock
8459a54c90
Add missing return statements.
2014-02-26 19:09:29 +00:00
ckormanyos
c26b5ed14a
In <boost/cstdfloat.hpp>, correct the complex pown() helper function.
2014-02-25 22:04:46 +01:00
ckormanyos
c5dd006e01
In <boost/cstdfloat.hpp>, correct 128-bit tgamma() function for negative argument.
2014-02-24 23:39:15 +01:00
ckormanyos
d5b51e0972
In <boost/cstdfloat.hpp>, for 128-bit float, include support for -x in tgamma() patch.
2014-02-24 22:28:46 +01:00
ckormanyos
05134be404
In <boost/cstdfloat.hpp>, fixed the 128-bit float helper function pown(). Do some additional cleanup.
2014-02-24 21:38:00 +01:00
ckormanyos
88dddb0710
Merge branch 'cstdfloat' of https://github.com/boostorg/math into cstdfloat
2014-02-24 20:35:47 +01:00
ckormanyos
cf88eeaaf4
In <boost/cstdfloat.hpp>, fix 128-bit exp() function for negative argument.
2014-02-24 20:35:07 +01:00
jzmaddock
108785d553
Add missing pow overload to cstdfloat.hpp.
...
Fix Intel-Windows compilation of the tests.
Make the float128 tests an explicit test case in the Jamfile.
2014-02-24 18:53:50 +00:00
ckormanyos
aa31a5b5d6
In <boost/cstdfloat.hpp>, patch quadmath functions asinh, acosh, atanh (missing functions), and tgamma (crashes on many GCCs like MinGW 4.7, 4.8).
2014-02-23 22:22:43 +01:00
ckormanyos
12720c6231
In <boost/cstdfloat.hpp>, remove the dependency on Boost.Math.Constants for 128-bit <cmath> support.
2014-02-23 20:01:02 +01:00
ckormanyos
a0454df5e4
Move cstdfloat details to <boost/math/cstdfloat/*.hpp>.
2014-02-23 18:46:46 +01:00
jzmaddock
b9cd3c4417
Fix from Rocco Romeo to correct sign of infinite result in tgamma.
2014-02-20 10:46:54 +00:00
jzmaddock
d9f626a942
Fix from Rocco Romeo to correct sign of infinite result in tgamma.
2014-02-20 10:44:40 +00:00
jzmaddock
287d66d124
Merge branch 'develop' of https://github.com/boostorg/math into develop
2014-02-18 18:30:53 +00:00
jzmaddock
d8c74aa1e3
Fix some (possibly hypothetical) error handling issues.
2014-02-18 18:30:24 +00:00
jzmaddock
c00cc0b889
Fix some (possibly hypothetical) error handling issues.
2014-02-18 18:29:42 +00:00
PABristow
55bc21684b
Merge branch 'develop' of https://github.com/boostorg/math into develop
2014-02-18 17:29:16 +00:00
PABristow
bf40c60296
Random variate can be infinite.
2014-02-18 17:21:11 +00:00
jzmaddock
0028c59d7c
Fix for tgamma(x) where x < 0 and denorm.
2014-02-16 16:24:59 +00:00
ckormanyos
3391f44fab
In <boost/cstdfloat.hpp>, implement granular files.
2014-02-16 13:41:00 +01:00
jzmaddock
7a823466ca
More fixes from Rocco Romeo: do the correct thing near a small negative integer, and handle denormalized inputs correctly.
2014-02-15 19:19:44 +00:00
jzmaddock
118a93e3a6
Add tests for cstdfloat.hpp defined types.
...
Fix Math code to not use lexical_cast for constants for boost::floatmax_t when that type is __float128.
Fix constant usage so it doesn't break when the suffix is "Q".
2014-02-15 11:14:00 +00:00
jzmaddock
2c0eee7cd0
Quash some VC12 warnings.
2014-02-13 16:57:45 +00:00
jzmaddock
43f0f18591
Fix spurious overflows in tgamma/lgamma. Update tests to verify.
...
Thanks to Rocco Romeo for these.
2014-02-13 09:42:46 +00:00
jzmaddock
f9178d6f48
Fix some signed/unsigned inconsistencies (and warnings).
...
See https://svn.boost.org/trac/boost/ticket/9646 .
2014-02-11 13:20:25 +00:00
jzmaddock
91ea175da2
Remove register keyword: it's deprecated in C++11.
...
Fixes https://svn.boost.org/trac/boost/ticket/9639 .
2014-02-11 13:09:58 +00:00
jzmaddock
b0c9af5e61
Another attempt to accurately detect when we're in FTZ mode.
...
Fixes test failures for Win32 executables run on Win64.
2014-02-10 16:51:24 +00:00
Nikhar Agrawal
d168fba2df
Merge branch 'bernoulli-tgamma' of https://github.com/boostorg/math into bernoulli-tgamma
2014-02-07 03:06:42 +05:30
Nikhar Agrawal
0209dced1d
Removed unnecessary upfront bernoulli number calculation now that they can be cached
2014-02-07 03:04:55 +05:30
jzmaddock
fe6f54ac57
Fixes for VC11/12 x64 test failures: exp(-INF) returns -INF on type float!
2014-02-06 18:35:59 +00:00
Christopher Kormanyos
ca054f9e78
In Bessel / Airy zeros, reliance on numeric_limits for non-specialized types corrected.
2014-01-29 22:38:13 +01:00
Christopher Kormanyos
eee4394266
In Bessel / Airy zeros, remove use of numeric_limits<> in root calculations.
2014-01-29 22:02:29 +01:00
Christopher Kormanyos
4ea3d12425
Removed the use of std::numeric_limits<> in Bessel / Airy zero calculations in favor of tools is boost::math::tools.
2014-01-29 21:54:50 +01:00
jzmaddock
1b84923f70
Make sure internal calls to expm1/log1p are properly qualified and pass a policy.
2014-01-24 11:59:59 +00:00
jzmaddock
9baf90f56a
Merge branch 'bessel-derivatives' into develop
2014-01-23 16:55:55 +00:00
jzmaddock
7613d0dd45
Rename Bessel derivatives to primes.
2014-01-21 19:08:14 +00:00
Christopher Kormanyos
82824159ed
Clean up cbrt_epsilon and <cstdfloat.hpp>.
2014-01-19 21:24:55 +01:00
Christopher Kormanyos
f9d81b179c
Correct a bug that I caused in cbrt_epsilon(). But I don't know why cbrt did not work?
2014-01-19 21:21:12 +01:00
jzmaddock
21d8d99e6f
Add concept checks for Bessel derivatives and fix up resulting errors.
2014-01-19 17:42:24 +00:00
jzmaddock
29a6f932f1
Add forward declarations for Bessel derivatives.
2014-01-19 16:45:28 +00:00
jzmaddock
d5099fc86a
Suppress some msvc warnings.
2014-01-19 16:44:49 +00:00
jzmaddock
7c82510c66
Merge https://github.com/AntonBikineev/bessel-derivatives into branch bessel-derivatives preserving history as best we can.
2014-01-19 13:14:12 +00:00
jzmaddock
431284519f
Move directory structure around to match what we need for the merge.
2014-01-19 13:06:47 +00:00
Christopher Kormanyos
c63676b055
Improve small argument handling in the generic tgamma(). Thereby add new function cbrt_epsilon() in tools/precision.hpp.
2014-01-19 13:10:31 +01:00
Christopher Kormanyos
572562d271
Merge branch 'bernoulli-tgamma' of https://github.com/boostorg/math into bernoulli-tgamma
2014-01-19 11:24:20 +01:00
Christopher Kormanyos
5fc976c306
Move header <cstdfloat.hpp> to mainstream Boost.
2014-01-19 11:22:40 +01:00
Nikhar Agrawal
036945c71f
Added work done on polygamma function during GSoC
2014-01-19 15:21:34 +05:30
Christopher Kormanyos
0557af86a3
In <cstdfloat.hpp>, add support for the BOOST_NO_FLOAT128_T preprocessor definition.
2014-01-18 21:42:23 +01:00
Christopher Kormanyos
9c62c70dff
Remove float24_t from <cstdfloat.hpp>. Imrove the preliminary docs.
2014-01-18 15:18:55 +01:00
Christopher Kormanyos
3d61999cea
A few tweaks in <cstdfloat.hpp> and preliminary text-based docs.
2014-01-18 15:05:16 +01:00
Christopher Kormanyos
deb2daac04
In <cstdfloat.hpp> corrected the number of digits in float24_t.
2014-01-15 11:38:10 +01:00
Christopher Kormanyos
45a097e93b
To <cstdfloat.hpp>, add support for tiny floats float16_t and float24_t.
2014-01-14 22:40:24 +01:00
Christopher Kormanyos
93f0d2271c
Improve the comments in <ctsdfloat.hpp>.
2014-01-13 22:42:44 +01:00
Christopher Kormanyos
a8eff735fd
Re-correct the logic of un-defines in <cstdfloat.hpp>.
2014-01-13 20:21:33 +01:00
Christopher Kormanyos
cd6f694730
Improve clarity of <cstdfloat.hpp>.
2014-01-13 20:00:56 +01:00
Christopher Kormanyos
6855c35598
In <cstdfloat.hpp>, add support for __float128 from GCC's libquadmath.
2014-01-12 19:35:38 +01:00
Christopher Kormanyos
83ca3c282b
<cstdfloat> now stops at the least of float, double, or long double when querying <float.h>.
2014-01-12 15:52:51 +01:00
Christopher Kormanyos
d6bbde4a84
Clean up comments, etc. in preliminary <cstdfloat.hpp>.
2014-01-11 12:22:12 +01:00
Christopher Kormanyos
af02c1634e
Correct errors found via GCC for AVR tiny 8-bit microcontroller.
2014-01-10 23:20:00 +01:00
Christopher Kormanyos
cdc7b3b8cc
Improved floating-point type detection for a wider range of compilers.
2014-01-10 22:49:32 +01:00
Christopher Kormanyos
caf895fd23
Manual merge from bernoulli-numbers branch to bernoulli-tgamma branch.
2014-01-10 20:25:15 +01:00
Christopher Kormanyos
16efa7b842
Correct the min/max values in the macros.
2014-01-10 20:15:09 +01:00
Christopher Kormanyos
e373870c01
Preliminary concept implemntation of <cstdfloat>.
2014-01-10 19:37:33 +01:00
Christopher Kormanyos
c363d125f4
Initial commit of a very rudimentary sketch of <cstdfloat>.
2014-01-10 08:36:28 +01:00
Christopher Kormanyos
cd74da0ed1
Add tiny argument treatment to multiprecision tgamma(). Add tools cbrt_epsilon().
2014-01-10 08:35:43 +01:00
jzmaddock
1706a3c2b6
Improve error messages from overflow.
2014-01-09 10:17:01 +00:00
Christopher Kormanyos
9c6f195e4d
Implement cubed root of epsilon and preliminary multiprecision tgamma() and lgamma() for very small argument.
2014-01-08 22:58:11 +01:00
jzmaddock
c102fb62e9
Merge branch 'bernoulli-tgamma' into bernoulli-numbers
2014-01-07 13:06:14 +00:00
jzmaddock
49b30df548
Fix the order in which recursion occurs so that a) we don't end up dividing by zero if |z| < epsilon, and b) don't lose precision when z is close to epsilon.
2014-01-06 17:24:20 +00:00
Christopher Kormanyos
34ddaf71b5
In multiprecision lgamma() as well as tgamma() now use factorial for small unsigned integer arguments.
2014-01-05 21:23:33 +01:00
jzmaddock
5a4d1a85af
Forward to tabulated factorials when possible: fixes absurdities like lgamma(1) != 0 which occur otherwise.
2014-01-05 17:49:12 +00:00
Christopher Kormanyos
8aa1b7068e
Support multiprecision tgamma() and lgamma() for types without a specialization of numeric_limits.
2014-01-05 15:33:20 +01:00
Christopher Kormanyos
1b1b6b423d
Corrected error in sign of lgamma() for multiprecision. But still more test errors.
2014-01-05 14:48:43 +01:00
Christopher Kormanyos
d488669955
Improve some comments for multiprecision tgamma() and lgamma().
2014-01-04 21:47:11 +01:00
Christopher Kormanyos
06a2fcf887
Add a convergence condition to Stirling's approximation in multiprecision tgamma() and lgamma().
2014-01-04 20:12:51 +01:00
Christopher Kormanyos
67fb4fd303
Rework some comments.
2014-01-03 22:19:34 +01:00
Christopher Kormanyos
6d376cbc23
Finish implementing John's suggestions for multiprecision tgamma() and lgamma().
2014-01-03 22:08:06 +01:00
Christopher Kormanyos
02c4e88d5e
Start implementing John's suggestions for multiprecision tgamma() and lgamma().
2014-01-03 21:13:48 +01:00
Christopher Kormanyos
a94b332009
Preliminary multiprecision tgamma() and lgamma() implementations.
2014-01-03 15:46:14 +01:00
Christopher Kormanyos
0b77170d50
Rework the error handling for multiprecision tgamma() and lgama().
2014-01-03 11:36:23 +01:00
Christopher Kormanyos
7e1f271357
Remove some compiler warnings VC x64 size_t versus int / unsigned.
2014-01-02 20:36:58 +01:00
Christopher Kormanyos
b43386f869
Merge Bernoulli from branch bernoulli-numbers to branch bernoulli-tgamma.
2014-01-02 20:35:07 +01:00
Christopher Kormanyos
38d9e32786
Preliminary multiprecision tgamma() and lgamma(), phase of lgamma() needs work.
2014-01-02 20:25:17 +01:00
jzmaddock
f0c58c7e7f
Fix some MSVC warnings.
2014-01-02 17:37:19 +00:00
Christopher Kormanyos
68113ef5d6
Remove some compiler warnings for VC and x64 code.
2014-01-02 18:11:27 +01:00
Christopher Kormanyos
61f36e60fc
Continue work on multiprecision tgamma() and lgamma().
2014-01-02 18:11:03 +01:00
jzmaddock
2268c52d7a
Add Chris's optimized expression for the asymptotic formula.
...
Fix some bugs in use of asymptotic formula (2N vs N mixup).
2014-01-02 16:59:26 +00:00
Christopher Kormanyos
f206e220a1
Manual merge from branch bernoulli-numbers to branch bernoulli-tgamma.
2014-01-02 16:09:38 +01:00
Christopher Kormanyos
7dff191552
Repaired some typos in the multiprecision code in gamma_imp_bernoulli().
2014-01-02 14:29:48 +01:00
Christopher Kormanyos
6db6405d54
Refactor the multiprecision code of gamma_imp_bernoulli().
2014-01-02 14:22:05 +01:00
jzmaddock
7b2356e796
Add some needed typecasts for x64 platform
2014-01-02 12:54:46 +00:00
jzmaddock
af95975e2e
Add include test.
...
Improve error handling and overflow-estimation in bernoulli_details.hpp.
2014-01-02 11:54:44 +00:00
jzmaddock
49af977a28
Merge branch 'bernoulli-numbers' of https://github.com/boostorg/math into bernoulli-numbers
2014-01-02 09:32:09 +00:00
jzmaddock
7484e888a4
Fix error message strings.
2014-01-02 09:31:48 +00:00
Christopher Kormanyos
03e4dbc8c6
Continued work on tgamma() for multiprecision.
2014-01-02 00:08:21 +01:00
Christopher Kormanyos
825c2b97fd
Work on tgamma() multiprecision code.
2014-01-01 22:39:00 +01:00
Christopher Kormanyos
d0da0e6020
Simplify the overflow index calculation (now based on root-finding).
2014-01-01 20:28:00 +01:00
Christopher Kormanyos
d44e95c59a
Use ACM TOMS 748 bracketed root finding to estimate the index of the B2n that might overflow.
2014-01-01 18:20:12 +01:00
Christopher Kormanyos
49759f10b9
Correct Bernoulli-log estimation formula. Remove some, but not all, warnings for x64 size_t versus int, unsigned.
2014-01-01 15:56:18 +01:00
Christopher Kormanyos
b849611732
Corrected the Luschny approximation of log(b2n).
2013-12-31 18:03:11 +01:00
Christopher Kormanyos
bc105590a2
Preliminary tests of tgamma(). The undefined_lanczos is hard-coded.
2013-12-31 18:02:37 +01:00
Christopher Kormanyos
e02a7a5695
Merge branch 'bernoulli-numbers' of https://github.com/boostorg/math into bernoulli-tgamma
2013-12-31 17:28:29 +01:00
Nikhar Agrawal
58206f08b7
changed tgamma using bernoulli to mimic previous lanczos implementation for z<=-20
2013-12-31 18:51:31 +05:30
Nikhar Agrawal
6072e5f1a2
Added gamma file that uses Bernoulli implementation from gsoc work. The bernoulli using gamma function is currently called using gamma_imp_bernoulli(). Changes need to be further made.
2013-12-31 18:09:17 +05:30
jzmaddock
72934d6b24
Make parameters const consistent.
...
Add support for UDT's not convertible from long long.
2013-12-31 09:48:24 +00:00
jzmaddock
5b5550222a
Fix issues raised from the regression tests: some using declaration in the Bessel code, and some changed assumptions in the airy-zeros.
2013-12-30 09:44:11 +00:00
jzmaddock
3bc0ec66c3
Hook up the concept checks.
2013-12-29 18:46:39 +00:00
jzmaddock
36d5698421
Fix buggy overflow check.
...
Add B2n overflow test.
2013-12-29 18:00:21 +00:00
jzmaddock
2642c41b22
Fix GCC test failure.
2013-12-29 17:14:32 +00:00
jzmaddock
c5dde54a13
Fix gcc compiler failures
2013-12-29 10:49:27 +00:00
jzmaddock
05b8bd016c
Merge branch 'bernoulli-numbers' of https://github.com/boostorg/math into bernoulli-numbers
...
Conflicts:
include/boost/math/special_functions/detail/bernoulli_details.hpp
2013-12-29 09:46:40 +00:00
jzmaddock
5c628a3700
Enable tangent numbers.
...
Fix several error handling issues.
2013-12-29 09:40:15 +00:00
Christopher Kormanyos
3fc1266dba
Merge branch 'bernoulli-numbers' of https://github.com/boostorg/math into bernoulli-numbers
...
Conflicts:
include/boost/math/special_functions/bernoulli.hpp
2013-12-28 19:40:14 +01:00
Christopher Kormanyos
5330a48cc4
Include header bernoulli.h.
2013-12-28 19:25:09 +01:00
Christopher Kormanyos
bdd113c2c5
Use atomic enumeration member from std, not boost.
2013-12-28 19:24:48 +01:00
Christopher Kormanyos
ce39ae3802
Consist input parameters for Bessel/Airy zeros.
2013-12-28 19:23:37 +01:00
jzmaddock
5991ef3e9c
Move unchecked_bernoulli_b2n over to new header and add to tests.
2013-12-28 18:18:19 +00:00
jzmaddock
5dba5e7785
Commit test case.
...
Refactor into class-based details, and split big tables off into new header.
2013-12-28 18:12:33 +00:00
jzmaddock
01e943386a
Fix namespace used for atomic operations.
2013-12-28 16:46:42 +00:00
jzmaddock
e8a72fe32d
Move Nikhar Agrawal's Bernoulli code into mainstream Boost.
2013-12-28 16:28:15 +00:00
jzmaddock
1bdcacf7bb
Clean up negative argument usage in Bessel I0 and I1: negative arguments are handled at a higher level, so strip out support for them here and add an assert. See https://svn.boost.org/trac/boost/ticket/9512 .
2013-12-23 09:49:28 +00:00
jzmaddock
5492dce1ed
Add and document options to enable/disable __float128 usage explicitly, see: https://svn.boost.org/trac/boost/ticket/9240
2013-12-22 18:01:11 +00:00
John Maddock
7884aa6666
Add comments and fixes to FPU flags manipulation.
...
[SVN r86711]
2013-11-15 18:24:31 +00:00
John Maddock
0a5a045fee
Fixes for digamma and zeta based on bug reports by Rocco Romeo.
...
[SVN r86550]
2013-11-03 17:55:22 +00:00
John Maddock
bcf4ac887e
Allow Boost.Math to be used without RTTI.
...
Fixes #9317 .
[SVN r86517]
2013-10-29 17:16:09 +00:00
John Maddock
6d7249a357
Prevent spurious underflow in Bessel K.
...
[SVN r86472]
2013-10-27 09:23:16 +00:00
John Maddock
964435a350
Previous commit failed for types with an extended exponent range - use logarithms rather than assuming the result is zero.
...
[SVN r86346]
2013-10-18 08:56:42 +00:00
John Maddock
57b40ac443
Fix for sph_bessel when v is large and x is small.
...
[SVN r86343]
2013-10-17 18:21:56 +00:00
Stephen Kelly
7660f2dd3c
Remove BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
...
Process #ifndef...#else...#endif blocks.
[SVN r86245]
2013-10-11 23:17:48 +00:00
John Maddock
341c70ccee
Improve quantiles of discrete distributions to round trip integers more often.
...
Fixes #9183 .
[SVN r86205]
2013-10-08 17:17:27 +00:00
Stephen Kelly
805e8b67d7
Math: Remove obsolete GCC version checks.
...
[SVN r86071]
2013-09-30 15:59:51 +00:00
Stephen Kelly
6a7ed7a92c
Math: Remove use of obsolete macro
...
BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS was defined for old
DMC, which is no longer supported.
https://svn.boost.org/trac/boost/changeset/85272
[SVN r86042]
2013-09-30 00:35:59 +00:00
John Maddock
c11e570ec0
Fix use of student's t approximation to inverse so we don't get 1 and 0 as the result.
...
[SVN r85966]
2013-09-26 18:32:55 +00:00
Stephen Kelly
9f5b46760a
Math: Remove obsolete MSVC version check.
...
[SVN r85930]
2013-09-26 09:40:30 +00:00
Stephen Kelly
c118e1fdf5
Remove use of obsolete BOOST_EXPLICIT_TEMPLATE_TYPE{,_SPEC} macros.
...
[SVN r85894]
2013-09-25 10:28:56 +00:00
Stephen Kelly
8e8f2d37df
Remove use of BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
...
[SVN r85893]
2013-09-25 10:28:28 +00:00
Paul A. Bristow
394b90801a
Order of test for Trac #9126 in logistic and comments.
...
[SVN r85790]
2013-09-19 16:16:20 +00:00
John Maddock
f885891714
Suppress warning in fraction.hpp.
...
Fix internal consistency of argument reduction in elliptic integrals when the argument is very close to a multiple of PI/2.
Fixes #9107 .
Fixes #9104 .
[SVN r85678]
2013-09-15 16:56:43 +00:00
John Maddock
f50e0f1f9b
Fix GCC -Wshadow warnings.
...
[SVN r85667]
2013-09-14 16:07:45 +00:00
John Maddock
eea2f238ed
Fix order of error checks.
...
Fixes #9042 .
[SVN r85601]
2013-09-08 08:46:18 +00:00
John Maddock
a3e3e86eaf
Fix bug in incomplete beta inverse estimation routine (when estimating from student's t).
...
Add special cases to incomplete beta and inverse for a=b=0.5 and b=1.
Added tool for generating high precision gamma function test values.
[SVN r85572]
2013-09-05 15:56:17 +00:00
Paul A. Bristow
041dffcf2e
Added missing version of overflow error handling to include a val parameter.
...
[SVN r85414]
2013-08-21 10:49:40 +00:00
John Maddock
f571156b54
Made a few core functions usable with long double even when there is no std lib long double support.
...
Fixes #8940 .
[SVN r85188]
2013-08-02 08:30:04 +00:00
John Maddock
7858278bec
Fix gcc-4.8.x warnings.
...
Fix some Mingw failures.
Fixes #8855 .
[SVN r85131]
2013-07-23 11:09:47 +00:00
John Maddock
30193aee08
Fix Thomas Luu's approximation.
...
[SVN r85103]
2013-07-22 11:50:26 +00:00
John Maddock
fc451ee936
Don't throw exceptions from itrunc/iround if all we're doing is checking to see if the argument is an integer.
...
Don't propagate no-throw policies inside MPFR's itrunc/iround.
Use normal approximation to student's t quantile when the degrees of freedom is big enough.
Fixes #8837 .
[SVN r85075]
2013-07-18 17:31:42 +00:00
John Maddock
858aa989c9
Patch from Thomas Luu for the case where Pearson's approximation goes negative.
...
[SVN r85074]
2013-07-18 17:09:02 +00:00
John Maddock
e915b95e05
Fix formula used in non central chi squared quantile, and document code better.
...
[SVN r85034]
2013-07-14 16:00:11 +00:00
John Maddock
4afe08b440
Fix overflow/underflow errors when x is very close to 2.
...
[SVN r84951]
2013-07-04 15:31:32 +00:00
John Maddock
a4fbc8bdae
Fix for evaluation at float precision.
...
[SVN r84944]
2013-07-03 15:51:50 +00:00
John Maddock
dca59f0d25
Add test for things that are macros in C99 to ensure we call these correctly.
...
Refs #8732 .
Fixes #8733 .
[SVN r84917]
2013-06-30 11:05:21 +00:00
John Maddock
8243a35a5e
Don't mix literal and non-literal initializers in one table - it causes the PGI compiler to generate incorrect code.
...
Refs #8621 .
[SVN r84789]
2013-06-15 08:04:54 +00:00
John Maddock
fd33bddb6c
Don't mix literal and non-literal initializers in one table - it causes the PGI compiler to generate incorrect code.
...
Refs #8621 .
[SVN r84714]
2013-06-09 14:14:11 +00:00
John Maddock
c08785d7dd
Minor fix for multiprecision types.
...
[SVN r84547]
2013-05-29 11:12:06 +00:00
John Maddock
1f0d223ba6
Try and suppress msvc warning.
...
Refs #8584 .
[SVN r84355]
2013-05-18 17:54:46 +00:00
John Maddock
7f885fda28
Fix buggy last commit.
...
[SVN r83808]
2013-04-08 12:04:26 +00:00
John Maddock
c07c35a34e
Refactored build process to improve compile times.
...
Fixed expression-template incompatibility in spherical_harmonic.hpp.
Fixed expression template issues in log1p_expm1_test.hpp and test_cbrt.hpp.
[SVN r83775]
2013-04-06 08:54:04 +00:00
John Maddock
6f086d3729
Remove outdated workarounds and simply code.
...
Fixes #8333 .
[SVN r83748]
2013-04-03 17:45:33 +00:00
John Maddock
1fc563b576
disable __float128 constants in __STRICT_ANSI__ mode as GCC doesn't support them. Fix a bunch of warnings emitted by gcc-4.8.
...
[SVN r83632]
2013-03-29 19:01:05 +00:00
John Maddock
5197064879
Make use of lexical_cast (and hence multiprecision support) dependent on there being an iostreams lib. Should allow use on embedded platforms, especially WinCE.
...
Fixes #8327 .
[SVN r83537]
2013-03-24 12:01:58 +00:00
John Maddock
31efbe8924
Reorganise header inclusion to minimise dependencies on <iostream> and <boost/lexical_cast.hpp>.
...
Refs #8327 .
[SVN r83532]
2013-03-23 17:05:15 +00:00
John Maddock
6e626c1830
Fix edge case in Halley iteration where the derivative is flatlining.
...
Fix edge cases in poisson distribution quantile.
Fixes #8314 .
Fixes #8308 .
Update and regenerate docs.
[SVN r83512]
2013-03-21 13:01:50 +00:00
Paul A. Bristow
69f49b2b96
Made order of parameters match specification for ai and bi.
...
airy_bi_zero<T>(start_index, number_of_zeros, out_it, policies::policy<>());
[SVN r83415]
2013-03-13 15:04:22 +00:00
John Maddock
0716a1aad4
Restrict __float128 support to GCC only for now.
...
Fixes #8265 .
[SVN r83369]
2013-03-09 11:32:51 +00:00
John Maddock
307d5ae933
Adjust tgamma_ratio failure rates, fix some clang warnings, plus a bug in error_handling.hpp that causes unitialized variable use in some situations.
...
[SVN r83360]
2013-03-08 12:16:13 +00:00
John Maddock
343d9ba8e6
Remove dependency on quadmath.h.
...
Fixes #8265 .
[SVN r83356]
2013-03-08 11:33:04 +00:00
John Maddock
42b3d6bb0f
Fix a couple of expression template support issues in bessel.hpp.
...
Add minimal support for __float128 - particularly numeric constant support.
Improve constant test cases.
Fix bug in zeta function tests.
[SVN r83342]
2013-03-07 09:17:09 +00:00
John Maddock
6c6e542ed4
Tighten up error handling is tgamma_ratio.
...
[SVN r83316]
2013-03-05 18:33:58 +00:00
John Maddock
cbaf7486e5
Fixes #8116 .
...
[SVN r83283]
2013-03-03 16:32:30 +00:00
John Maddock
51dd944d85
Improve accuracy of tgamma_ratio when one argument is very small, thanks to ideas from Rocco Romeo.
...
[SVN r83250]
2013-03-02 18:59:50 +00:00
John Maddock
cd55f94984
Fix bug in zeta that results in an incorrect domain_error for -eps < s < 0.
...
Add new constant needed by fix.
[SVN r83228]
2013-03-01 13:18:07 +00:00
Paul A. Bristow
c3b76f5745
Added missing function definition for error message.
...
[SVN r83186]
2013-02-27 12:50:26 +00:00
Christopher Kormanyos
fd836efe63
Added exception handling to airy_ai_zero() and airy_bi_zero().
...
[SVN r83168]
2013-02-26 20:34:23 +00:00
Christopher Kormanyos
99f141004b
Corrected edge cases for cyl_neumann_zero() with negative order.
...
[SVN r83167]
2013-02-26 20:33:20 +00:00
Christopher Kormanyos
f2be55beef
Corrected cyl_neumann_zero() for negative order.
...
Improved the clarity of source level comments in the Bessel zero codes.
[SVN r83109]
2013-02-23 20:54:18 +00:00
Christopher Kormanyos
b2067a5baf
Added support for negative order to cyl_neumann_zero().
...
[SVN r83095]
2013-02-23 12:50:45 +00:00
Christopher Kormanyos
3f67bdb96c
Added support for the zeros of Jv with negative order v.
...
Added additional checks for the zero'th zero of Jv.
[SVN r83051]
2013-02-20 20:40:18 +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
John Maddock
080adc5bbf
Fix reflection formula for integer v.
...
[SVN r82948]
2013-02-17 13:26:12 +00:00
Christopher Kormanyos
8fa0f73e6b
Add support for the first zero of Y0(x).
...
Add support for the zero'th zero of Jv(x), with v != 0.
[SVN r82934]
2013-02-16 20:22:28 +00:00
John Maddock
e0a7e6afdb
Fix cyclic dependency.
...
Fixes #7999 .
[SVN r82921]
2013-02-16 12:47:18 +00:00
John Maddock
60198aafca
Fix raise_rounding_error to return the correct result (and type) when an error occurs.
...
Fixes #7905 .
[SVN r82885]
2013-02-14 18:20:03 +00:00
Paul A. Bristow
72b3b1e735
unsigned m changed to int
...
[SVN r82874]
2013-02-14 14:34:01 +00:00
John Maddock
76cc581bce
Refactor Bessel function code:
...
* Remove unused dead code.
* Improve and centralise asymptotic selection.
* Reorder algorithm selection in bessel_jy.
* Allow use of integer algorithms for arbitrary order - they're no slower than Steeds method which is also O(n).
[SVN r82816]
2013-02-11 12:12:50 +00:00
Paul A. Bristow
68d6cbc328
Comment out unused parameters /* pol */.
...
[SVN r82793]
2013-02-09 12:29:24 +00:00
John Maddock
0e2463bfd7
Tidy up policy usage and error handling in Bessel functions.
...
Change zero-finder functors to call top level Bessel functions.
[SVN r82792]
2013-02-09 11:56:52 +00:00
John Maddock
4d1e810132
Enable better error handling in bessel-zero code.
...
[SVN r82787]
2013-02-08 17:28:49 +00:00
Paul A. Bristow
419bb3aebb
Added order change to parameters at calls.
...
[SVN r82772]
2013-02-07 14:23:13 +00:00
John Maddock
2be883f332
Reordered parameters to Bessel and Airy root finders.
...
Update to docs with references.
[SVN r82764]
2013-02-06 18:53:06 +00:00
John Maddock
b86772e095
Tweak airy zero interfaces.
...
Change output_iterator template param to OutputIterator.
Change iterator based functions to return iterator result.
[SVN r82689]
2013-02-02 17:32:50 +00:00
Christopher Kormanyos
3fce7d9639
Changed the order of the input parameters for Bessel zeros.
...
Improved the algorithms for Bessel zeros.
Added and improved the Airy zeros.
[SVN r82682]
2013-02-01 19:39:36 +00:00
John Maddock
ec31c53007
Fix forward declarations to match functions.
...
[SVN r82660]
2013-01-28 17:37:28 +00:00
John Maddock
8fc29b32b0
Fix misc. warning in bessel zero code.
...
[SVN r82657]
2013-01-28 11:50:45 +00:00
John Maddock
3c1dd01d04
Add Boost.Multiprecision integration concept checks.
...
Fix errors that result.
[SVN r82656]
2013-01-28 09:32:31 +00:00
John Maddock
e2ce70b935
Fix output iterator usage to meet conceptual requirements.
...
Remove use of long long constants and change to double as mpfr_class has no conversion from long long :(
Fix typos in math_fwd.hpp.
Add new functions to concept tests.
[SVN r82623]
2013-01-26 12:58:55 +00:00
Christopher Kormanyos
343f41df69
Re-corrected the behavior of Bessel zeros when used with multiprecision and et_on.
...
[SVN r82616]
2013-01-25 22:05:49 +00:00
Christopher Kormanyos
68e04a0bed
Corrected Bessel zeros when used with a multiprecision type having et_on.
...
[SVN r82615]
2013-01-25 21:51:40 +00:00
John Maddock
4a64953dc7
Fix for SSE2 systems on Linux
...
[SVN r82608]
2013-01-25 16:53:36 +00:00
Christopher Kormanyos
d41e3642ed
Added support for the zeros of cylindrical Bessel functions.
...
[SVN r82599]
2013-01-24 18:59:14 +00:00
John Maddock
ac8018ab48
Split test_instances lib up into even smaller blocks.
...
Fix a few gcc-mingw test failures.
Fix typo in spherical harmonic docs.
[SVN r82598]
2013-01-24 17:49:57 +00:00
John Maddock
fd8770b9b5
Modify constants code to return a constant reference when returning a cached value, while still maintaining value semantics and constexpr support for built in types.
...
[SVN r82585]
2013-01-22 12:16:51 +00:00
John Maddock
5ba6a44ad9
Fix comments in code.
...
[SVN r82567]
2013-01-20 17:10:18 +00:00
John Maddock
a412b58561
More Bessel function improvements from Rocco Romeo.
...
Update and regenerate docs.
[SVN r82565]
2013-01-20 17:04:01 +00:00
John Maddock
e8540ba62a
Fix needed for TR1 lib.
...
[SVN r82558]
2013-01-20 09:59:07 +00:00
John Maddock
c5b06d47b2
More simplifications from Rocco Romeo.
...
[SVN r82557]
2013-01-20 09:57:42 +00:00
John Maddock
77c48bc4b2
Fix some warnings.
...
Fix edge case in hypergeometric distribution.
Fixes #7429 .
Fixes #7891 .
[SVN r82520]
2013-01-17 13:27:48 +00:00
John Maddock
998705f0d7
Enable caching of arbitrary precision constants.
...
[SVN r82461]
2013-01-12 11:10:11 +00:00
John Maddock
a61b5eb7b5
More accuracy improvements based on suggestions by Rocco Romeo.
...
[SVN r82217]
2012-12-27 08:44:08 +00:00
John Maddock
7514bd7489
Fix typo in fwd.hpp.
...
Improve accuracy of Bessel J and Y[0,1] for large z.
[SVN r81755]
2012-12-07 12:49:42 +00:00
Paul A. Bristow
6019367622
Ensured have 31 distributions at 1.52
...
[SVN r81743]
2012-12-06 15:43:32 +00:00
John Maddock
7d9dfaec86
Apply some accuracy improvements from Rocco Romeo.
...
Fix division by zero in inverse gamma distribution.
Minor doc fixes and regenerate.
[SVN r81627]
2012-11-29 18:55:20 +00:00
John Maddock
12f3914aac
Enable use of C99 functions on libc++.
...
Fixes #7492 .
[SVN r81625]
2012-11-29 16:39:53 +00:00
John Maddock
b857b5fa32
Lots of small patches.
...
Update and regenerate docs.
Fixes #7183 .
Fixes #7290 .
Fixes #7291 .
Fixes #7649 .
Refs #7492 .
[SVN r81624]
2012-11-29 13:27:31 +00:00
John Maddock
81f245324b
Fix bug introduced in last commit!
...
[SVN r81594]
2012-11-27 17:36:54 +00:00
John Maddock
fc112cd24f
Don't pass potential expression templates to make_tuple as it confuses gcc-4.4.x.
...
[SVN r81546]
2012-11-26 10:23:17 +00:00
John Maddock
3822a35591
Minor fixes/typo corrections.
...
[SVN r81424]
2012-11-19 13:35:49 +00:00
John Maddock
d6320c49c0
Minor fix for expression template types.
...
[SVN r81120]
2012-10-31 17:04:47 +00:00
John Maddock
ba13586027
Fix asinh and acosh to work with very large arguments without overflow.
...
[SVN r80884]
2012-10-06 16:53:15 +00:00
John Maddock
b9e891404a
Fix improper overflow error handling in asinh.hpp.
...
Update asinh and acosh test cases.
Add fixes to release notes and regenerate docs.
Fixes #7416 .
[SVN r80695]
2012-09-24 17:16:29 +00:00
John Maddock
068e88fa36
Fix atanh error handling.
...
Add extra tests to catch above bug.
Fixes #7415 .
[SVN r80692]
2012-09-24 16:23:06 +00:00
Paul A. Bristow
a286b00833
delta == 0 treated as special case for mean, variance, skewness and kurtosis
...
== central Student's t
[SVN r80233]
2012-08-26 09:43:43 +00:00
Paul A. Bristow
4a1ccd574e
Comment only on change to use normal for
...
(v > 1 / boost::math::tools::epsilon<T>()
[SVN r80196]
2012-08-25 10:13:27 +00:00
John Maddock
e5723529c2
Fix remaining GCC and Intel issues for very large v in non-central t.
...
[SVN r80195]
2012-08-25 09:13:42 +00:00
Paul A. Bristow
c1b086325d
Use normal distribution for v > 1/eps
...
[SVN r80156]
2012-08-23 13:43:44 +00:00
Paul A. Bristow
ef6a5b791a
Added support for infinite degrees of freedom.
...
Correct some error messages (and made quantile produce the correct complemented version by forwarding the function string to the detail:: code).
There are still some confusing variable names.
[SVN r80118]
2012-08-21 17:39:51 +00:00
Paul A. Bristow
1b893e541b
Added df >0 and infinite test, used by students t and non-central t.
...
[SVN r80117]
2012-08-21 17:37:20 +00:00
John Maddock
885e35a8fd
Update reference in comments.
...
[SVN r80070]
2012-08-17 16:19:23 +00:00
John Maddock
9cef5e424d
Change variable names to match common usage.
...
[SVN r80069]
2012-08-17 16:04:15 +00:00
John Maddock
1f9cdaf16f
Add needed using declarations.
...
[SVN r80068]
2012-08-17 15:32:12 +00:00
John Maddock
29d598eb97
Add student's t approximations for large v.
...
[SVN r80066]
2012-08-17 12:21:57 +00:00
John Maddock
4be8acfe68
Fix numerical stability problem in incomplete beta: ibeta_fraction2 sometimes has catastrophic cancellation errors when a and b are large and x is near 1.
...
Change non central t series termination conditions to check for divergent series.
Update tests with new larger test values.
[SVN r80065]
2012-08-17 11:18:18 +00:00
John Maddock
bf39b3834a
Fix bug in incomplete beta which causes an exception to be thrown in itrunc when one argument is very large.
...
Fix several similar issue in the non-central T which cause cancellation errors if we let the starting iteration be zero.
Remove dead code that results from above changes.
Minor fixes to table_type and test_next.cpp.
[SVN r80061]
2012-08-16 15:27:40 +00:00
John Maddock
a4640b3cf4
Fix typo in algorithm selection.
...
[SVN r79982]
2012-08-12 17:03:26 +00:00
Paul A. Bristow
e4cf24554b
Changes to deal with copyright and tabs from inspection report
...
[SVN r79949]
2012-08-09 17:58:46 +00:00
Paul A. Bristow
cf1d644c4e
Major update to allow df == +infinity.
...
[SVN r79911]
2012-08-07 15:53:54 +00:00
Paul A. Bristow
5d887432cd
Using the 1/eps to switch to normal distribution.
...
[SVN r79892]
2012-08-06 16:30:12 +00:00
John Maddock
5ed9615fb5
Fixes for multiprecision and expression template enabled types.
...
[SVN r79851]
2012-08-02 15:16:21 +00:00
Paul A. Bristow
139a12844e
Back to plan A! not defined for v <= k - no infinity from moments.
...
(TODO use normal for df = infinity?)
[SVN r79836]
2012-08-01 17:11:31 +00:00
Paul A. Bristow
b3bee00ce0
Various cosmetic changes to deal with Inspection nags.
...
[SVN r79818]
2012-07-31 13:32:25 +00:00
Paul A. Bristow
059d1b4378
Added terminal newline.
...
[SVN r79814]
2012-07-31 11:28:17 +00:00
Paul A. Bristow
d7dc107b30
Remove tabs and () max call.
...
[SVN r79813]
2012-07-31 11:26:45 +00:00
Paul A. Bristow
848c0da5c9
Removed tabs
...
[SVN r79811]
2012-07-31 11:15:30 +00:00
Paul A. Bristow
4ad388a10e
Remove non-ASCII char in comment.
...
[SVN r79810]
2012-07-31 10:57:22 +00:00
Paul A. Bristow
e71253c782
Revised checks on moments and return values
...
[SVN r79770]
2012-07-27 15:34:35 +00:00
Paul A. Bristow
b12334ba6e
Revised for Trac #7717
...
[SVN r79759]
2012-07-26 18:03:32 +00:00
John Maddock
c2e90167f7
Tentative fix for issue #4445 .
...
Adds tests for next.hpp when using the SSE2 instruction set in DAZ and FTZ modes.
Note that FTZ mode is particularly pernicious as non-zeros can change to zeros at random points in program flow depending upon the exact instructions generated by the compiler - thus breaking program logic/invariants.
Refs #4445 .
[SVN r79572]
2012-07-17 09:22:59 +00:00
John Maddock
c3da72b1b2
Fix typo in Hankel function implementation that causes incorrect values to be returned for x < 0 and v an odd integer.
...
Add additional Hankel function tests.
Add a couple of missing header inclusion tests.
Update history in docs, and regenerate HTML.
Fixes #7135 .
[SVN r79510]
2012-07-14 18:34:01 +00:00
John Maddock
cfd28e0e05
Tentative fix #2 for TI compiler error.
...
Refs #7099 .
[SVN r79439]
2012-07-12 09:53:18 +00:00
John Maddock
c585419ec2
Allow fpclassify and friends to be used with integer types via the usual promotion mechanism.
...
Fixes #6517 .
[SVN r79438]
2012-07-12 09:51:32 +00:00
John Maddock
58e250eb1f
Ditch anonymous union - it causes GCC-4.4 to choke.
...
Fixes #6362 .
[SVN r79421]
2012-07-11 17:28:54 +00:00
John Maddock
176a695ec0
Fix double inclusion of <complex> which causes use of Boost.TR1 to fail.
...
Fixes #7053 .
[SVN r79420]
2012-07-11 17:27:27 +00:00
Marshall Clow
985d3cdc00
Switch from deprecated macros to new shiny ones; no functionality change
...
[SVN r79417]
2012-07-11 16:21:28 +00:00
John Maddock
f73f66b454
Tentative fix for compilers that treat floating point constants smaller than a 64-bit double can hold as hard errors.
...
Refs #7099 .
[SVN r79332]
2012-07-07 11:18:09 +00:00
John Maddock
629db84174
Fix file line ending.
...
Fixes #7062 .
Fixes #7097 .
[SVN r79317]
2012-07-06 16:17:39 +00:00
John Maddock
19f78ac0ac
Fix actual and potential integer divisions when using integer constants.
...
Fixes #7024 .
[SVN r79154]
2012-06-28 12:09:09 +00:00
John Maddock
26d92a55f0
Add missing include guards.
...
Fixes #7001 .
[SVN r79027]
2012-06-21 09:18:47 +00:00
John Maddock
6007215c95
Update more distribution tests for fisher_f and extreme_value and fix failures.
...
Refs #6934 .
[SVN r78783]
2012-05-31 11:15:42 +00:00
Paul A. Bristow
3f93aff61d
Added checks for non finite parameter and x = NaN
...
[SVN r78781]
2012-05-31 11:10:50 +00:00
John Maddock
73c9b11179
Update more distribution tests, from Inverse* down to gamma.
...
Refs #6934 .
[SVN r78778]
2012-05-31 10:18:02 +00:00
Paul A. Bristow
4dd9452c22
Corrected failure to check for NaN in quantiles. UNsure if df should include zero.
...
[SVN r78776]
2012-05-31 09:35:52 +00:00
John Maddock
392fbeeddd
Add extra error tests for negative_binomial to laplace distros.
...
Refs #6934 .
[SVN r78773]
2012-05-30 18:15:41 +00:00
John Maddock
41bd4bd442
Update to use new out-of-bounds error checking.
...
Refs #6934 .
[SVN r78771]
2012-05-30 16:52:18 +00:00
Paul A. Bristow
a72f149301
Changed range to infinity if supported.
...
[SVN r78768]
2012-05-30 16:35:59 +00:00
Paul A. Bristow
7ef962fc6b
Changed range to include infinity if supported.
...
[SVN r78766]
2012-05-30 16:31:18 +00:00
Paul A. Bristow
187960b9a7
Corrected checks missing ().
...
[SVN r78765]
2012-05-30 16:30:45 +00:00
John Maddock
bc2dc1d4dd
Add boilerplate code for testing most domain errors in the distributions.
...
Update the non-central distributions to make use of it.
[SVN r78751]
2012-05-29 17:43:16 +00:00
John Maddock
3e9242ade2
Improve testing of error conditions and fix any errors detected.
...
Takes care of distributions normal-weibull.
Refs #6937 .
[SVN r78726]
2012-05-28 17:42:50 +00:00
John Maddock
a1789c4766
Tighten Weibull distro tests.
...
Fix corner cases in Weibull distro.
Fixes #6939 .
Fixes #6938 .
[SVN r78723]
2012-05-28 16:27:00 +00:00
John Maddock
02787878e6
Update concept checks to unmask issues reported in #6934 .
...
Add some distributions to the concept tests that were missing before.
Add skew_normal_distribution to distributions.hpp.
Fix some errors in calculating custom policies when the defaults have been changed.
Fix the errors and warnings that result from the above.
Refs #6934 .
[SVN r78711]
2012-05-28 11:05:43 +00:00
Paul A. Bristow
5e0aa58152
Added Policy as a template parameter to functors and #6934 test program now compiles and runs.
...
Need to commit changes to concept checks to confirm.
[SVN r78579]
2012-05-24 11:13:54 +00:00
John Maddock
1a2d4d2c5e
Move default arguments to forward declaration.
...
Fixes #6930 .
[SVN r78559]
2012-05-23 17:18:49 +00:00
John Maddock
382d525d15
Add basic versions of the Airy functions.
...
Add some extra jacobi, hankel and owens_t tests and fix resulting errors.
Allow remez code to work with expression template types.
Regenerate docs.
[SVN r78527]
2012-05-21 09:45:48 +00:00
John Maddock
056745573f
Add the Jacobi elliptic special functions.
...
[SVN r78492]
2012-05-17 09:19:57 +00:00
John Maddock
2fdb5f551f
Quash some minor warnings.
...
[SVN r78422]
2012-05-11 17:13:03 +00:00
John Maddock
9834bafe7e
Add needed forward declarations (keeps GCC-4.7.0 happy).
...
[SVN r78400]
2012-05-10 09:16:26 +00:00
John Maddock
be63e63891
Fix a pair of typos (one a clear bug).
...
[SVN r78316]
2012-05-03 17:20:24 +00:00
Paul A. Bristow
b0021e4c28
Added constant ln_ten
...
[SVN r78288]
2012-05-01 10:42:14 +00:00
John Maddock
aa64d8dc00
Add forwarding-policy to hankel functions.
...
Updated docs with links to more info.
[SVN r78256]
2012-04-29 16:54:10 +00:00
John Maddock
be93fe3b95
Rename hankel_hX to hankel_X.
...
Update tests and docs for Hankel functions.
[SVN r78253]
2012-04-29 12:39:28 +00:00
John Maddock
d099a2bbf0
Add first draft of Hankel functions.
...
Add some Math lib docs that were previously missing.
[SVN r78245]
2012-04-28 17:59:37 +00:00
John Maddock
ac0d76900a
Add code to force initialization of constants prior to the start of main().
...
Rename "do_nothing" to "force_instantiate" which better describes what it does.
Fix up the resulting failures.
[SVN r78193]
2012-04-25 17:16:09 +00:00
John Maddock
e1fc40cf11
Yet another try at getting constexp usage correct!
...
Refs #6820 .
[SVN r78160]
2012-04-23 15:13:10 +00:00
John Maddock
73bd07a44d
Fix constexp usage.
...
[SVN r78133]
2012-04-22 11:17:08 +00:00
John Maddock
ec742b4b80
Merge Owen's T function and Skew Normal code from sandbox and fix whatever failures show up.
...
Regenerate docs.
[SVN r78130]
2012-04-22 10:23:03 +00:00
John Maddock
ad520dbbcb
Disable real_concept tests for IBM's compiler.
...
[SVN r78108]
2012-04-21 08:58:09 +00:00
John Maddock
f149d4cf53
Fix double-definition of float_t in tr1.hpp.
...
Tweak behaviour of BOOST_MATH_BIG_CONSTANT.
Fix expected error rates for a bunch of tests (mostly on Mingw).
Fix paths in owens_t.qbk.
[SVN r78107]
2012-04-21 08:43:06 +00:00
John Maddock
15baa10fac
Add checks to discrete quantile finder to handle cases where there is no true answer.
...
Fixes #6805 .
[SVN r78090]
2012-04-20 10:51:55 +00:00
John Maddock
85d55b2ea5
Update test_data.hpp to improve definition of SC_ so it's compatible with multiprecision testing.
...
Update BOOST_MATH_BIG_CONSTANT to use a long double when the result is long double or smaller.
[SVN r78042]
2012-04-17 16:05:52 +00:00
John Maddock
d94751ba33
Fix numeric error in bessel_jy.hpp.
...
Remove some dead code from bessel_jy.hpp.
Add additional test cases for above bug.
Update and regenerate docs to match.
[SVN r77513]
2012-03-24 11:59:21 +00:00
John Maddock
14b97d2dd4
Add missing include.
...
[SVN r77350]
2012-03-16 16:55:22 +00:00
John Maddock
940c3824c8
Change put_num_and_fill to work on CharType not char, so that formatting of signed zeroes is wide character safe even if '0' is not used for zeroes.
...
[SVN r77286]
2012-03-09 18:36:29 +00:00
John Maddock
b745e80ede
Fix warning with a cast rather than a blanket disable.
...
[SVN r77283]
2012-03-09 09:35:36 +00:00
Paul A. Bristow
fec1f2407e
Version that passes new tests for both default and signed_zero flag set based on modifications by KR Walker.
...
BUT had to suppress MSVC warning "C4244 conversion wchar_t* to char* may cause data loss."
[SVN r77268]
2012-03-08 18:12:28 +00:00
John Maddock
6fc9eb72a9
Fix GCC some warnings, plus one failure.
...
[SVN r76821]
2012-02-01 13:06:17 +00:00
Paul A. Bristow
a94442f5de
Added tests for new constants two_div_pi and root_two_div_pi
...
[SVN r76820]
2012-02-01 12:32:22 +00:00
John Maddock
20f26bd52c
Use underscores in attribute names.
...
Fixes #6411 .
[SVN r76773]
2012-01-29 12:27:53 +00:00
John Maddock
59eb0f44df
Don't be too quick to disable long double functions if __NO_LONG_DOUBLE_MATH is set by GLIBC.
...
Fixes #6459 .
[SVN r76764]
2012-01-28 19:13:44 +00:00
John Maddock
682d60c363
Merge new math constants code from the sandbox.
...
Regenerate docs.
Fix build failures caused by merge.
[SVN r76736]
2012-01-28 12:13:17 +00:00
John Maddock
887f590fcd
Refactor the tests some more: allow tables of data to be of a different type to the type being tested - allows us to have tables of POD's (fast to compile) rather than tables of UDT's which compile very slowly on some compilers (usually Intel).
...
[SVN r76544]
2012-01-16 18:25:02 +00:00
John Maddock
c5bdd41539
Correct overflow logic in Bessel Y and add new test case.
...
Fixes #6367 .
[SVN r76373]
2012-01-08 18:51:23 +00:00
John Maddock
fecae229b0
Simplify/improve zeta function still further.
...
[SVN r76337]
2012-01-07 16:57:51 +00:00
John Maddock
532ddf8cb0
Change template argument "L" to "Lanczos" to avoid conflicts with L as a macro.
...
[SVN r76278]
2012-01-02 17:44:19 +00:00
John Maddock
9005ade2a3
Updated big_lanczos.hpp to use new BIG_CONSTANT macros.
...
Fix expression template issue in zeta.hpp.
[SVN r76251]
2012-01-01 11:34:50 +00:00
John Maddock
9922e9134c
Remove unused constant.
...
Fixes #5982 .
[SVN r76099]
2011-12-21 17:58:28 +00:00
John Maddock
4d57f3e642
Disable SSE2 instruction support under the CUDA compiler.
...
Fixes #6234 .
[SVN r76097]
2011-12-21 17:43:55 +00:00
John Maddock
a4a1cca095
Change overflow tests to not generate an infinity.
...
Fixes #6307 .
[SVN r76095]
2011-12-21 16:58:36 +00:00
John Maddock
02e5447867
Delete unneeded variable.
...
Fixes #6307 .
[SVN r76094]
2011-12-21 16:46:46 +00:00
John Maddock
1a304dccb0
Apply patch from #6192 .
...
Plus fix a few other issues that arise when BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS is set.
Fixes #6192 .
[SVN r76093]
2011-12-21 16:37:32 +00:00
John Maddock
af0c106290
Update zeta implementation to use much faster algorithm.
...
Change zeta test to use external template instances.
[SVN r76092]
2011-12-21 16:07:37 +00:00
John Maddock
70f902d332
Misc small workarounds to allow multiprecision tests to function.
...
[SVN r76080]
2011-12-20 16:21:44 +00:00
John Maddock
2902c06d6c
Add missing using declarations.
...
[SVN r76041]
2011-12-18 16:05:55 +00:00
John Maddock
381bddafa0
Finish moving test cases into headers.
...
Fix array declarations so GCC doesn't warn about them.
Declare constants in headers so they can be used by UDT's larger than type long double.
Suppress a few warnings and fix a couple of bugs that showed up when testing with UDT's.
[SVN r75960]
2011-12-15 11:23:35 +00:00
John Maddock
434d53bc83
Fix complex number routines to work with signed zeros, changes involve:
...
* Use boost::math::signbit rather than comparison to zero.
* Use boost::math::changesign rather than unary negation (unary negation fails for Intel on Linux when the argument is a zero).
* Update to use boost::math::isnan/isinf rather than the old code.
* Update to use boost::math constants.
Fixes #6171 .
[SVN r75933]
2011-12-13 18:11:46 +00:00
John Maddock
8d9372fac9
Begin refactoring math lib test cases as template so they can used by other numerical types.
...
Change constant declarations in the Math lib headers to give full digits when used with UDT's that are constructible from strings.
[SVN r75820]
2011-12-06 09:38:16 +00:00
Paul A. Bristow
cbe12e231d
Added "two_thirds" and deprecate "twothirds" Trac 6199
...
[SVN r75773]
2011-12-02 15:01:40 +00:00
Paul A. Bristow
09c2238e7a
Corrected complement cdf with Yan Zhou patch.
...
[SVN r75591]
2011-11-21 12:57:33 +00:00
John Maddock
c1e5af9291
Warning suppression.
...
[SVN r75585]
2011-11-21 09:46:33 +00:00
John Maddock
2d5ba01092
Tentative fix for platforms that have fenv.h but no fexcept_t.
...
[SVN r75486]
2011-11-14 12:20:13 +00:00
John Maddock
9373287faa
More fixes for expression template types.
...
[SVN r75403]
2011-11-08 12:49:27 +00:00
John Maddock
a8d7299861
Allow distribution parameter checking to be eluded if it's already taken place.
...
[SVN r75196]
2011-10-31 16:38:16 +00:00
John Maddock
c43891eab0
Allow precision.hpp to work with number types in base 10.
...
Fix binomial_distribution quantile when success_fraction is 1.
Fixes #6069 .
[SVN r75168]
2011-10-29 17:26:26 +00:00
John Maddock
34a635b621
Fix Clang build issue.
...
[SVN r75152]
2011-10-28 08:29:55 +00:00
John Maddock
681b9c1288
Add missing #include.
...
Fixes #6017 .
[SVN r74937]
2011-10-13 17:31:00 +00:00
John Maddock
b7df32ac03
Apply patch from ticket #6014 .
...
Fixes #6014 .
[SVN r74927]
2011-10-12 17:09:48 +00:00
John Maddock
48e179266b
Fix error checking for trunc and round functions.
...
Update tests to match.
[SVN r74925]
2011-10-12 11:06:09 +00:00
John Maddock
f617e8e284
Change nextafter and related functions to handle infinities as arguments the same way as GLIBC and MSVC.
...
Fixes #5823 .
[SVN r74918]
2011-10-11 17:28:13 +00:00
John Maddock
a5941a2179
GCC workaround when using TR1 tuple.
...
Fixes #5934 .
[SVN r74891]
2011-10-10 12:09:12 +00:00
John Maddock
303503d876
Remove unused constants.
...
Fix expression for tolerance in eps_tolerance.
Add include guards to prime.hpp.
Fixes #5982 .
Fixes #5927 .
Fixes #6001 .
[SVN r74890]
2011-10-10 11:52:05 +00:00
John Maddock
f52587e616
More fixes for UDT's as arguments.
...
[SVN r74802]
2011-10-08 12:30:50 +00:00
John Maddock
8f22d5ebe5
Minor fixes for expression-template types.
...
[SVN r74572]
2011-09-26 11:01:03 +00:00
Paul A. Bristow
a74236ad41
std qualified strlen in int width = (int)std::strlen(prefix) + (int)std::strlen(body);
...
to comply with C++ standard.
[SVN r74480]
2011-09-20 18:03:22 +00:00
John Maddock
6e78e00321
Fix mpreal #includes.
...
Add some more expression-template fixes.
Add fix for Cray platform in SSE2 support selection.
[SVN r74389]
2011-09-15 17:16:20 +00:00
John Maddock
be97e03f4e
Fix expression template compilation issues.
...
[SVN r74355]
2011-09-12 08:36:54 +00:00
John Maddock
acb59c8512
Fix usage with expression template types.
...
Fix fpclassify code when both BOOST_MATH_DISABLE_STD_FPCLASSIFY and isnan are defined.
Remove dead code.
[SVN r74185]
2011-09-01 18:03:31 +00:00
John Maddock
990c183d8d
Fix error handling arguments.
...
[SVN r74184]
2011-09-01 17:47:01 +00:00
John Maddock
c416cd2772
Fix bug in e_float bindings - negative integers were incorrectly converted.
...
[SVN r73647]
2011-08-11 11:02:12 +00:00
Paul A. Bristow
92b23c16a6
Corrected wrong code in uniform.hpp for >upper or < lower
...
wrong test values in uniform cdf complemented.
Trac ticket #5733
[SVN r73360]
2011-07-25 16:49:34 +00:00
John Maddock
38b6a4f3b8
Revert BSD fix - it breaks Boost.TR1 and was nonsense anyway! :(
...
[SVN r72821]
2011-06-30 16:04:54 +00:00
John Maddock
4cf83544cd
Add new series evaluation forms for the Bessel J and Y functions.
...
Also take extra care when evaluating to avoid spurious overflow/underflow.
Changed check_series_iterations to know the real-number type so messages are properly formatted.
Updated docs to match and regenerated.
Fixes #5560 .
[SVN r72415]
2011-06-05 16:56:17 +00:00
John Maddock
3b71dc32eb
Update Bessel functions to use series representations when x is small compared to v and also to prevent the generation of NaN's in such cases.
...
Update docs to match.
Fixes #5560 .
[SVN r72221]
2011-05-27 17:24:08 +00:00
John Maddock
ef7f0bb940
Remove unnecessary macros.
...
[SVN r71989]
2011-05-16 17:30:52 +00:00
John Maddock
74d540d59a
Move TR1 C-compatible macros to separate file so they don't get indexed by the docs.
...
[SVN r71988]
2011-05-16 17:28:48 +00:00
John Maddock
1f6642b388
Add initial version of e_float support.
...
[SVN r71674]
2011-05-02 18:21:28 +00:00
John Maddock
a5239fa567
Suppress a whole bunch of new gcc-4.6 warnings.
...
Add code to verify that the radix of the type is 2 wherever that assumption is made.
Add some more instrumentation code.
[SVN r71672]
2011-05-02 15:36:51 +00:00
John Maddock
d27407f320
Tentative fix for FreeBSD failure.
...
[SVN r71534]
2011-04-27 16:00:00 +00:00
John Maddock
1982cb4a4c
Fix remaining Intel regressions.
...
Add prototypes to fwd header.
Add new functions to the concept checks.
[SVN r71432]
2011-04-23 08:17:10 +00:00
John Maddock
7f1a45870a
Change fp_traits to handle sign manipulation separately from fp-classification.
...
Fixes some Linux/GCC regressions but not yet all.
[SVN r71405]
2011-04-21 18:11:37 +00:00
Paul A. Bristow
15c9b19ac1
Added more comments
...
[SVN r71404]
2011-04-21 17:53:58 +00:00
Paul A. Bristow
5cb894721b
Added native_tag specialisation to try to cure failures on gcc.
...
[SVN r71389]
2011-04-20 08:49:02 +00:00
Paul A. Bristow
caf05d27cd
Added boost::math::detail::changesign_impl(x, method()); to try to get to work with gcc.
...
[SVN r71381]
2011-04-19 18:04:58 +00:00
Paul A. Bristow
e3e838da6c
nonfinite facets
...
[SVN r71371]
2011-04-18 16:19:48 +00:00
Paul A. Bristow
1da961d8e7
Changesign addded.
...
[SVN r71370]
2011-04-18 16:19:26 +00:00
John Maddock
c2faf71f7d
Fix value returned for atanh(1).
...
Fixes #5385 .
[SVN r70692]
2011-03-29 11:17:58 +00:00
John Maddock
bac00ef969
Cast arguments to quaternion/octonion constructors so they still work when there's no implicit conversion available.
...
Fixes #5369 .
[SVN r70569]
2011-03-26 12:04:02 +00:00
John Maddock
4b3cdb252d
Don't include fenv.h when BOOST_NO_FENV_H is set.
...
Fixes #5356 .
[SVN r70392]
2011-03-22 18:14:00 +00:00
John Maddock
13bd3e54cc
MSVC warning suppression.
...
[SVN r69509]
2011-03-03 11:09:23 +00:00
John Maddock
5b6c4bfeb6
Change the name of the extern "C" TR1 functions so they no longer clash with (possibly inline) std lib versions.
...
Fixes #4828 .
[SVN r68653]
2011-02-05 10:49:43 +00:00
John Maddock
91471146f1
Fix acosh bug, and update tests and docs accordingly.
...
Fixes #5113 .
[SVN r68421]
2011-01-24 19:04:24 +00:00
John Maddock
9744b02e98
Add more debug/diagnostic info and fix bug that manifests itself on SSE x64 machines only.
...
Fixes #5095
[SVN r68346]
2011-01-21 09:42:51 +00:00
John Maddock
9635919e54
Fix for IMB C++ on Linux.
...
Fixes #5090 .
[SVN r68290]
2011-01-19 15:05:18 +00:00
Steven Watanabe
3524499fc0
Revert [67111] (addition of boost/detail/iomanip.hpp) and all the commits that depend on it. ([68137], [68140], [68141], [68154], and [68165]).
...
[SVN r68168]
2011-01-15 08:11:51 +00:00
Bryce Adelstein-Lelbach
f11d1c3c2b
Replacing the use of <iomanip> with <boost/detail/iomanip.hpp> across Boost.
...
On Linux, GNU's libstdc++, which is the default stdlib for icc and clang,
cannot parse the <iomanip> header in version 4.5+ (which thankfully neither
compiler advises the use of yet), as it's original C++98-friendly
implementation has been replaced with a gnu++0x implementation.
<boost/detail/iomanip.hpp> is a portable implementation of <iomanip>, providing
boost::detail::setfill, boost::detail::setbase, boost::detail::setw,
boost::detail::setprecision, boost::detail::setiosflags and
boost::detail::resetiosflags.
[SVN r68140]
2011-01-14 02:35:58 +00:00
John Maddock
0ad713690d
Fix bug in special-case handling of ibeta_inv.
...
Fix concept test failures with mpfr_class in legendre.hpp and non_central_t.hpp.
Fixes #5015 .
[SVN r67469]
2010-12-27 18:37:15 +00:00
Paul A. Bristow
9d8407f38d
Add comment after assert for integer template type
...
[SVN r67362]
2010-12-20 15:16:19 +00:00
Paul A. Bristow
595c61e976
Add assert (and comment) for integer template type
...
[SVN r67361]
2010-12-20 15:14:31 +00:00
John Maddock
309e2c3ec5
Add support for "mpreal" wrapper for mpfr.
...
Add concept check for mpreal type.
Add previously missing doc file.
Fix type promotion rules to do the right thing when one type is a class type that's implicitly convertible to a real.
[SVN r67282]
2010-12-17 16:04:51 +00:00
John Maddock
0bfae472d5
Fix min/max usage.
...
[SVN r67279]
2010-12-16 18:37:50 +00:00
John Maddock
555f3d6736
Improve performance of non-central T by simplifying the arithmetic where possible.
...
Change error handlers to pass the target type down to "rounding errors".
Change the rounding error handlers to return a well defined value (the maximum representable value in the target type).
Update and complete docs on rounding errors.
Fix typo in test/test_beta_dist.cpp.
Regenerate the docs.
Remove illegal comment from test_constants.cpp.
Fixes #4977 .
[SVN r67231]
2010-12-14 19:22:52 +00:00
Paul A. Bristow
1495ca1ccc
Removed inverse_uniform.hpp
...
[SVN r67215]
2010-12-13 16:38:06 +00:00
Paul A. Bristow
7c13ff9124
Removed inverse_uniform.hpp
...
[SVN r67214]
2010-12-13 16:37:33 +00:00
Paul A. Bristow
90fcebc87b
use raise_overflow error in place of return NaN
...
[SVN r67213]
2010-12-13 16:36:46 +00:00
Paul A. Bristow
6d604ab6a9
use raise_overflow error in place of return NaN
...
[SVN r67212]
2010-12-13 16:35:59 +00:00
John Maddock
870a1e233b
Suppress warnings from external headers.
...
[SVN r67149]
2010-12-10 17:43:38 +00:00
John Maddock
8177da58be
Add non-functional stub versions of the skewness and kurtosis to the non-central beta.
...
Update tests accordingly, and suppress some compiler warnings.
[SVN r66986]
2010-12-03 17:55:00 +00:00
John Maddock
7ff88c69f1
Added concept checks for new distros, and fixed resulting errors.
...
Added mean and variance to non-central beta.
[SVN r66985]
2010-12-03 16:23:55 +00:00
Paul A. Bristow
bb7b3d6540
Enabled mean, variance ... for dotnetexample (TODO return NaN?)
...
[SVN r66957]
2010-12-01 18:48:12 +00:00
Paul A. Bristow
68e1194c63
disable 4512
...
[SVN r66956]
2010-12-01 18:47:46 +00:00
Paul A. Bristow
274028b383
comment
...
[SVN r66892]
2010-11-30 14:37:28 +00:00
Paul A. Bristow
1b63ffe8f0
Corrected missing casts int 0 to RealType
...
[SVN r66891]
2010-11-30 14:36:45 +00:00
Paul A. Bristow
4680ece7af
using boost/math/tools/tuple.hpp instead.
...
[SVN r66822]
2010-11-28 15:03:13 +00:00
Paul A. Bristow
bab0f2ce24
Changed make_tuple from std::tr1:: to boost::math
...
qualified numeric_limits with std.
[SVN r66797]
2010-11-27 16:11:27 +00:00
Paul A. Bristow
aaaad79bca
Changed make_tuple from std::tr1:: to boost::math
...
[SVN r66793]
2010-11-27 16:00:46 +00:00
Paul A. Bristow
93670a3942
removed diagnostics
...
[SVN r66766]
2010-11-26 10:28:58 +00:00
Paul A. Bristow
d0c5796bce
Removed wald (now called inverse_gaussian
...
[SVN r66754]
2010-11-25 16:44:14 +00:00
Paul A. Bristow
c0a3413240
Removed inverse_normal
...
[SVN r66751]
2010-11-25 12:11:19 +00:00
Paul A. Bristow
ef4dbab713
Update for new distributions
...
[SVN r66731]
2010-11-24 16:53:25 +00:00
Paul A. Bristow
4fbea7ba6f
Added new handling check.
...
[SVN r66730]
2010-11-24 16:51:36 +00:00
Paul A. Bristow
523e4d78f9
Corrections
...
[SVN r66729]
2010-11-24 16:50:41 +00:00
Paul A. Bristow
a3d2de43de
Added new distributions.
...
[SVN r66728]
2010-11-24 16:50:06 +00:00
Paul A. Bristow
ec88511ead
Update for new constants
...
[SVN r66727]
2010-11-24 16:48:36 +00:00
Paul A. Bristow
2726a04151
Update for new distributions
...
[SVN r66726]
2010-11-24 16:47:58 +00:00
John Maddock
ded3b78a05
Update distribution concept checks to test ad-hoc member functions as well as the generic ones.
...
Fix typo in docs and regenerate.
[SVN r66689]
2010-11-22 19:00:55 +00:00
John Maddock
aee7090820
Fixes #4879 .
...
[SVN r66685]
2010-11-22 16:31:42 +00:00
Bryce Adelstein-Lelbach
6d780cab92
Added a detail header for fenv. Please use boost/detail/fenv.hpp in Boost code
...
to avoid problems with Clang/glibc.
[SVN r66458]
2010-11-08 17:10:25 +00:00
Bryce Adelstein-Lelbach
c78863943a
Clang hand-holding, mostly for issues caused by Clang defining GCC macros.
...
[SVN r66442]
2010-11-07 20:05:04 +00:00
John Maddock
022bb7b8f1
Tentative fix for WinCE failures.
...
[SVN r66070]
2010-10-18 11:19:06 +00:00
John Maddock
addb71354b
Add more workaround code for numeric underflow/overflow.
...
[SVN r65714]
2010-10-01 15:54:03 +00:00
John Maddock
bbc5edfe1c
Add concept checks for new distributions.
...
Fix Linux gcc failures for new distributions.
[SVN r65694]
2010-09-30 17:16:14 +00:00
Paul A. Bristow
2707de07b1
checked with better tests.
...
[SVN r65658]
2010-09-29 08:57:51 +00:00
Paul A. Bristow
1e0c9feaf1
layout and comments etc
...
[SVN r65657]
2010-09-29 08:56:06 +00:00
John Maddock
9c9e9eecef
Fix integer argument promotion, to simplify code and suppress warnings.
...
[SVN r65631]
2010-09-27 14:36:18 +00:00
Ralf W. Grosse-Kunstleve
49a9039689
boost/math/distributions/inverse_chi_squared.hpp: bug fix (compilation errors with g++ 4)
...
[SVN r65516]
2010-09-21 16:03:23 +00:00
Paul A. Bristow
8d2cfeada9
Add inverse chi square distribution
...
[SVN r65485]
2010-09-20 15:52:41 +00:00
John Maddock
b85756d2cc
Improve error handling and fix Linux errors.
...
[SVN r65444]
2010-09-17 18:13:45 +00:00
Paul A. Bristow
05bd2c0043
Add inverse_chi_squared_distribution to fwd list
...
[SVN r65425]
2010-09-15 15:40:44 +00:00
Paul A. Bristow
5c354f4354
1st draft
...
[SVN r65424]
2010-09-15 15:39:43 +00:00
Paul A. Bristow
c8f818f4b8
added x = 0 special case. Example runs OK. Need to rebuild trunk libs to test.
...
[SVN r65329]
2010-09-07 13:57:12 +00:00
John Maddock
0c633f0b6e
Change the use of tuples, so that we use std::tuple when available.
...
Fix bug in calculation of initial guess in the incomplete gamma inverse.
Fix illegal comment in inverse_gamma.hpp source file.
Update docs to reflect tuple changes.
Regenerate docs.
Add Jamfile for the tools directory and make sure everything still builds cleanly.
[SVN r65320]
2010-09-06 15:13:23 +00:00
Paul A. Bristow
5dffa5f7ad
Add several new distributions
...
[SVN r65122]
2010-08-30 09:02:02 +00:00
John Maddock
434414f58e
Added workaround for Intel compiler, which has sporadic issues with fpclassify on Linux.
...
Fixes #4592 .
[SVN r65015]
2010-08-26 12:29:12 +00:00
John Maddock
8d719c3ff4
Prevent macro expansion of isfinite.
...
[SVN r64983]
2010-08-24 17:13:04 +00:00
Paul A. Bristow
4d2e34c523
new inverse gamma distribution
...
[SVN r64969]
2010-08-23 11:58:39 +00:00
Paul A. Bristow
80911e889a
added inverse-gamma distribution
...
[SVN r64968]
2010-08-23 11:55:51 +00:00
Paul A. Bristow
bbff4a61c6
T result = 0; // Just to avoid warning C4701: potentially uninitialized local variable 'result' used
...
[SVN r64889]
2010-08-18 15:52:13 +00:00
Paul A. Bristow
35655664a7
warning C4244 suppressed by using static_cast<realType>(0)
...
[SVN r64888]
2010-08-18 15:23:37 +00:00
Paul A. Bristow
50dd77b5a8
warning C4244 suppressed by using static_cast<realType>
...
[SVN r64886]
2010-08-18 13:10:19 +00:00
John Maddock
4372c68f55
Fix gcc-3.2.x compiler errors.
...
Fixes #4507 .
[SVN r64789]
2010-08-13 17:26:28 +00:00
John Maddock
b11676fa67
Added test cases for issue #4504 .
...
Tidied up inverse-Student's t evaluation a touch.
Fixes #4504 .
[SVN r64597]
2010-08-04 15:47:30 +00:00
John Maddock
94a309749f
Fix typo in polynomial approximations.
...
Refs #4504 .
[SVN r64577]
2010-08-03 17:31:20 +00:00
John Maddock
999f37a21e
Fix signed/unsigned comparison warnings when char is unsigned.
...
[SVN r63496]
2010-07-01 17:47:51 +00:00
John Maddock
2ed2a883ba
Make the compile time gcd facilities work with greatest integer types, and be mpl compatible.
...
[SVN r63408]
2010-06-28 15:32:19 +00:00
Paul A. Bristow
95d3d4d406
Corrected support minimum to 0 (was 1).
...
[SVN r62380]
2010-06-02 14:49:22 +00:00
John Maddock
ac3a1ef164
Change to use new symbol visibility macros.
...
[SVN r62200]
2010-05-25 14:45:54 +00:00
John Maddock
200b0f7717
Fix cbrt's internal promotion rules.
...
Update tests to match.
[SVN r62087]
2010-05-18 17:24:01 +00:00
John Maddock
7ab7d21eae
Fix failures when used with an expression-template enabled number type such as the gmpxx clases.
...
Add additional concept check for integer code using gmp classes.
Fixes #4139 .
[SVN r61837]
2010-05-07 15:36:09 +00:00
John Maddock
c7e0965ce9
Previous fix doesn't work for later GCC versions, revert.
...
[SVN r61815]
2010-05-06 12:33:40 +00:00
John Maddock
0dd75b6c47
Prevent multiple definitions of BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS.
...
[SVN r61807]
2010-05-06 10:23:56 +00:00
John Maddock
45db115f9d
Disable long double support when the C++ runtime does not support it either.
...
Fixes #3825 .
[SVN r61806]
2010-05-06 10:21:18 +00:00
Douglas Gregor
81c8795897
Eliminate redundant (and incorrect) using declarations at function scope.
...
[SVN r61700]
2010-04-30 07:10:56 +00:00
Douglas Gregor
9257a12d1b
Eliminate a redundant BOOST_MATH_STD_USING; we aren't allowed to redeclare declarations in function scope
...
[SVN r61595]
2010-04-26 22:57:02 +00:00
John Maddock
7a7e393485
Fix boost::math::round to handle halfway cases correctly.
...
Update tests accordingly.
Update boost::math::fmod docs to make sign and rounding direction clear.
[SVN r61252]
2010-04-13 16:50:46 +00:00
John Maddock
cd64856ff5
Improve the performance of the Bessel functions, and update docs.
...
[SVN r59274]
2010-01-27 13:16:14 +00:00
John Maddock
ea35733550
Add tgamma1pm1 speed test.
...
Suppress some more gcc warnings: in particular make sure that our C99 functions have the same throw specification as the functions in math.h.
[SVN r59129]
2010-01-18 17:07:03 +00:00
John Maddock
1a5044497d
Change cbrt implementation to use a better performing algorithm.
...
Fix a few warnings along the way.
[SVN r59095]
2010-01-17 17:28:34 +00:00
John Maddock
488701a7e3
Suppress unused parameter warning.
...
[SVN r57509]
2009-11-09 12:26:02 +00:00
John Maddock
75f47f2cad
remove surplus const-qualifiers.
...
[SVN r57354]
2009-11-04 12:15:05 +00:00
John Maddock
ba698c2297
Improve ibeta error handling, update and regenerate docs. Update tests.
...
Fixes #3533 .
[SVN r57045]
2009-10-21 15:53:28 +00:00
John Maddock
cc52a19fb4
Improve ibeta error handling, and add new tests.
...
[SVN r57040]
2009-10-21 12:27:38 +00:00
John Maddock
ebc86f03d8
Update performance test results.
...
Adjust msvc performance tuning.
[SVN r56818]
2009-10-14 12:04:07 +00:00
John Maddock
21cd5f0d9f
Update workarounds for Sun's latest compiler release.
...
[SVN r56711]
2009-10-11 12:20:21 +00:00
John Maddock
581f74e09b
Fix duplicate definitions when BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS is defined.
...
[SVN r56679]
2009-10-09 16:52:27 +00:00
K. Noel Belcourt
fe4001165c
Add PGI macro to get proper alignment.
...
[SVN r56653]
2009-10-08 17:52:10 +00:00
John Maddock
799b88be52
Change iteration limits to use get_epsilon().
...
[SVN r56650]
2009-10-08 16:03:25 +00:00
John Maddock
2e07572faf
Add a check on iterations when Halley iterating.
...
Correct igamma inverse initial calculations, and adjust digits needed for convergence.
Fix erf calculation limits.
Adjust non-convergence behaviour in Halley iteration.
For issue #3408 .
[SVN r56598]
2009-10-05 17:36:56 +00:00
John Maddock
71940bec79
Another round of performance tweaks for issue #3408 .
...
These should make our igamma implementation comparable in performance to the dcdflib FORTRAN routine - at least as far as MSVC is concerned.
[SVN r56503]
2009-10-01 16:03:42 +00:00
John Maddock
8418e9d68e
A few more minor performance tweaks for issue #3407 .
...
[SVN r56455]
2009-09-28 17:06:39 +00:00
John Maddock
056d083a2f
Changes relating to issue #3408 .
...
Add hooks for the dcdflib to the incomplete gamma tests.
Add hooks for the dcdflib to the igamma performance tests.
Some small performance enhancements.
[SVN r56370]
2009-09-24 11:23:52 +00:00
John Maddock
f99607da5d
Fix lookup ambiguity.
...
Fixes #3207 .
[SVN r54284]
2009-06-23 16:39:50 +00:00
John Maddock
6feccbee3d
Added a couple of static assertions to prevent misuse.
...
[SVN r53338]
2009-05-28 08:52:05 +00:00
Jeremiah Willcock
99b1ee34f7
Fixed most tab and min/max issues from trunk inspection report
...
[SVN r53141]
2009-05-20 19:19:00 +00:00
John Maddock
b36f2d6bb6
Fix for no long double math functions.
...
[SVN r52522]
2009-04-21 08:43:36 +00:00
John Maddock
0b017bc74c
Fixes #2961 .
...
GCC-4.0 workaround.
[SVN r52513]
2009-04-20 15:59:58 +00:00
John Maddock
bedc5b058a
Add more instrumentation code, along with some AMD64/Linux fixes.
...
[SVN r52335]
2009-04-11 15:26:59 +00:00
John Maddock
3d45185864
Sort circuit evaluation when the result will be 0.
...
[SVN r52287]
2009-04-09 09:10:45 +00:00
John Maddock
97049ddaa7
Fix use of C99 macro names.
...
[SVN r51951]
2009-03-24 10:05:46 +00:00
John Maddock
9c124ea11c
Fix bug in cyl_bessel_i that hits when v=0.5 and x is small.
...
Fix return type of signbit to match C99 std.
Update and regenerate docs.
Fixes #2877 .
[SVN r51890]
2009-03-21 18:44:20 +00:00
John Maddock
a935d5e1cd
Updated the sign functions to use Johan Rade's fp-utilities code.
...
Added tests for the sign functions.
Added docs for the sign functions and moved some sections around.
[SVN r51793]
2009-03-16 13:25:22 +00:00
John Maddock
e38209bdc0
Add instrumentation code and some FPU control options.
...
[SVN r51755]
2009-03-13 17:56:28 +00:00
John Maddock
f6a4cbad2e
Misc. small platform specific fixes and expected error rate adjustments.
...
[SVN r51648]
2009-03-08 10:39:29 +00:00
John Maddock
f10e098a4f
Adjust fudge-factors yet again.
...
[SVN r51578]
2009-03-03 18:18:17 +00:00
John Maddock
2246b77395
Change tests to link to external Boost.Test library as this speeds build times by several factors when building with Intel C++.
...
Change fpclassify to use our code rather than std::fpclassify with Intel C++ as it doesn't always compile the latter.
[SVN r51576]
2009-03-03 17:16:56 +00:00
John Maddock
cf84efb70b
Adjust fudge factor upwards to try and fix some of the current regression test failures.
...
Add option to disable use of std::fpclassify.
[SVN r51501]
2009-03-01 12:19:04 +00:00
John Maddock
fef466be54
remove spurious euro sign in comment.
...
[SVN r51474]
2009-02-27 17:06:21 +00:00
John Maddock
323a108149
Merges changes from Sandbox version:
...
MPFR Support.
New distributions: laplace, logistic and hypergeometric.
Added PCH support to the Jamfiles for faster build times.
Added C# usage example.
Updated and regenerated docs.
Also fixes #2799 and updates the tests to catch this failure in future.
[SVN r51455]
2009-02-26 17:34:52 +00:00
Paul A. Bristow
cc7e9904cb
Added reference to Wolfram in comments.
...
[SVN r51137]
2009-02-09 14:51:25 +00:00
John Maddock
5fad227b2a
Fix bug in bessel_jn for n == -1.
...
Add new test case.
Checked that the other Bessel functions do not have the same issue.
Checked that real-valued -1 argument is fixed OK as well as integer argument.
Fixes #2733 .
[SVN r51059]
2009-02-06 17:26:30 +00:00
John Maddock
34049f0624
Fix unused parameter warnings.
...
[SVN r50940]
2009-02-01 10:16:20 +00:00
John Maddock
840bbe720f
Improve performance of non-central distributions and the logistic quantile.
...
Updated performance results.
Fixed a few bugs in performance testing code.
Added short-cut macros for new distributions in math.qbk.
[SVN r50896]
2009-01-30 11:00:12 +00:00
John Maddock
e595c6b837
Fix min/max usage.
...
[SVN r50895]
2009-01-30 10:48:17 +00:00
Paul A. Bristow
0b8d45eb88
New copyright date.
...
[SVN r50738]
2009-01-23 09:46:27 +00:00
John Maddock
0901fbb44b
Fix remaining quantile tests with the hypergeometric.
...
[SVN r50723]
2009-01-22 10:01:54 +00:00
John Maddock
160379d147
Fixes #2668 .
...
[SVN r50698]
2009-01-21 09:39:50 +00:00
John Maddock
20052dcfa0
Fix some compiler issues, and mostly get the quantiles working better (round-to-nearest now works).
...
[SVN r50686]
2009-01-20 16:58:52 +00:00
John Maddock
dc392f0b3f
Add some previously missing tests, and fix up the remaining concept failures for the new distributions.
...
[SVN r50658]
2009-01-17 18:14:03 +00:00
John Maddock
a635a894c7
Add easier support for mpfr and ntl.
...
Add laplace to concept tests.
Fix misc. bugs and warnings, from concept tests.
[SVN r50653]
2009-01-17 15:47:50 +00:00
Paul A. Bristow
273ae81f7a
Added Doxygen doc comments for file and isNaN, Isinf, Isfinite
...
[SVN r50636]
2009-01-16 17:40:43 +00:00
Paul A. Bristow
b2d577bc6f
change of variable name from location to scale (also in docs) but no changed to code (& re-tested)
...
[SVN r50631]
2009-01-16 15:41:17 +00:00
John Maddock
30d61923f6
Fix a few bugs, and more test data and update docs.
...
[SVN r50608]
2009-01-15 12:34:26 +00:00
John Maddock
2c00494ab7
Tweak config, fix signed/unsigned comparison warnings.
...
[SVN r50561]
2009-01-13 13:05:53 +00:00
John Maddock
d5b039fec8
Initial commit
...
[SVN r50511]
2009-01-08 10:21:18 +00:00
John Maddock
7a07d765ba
Reconfigure STLPort.
...
Fixes #2631 .
[SVN r50504]
2009-01-07 18:26:20 +00:00
John Maddock
5a2d1aae79
Split test_policy_2.cpp into multiple smaller tests.
...
Fix use of long long so that code compiles with g++ -pedantic.
Update docs to match.
Fixes #1451 .
[SVN r50403]
2008-12-29 17:55:53 +00:00
John Maddock
df646686e5
Fix expm1 error handling, and add additional tests to verify the correct behaviour.
...
[SVN r50344]
2008-12-21 13:50:52 +00:00
John Maddock
94181567fa
Fix some Sun-5.9 on Linux failures.
...
[SVN r50341]
2008-12-21 10:23:52 +00:00
John Maddock
8d68670436
More tests, plus fixes for issues that showed up.
...
[SVN r50340]
2008-12-21 10:14:19 +00:00
John Maddock
017a3cfe64
Added hypergeometric to more tests and to the "include everything" headers.
...
Suppressed a few warnings.
[SVN r50316]
2008-12-18 13:38:56 +00:00
John Maddock
eb786e1828
Added initial version of hypergeometric distribution.
...
[SVN r50313]
2008-12-18 12:27:41 +00:00
John Maddock
fa263945e2
Added informational comment.
...
[SVN r50278]
2008-12-15 16:03:56 +00:00
John Maddock
5f9cb93d99
Reorganise std::fpclassify usage so that functions are only declared if they're used: otherwise compilers can issue an error regarding std::fpclassify usage, even though the template is never instantiated.
...
[SVN r50274]
2008-12-15 09:31:44 +00:00
John Maddock
a69840ed47
Add a couple more exemptions from using std::fpclassify.
...
[SVN r50245]
2008-12-12 10:32:01 +00:00
John Maddock
b01c45c9c7
Patch for gcc-3.2 compiler errors.
...
[SVN r50223]
2008-12-09 16:34:59 +00:00
John Maddock
af0b3d744e
Disable use of std::fpclassify for more platforms.
...
[SVN r50218]
2008-12-09 10:15:46 +00:00
John Maddock
adb945b074
Fix Intel/Linux compile failures, and reinstate some old workarounds for broken std::fpclassify implementations.
...
[SVN r50161]
2008-12-06 16:06:15 +00:00
John Maddock
bf5388177d
Integrated Johan Rade's floating point utilities code.
...
[SVN r50134]
2008-12-05 16:05:26 +00:00
John Maddock
29aa65cc3f
Add missing \.
...
[SVN r50089]
2008-12-03 18:12:16 +00:00
John Maddock
66e1cfa214
Adjust usage logic of log1pl and expm1l.
...
[SVN r50055]
2008-12-01 13:31:39 +00:00
John Maddock
22c59e55eb
Added extra instrumentation.
...
[SVN r50050]
2008-12-01 10:34:56 +00:00
Thijs van den Berg
7718ec6ba5
First version of the Laplace distribution
...
[SVN r49985]
2008-11-28 13:36:24 +00:00
John Maddock
d13615acf3
Fixed bug in elliptic integral periodic-reduction code.
...
Added some more debugging/tracing aids.
[SVN r49828]
2008-11-18 19:47:50 +00:00
John Maddock
c15b211f2f
Integrated lognormal distro into the concept check tests.
...
[SVN r49486]
2008-10-29 13:42:53 +00:00
John Maddock
74559257f6
Added logistic distribution.
...
[SVN r49485]
2008-10-29 13:10:08 +00:00
John Maddock
c3367bf1bb
Added some specializations of the policy classes to reduce compile times.
...
Updated history.
[SVN r49405]
2008-10-20 16:54:24 +00:00
John Maddock
1169a0b20f
Fixes for Sun C++ on Linux.
...
[SVN r49141]
2008-10-06 12:43:46 +00:00
John Maddock
df7ad868e7
Added mpfr docs, and updated the NTL usage docs.
...
Updated bindings tests to run automatically when the appropriate libraries are present.
[SVN r49110]
2008-10-02 09:37:29 +00:00
John Maddock
42f52d1993
Fix for GLIBC platforms that don't have long double support.
...
[SVN r48964]
2008-09-25 12:21:04 +00:00
John Maddock
6f07ae4be5
Add support for ellint_3 in the difficult previously unsupported region.
...
[SVN r48899]
2008-09-19 16:42:41 +00:00
John Maddock
dda431bf58
Fix missing #include.
...
[SVN r48883]
2008-09-19 09:12:33 +00:00
John Maddock
5cb4de411a
Added mpfr support, and updated NTL::RR support.
...
Added concept checks for those.
Added type casts where required to get mpfr_class support working OK.
[SVN r48737]
2008-09-11 17:58:11 +00:00
John Maddock
9dd7c7ffe3
Fix for EDG-245 compilers on DECCXX and Tru64.
...
[SVN r48681]
2008-09-09 09:32:54 +00:00
John Maddock
de4fb969ad
Fix definition to match fwd declaration.
...
[SVN r48607]
2008-09-05 10:39:14 +00:00
John Maddock
bb3859054f
Apparently no full long double support on NetBSD.
...
[SVN r48566]
2008-09-03 17:42:45 +00:00
John Maddock
7b3bf1cc4c
Fix gcc-4.x errors.
...
[SVN r48510]
2008-09-01 11:08:33 +00:00
John Maddock
7c545120df
Fully qualify function calls to keep Borland happy.
...
[SVN r48421]
2008-08-28 16:06:08 +00:00
John Maddock
fb02817e67
Fix Intel-10.1 test failures, by adjusting the function signatures for the inverse hyper-geometric functions.
...
[SVN r48420]
2008-08-28 15:57:06 +00:00
John Maddock
2459d0f2a6
Merged changes from sandbox, and regenerated the docs.
...
[SVN r48294]
2008-08-22 12:51:40 +00:00
John Maddock
3f6394139c
Merge changes from Trunk.
...
[SVN r48293]
2008-08-22 12:33:21 +00:00
John Maddock
394ed0afef
Fixes for gcc compilation.
...
Added sanity checks to tests.
[SVN r48289]
2008-08-22 08:51:22 +00:00
John Maddock
c9e8b4d192
Updated inverse hypergeometric functions with better tests and more accurate implementation.
...
[SVN r48250]
2008-08-20 11:02:05 +00:00
John Maddock
8cbd8c5f72
Added <cmath> support to the TR1 library.
...
Added Borland and Sun workaround headers to the TR1 lib.
Added a "no tr1" version of cmath to Boost.Config and made use of it throughout Boost.Math.
[SVN r48054]
2008-08-10 09:12:02 +00:00
John Maddock
2db92b7a2a
Changed some variable names to suppress -Wshadow warnings, also fixes #2167 .
...
[SVN r47995]
2008-08-06 08:47:31 +00:00
John Maddock
7d56e18fed
Prevent macro expansion of TR1 functions.
...
[SVN r47931]
2008-08-01 14:53:00 +00:00
Daryle Walker
952a07b6f8
Tweaked files to pass inspection report; one file had some min/max violations; but all had to have 'boostinspect:nolicense' set because a copyrighter, Paul Moore, has disappeared, so his files can never be changed to the main Boost license
...
[SVN r47847]
2008-07-27 23:43:04 +00:00
John Maddock
f451e1d7e4
Add dependency tracking info.
...
[SVN r47745]
2008-07-24 09:55:07 +00:00
John Maddock
1f8b7ae201
Fix VC 7.1 failures.
...
Added minimal docs on the numeric constants.
Regenerated HTML pages.
[SVN r47541]
2008-07-18 10:25:16 +00:00
John Maddock
2501ff283e
Fix for std libs that don't have denorm support in numeric_limits.
...
[SVN r47421]
2008-07-14 16:22:03 +00:00
John Maddock
a8e2c5f910
Fix a few regressions with compiler/platform specific workarounds.
...
[SVN r47420]
2008-07-14 15:26:44 +00:00
John Maddock
980a2cd605
Fixes issue #2033 .
...
[SVN r47318]
2008-07-11 17:57:21 +00:00
John Maddock
d816b0e2ff
Merge changes from the Sandbox to Trunk.
...
Rebuilt docs.
[SVN r47080]
2008-07-04 17:14:37 +00:00
John Maddock
f284acaf50
Merge changes from Trunk.
...
[SVN r47079]
2008-07-04 17:08:58 +00:00
John Maddock
9cf8afd57c
Remove/replace non-ASCII characters.
...
[SVN r46814]
2008-06-28 16:59:32 +00:00
John Maddock
deaa36b8d7
Fix copyright declaration.
...
[SVN r46805]
2008-06-28 11:24:02 +00:00
John Maddock
5d6396ffbe
Added SSE2 optimised Lanczos approximations.
...
Reordered the tgamma function to reduce the number of comparisons needed.
[SVN r46289]
2008-06-10 08:12:17 +00:00
Bruno Lalande
285615995e
Changed undeterminate to indeterminate.
...
[SVN r46206]
2008-06-06 23:57:24 +00:00
Bruno Lalande
73b62fc8b9
Completed policies and error handling test cases.
...
Sanitized floating point test values in pow tests.
[SVN r46205]
2008-06-06 22:33:39 +00:00
Bruno Lalande
7fbf7dd47f
Added undeterminate_result_error, and used it for the pow<0>(0) case.
...
[SVN r46182]
2008-06-05 22:03:27 +00:00
John Maddock
4a4271a594
Added missing #include.
...
Prevented macro substitution of fpclassify.
[SVN r45913]
2008-05-29 16:03:26 +00:00
John Maddock
72ba7bce59
Added rational approximations for log1p.
...
[SVN r45898]
2008-05-29 12:38:04 +00:00
John Maddock
38812b8a96
Added missing #include.
...
[SVN r45824]
2008-05-27 17:38:49 +00:00
Bruno Lalande
7c1a1362c7
Reduced again the number of template instanciations
...
[SVN r45768]
2008-05-26 10:00:02 +00:00
John Maddock
97bdf5e56d
Fixed partial specialization.
...
[SVN r45585]
2008-05-20 16:54:15 +00:00
John Maddock
211d58523c
Rename some of the extern "C" C99 functions so we don't get infinite recursion.
...
Disabled long double testing when not available.
[SVN r45550]
2008-05-19 18:03:09 +00:00
John Maddock
4ce850dd8c
Merged additions/changes from the Sandbox to Trunk.
...
[SVN r45482]
2008-05-18 09:18:22 +00:00
John Maddock
0aa1a09902
Merged changes from Trunk.
...
[SVN r45478]
2008-05-18 08:29:50 +00:00
John Maddock
f47f9de505
Sunpro and HPUX fix.
...
[SVN r45395]
2008-05-15 17:04:31 +00:00
John Maddock
b13d51b1fe
Added float_advance + docs.
...
Changed pow<N> to reduce the number of template instantiations.
[SVN r45357]
2008-05-14 18:35:52 +00:00
John Maddock
721d6a0d62
Fixed float_next and added extra tests to detect the bug.
...
Fixed expected assoc_legendre results.
[SVN r45332]
2008-05-13 16:43:46 +00:00
John Maddock
2d19ade9fd
Made float_distance return a signed value.
...
Added docs for float_next etc.
Updated test_next to cope with signed results.
Added informational output to test_tr1.
[SVN r45220]
2008-05-08 17:14:17 +00:00
John Maddock
2986ee8bf6
Renamed next_* functions to float_*.
...
[SVN r45216]
2008-05-08 16:16:51 +00:00
John Maddock
e909163e72
Fixed import/export code, and added auto-linking support.
...
[SVN r45214]
2008-05-08 16:07:22 +00:00
John Maddock
4873f71729
Added TR1 header, and tidied up ellint_3 declarations.
...
[SVN r45127]
2008-05-05 11:09:28 +00:00
John Maddock
d7e23fd2a4
Added first cut of nextafter family of functions.
...
[SVN r44878]
2008-04-29 12:01:22 +00:00
John Maddock
6012b10c87
Changed long long to boost::long_long_type and unsigned long long to boost::ulong_long_type.
...
A couple of other typo corrections, to get the code compiling with g++ -pedantic.
[SVN r44877]
2008-04-29 10:05:11 +00:00
John Maddock
ffbb796900
Apply VC-7.1 fixes: sometimes ADL fails, and we need a using declaration in order for the correct overload to be found.
...
Add missing #include. to t_distribution_inv.hpp.
Suppress unnecessary instantiations in instantiate_all.cpp.
[SVN r44748]
2008-04-24 09:40:31 +00:00
John Maddock
3ccbd30ab3
Merged patches from Trunk.
...
[SVN r44695]
2008-04-21 13:04:30 +00:00
John Maddock
bde28692c3
Moved real_concept and std_real_concept overloads of the rounding and truncation functions into the same namespace as the classes so that they can be found via ADL.
...
Updated the tests to cope with the change.
Updated library configuration to cope with the change.
Made sure that the rounding and truncation functions are all correctly forward declared.
[SVN r44612]
2008-04-20 10:58:20 +00:00
John Maddock
c3acff62f7
Reinstated real_cast to that STLPort tests can pass.
...
[SVN r44452]
2008-04-16 11:57:29 +00:00
John Maddock
fb220c20dd
Add some explicit casts from the FP_* macros to type int, so that comparisons actually work when building with GCC, this is GCC bug report: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20589 .
...
[SVN r44434]
2008-04-15 17:30:03 +00:00
John Maddock
8b89996bd5
Add non central distro's to fwd.hpp.
...
Added needed #include to bessel_ik.hpp.
[SVN r44350]
2008-04-12 16:27:11 +00:00
John Maddock
cd13eecbfa
Added needed #includes.
...
[SVN r44123]
2008-04-09 11:35:36 +00:00
John Maddock
669bfb3991
Merged changes from sandbox to Trunk:
...
New special functions for truncation and rounding, plus exponential integrals and zeta.
New non central distributions.
Updated equation png's so that they are all consistent.
[SVN r44091]
2008-04-07 15:58:51 +00:00
John Maddock
1b7401b4c0
Merged changes from Trunk.
...
[SVN r44090]
2008-04-07 15:43:09 +00:00
John Maddock
501072165e
Updated minimax docs, and program.
...
Changed erf/erfc approximations to more efficient versions.
[SVN r43908]
2008-03-28 11:27:38 +00:00
John Maddock
d02ae84866
Added new pow function from Bruno Lalande.
...
Fixed a few bugs in the non-central distro's that could cause infinite looping.
Added non central distros to the performance test app.
[SVN r43800]
2008-03-23 10:32:21 +00:00
Paul A. Bristow
2261e271d2
Added more comment and correct spelling mistake.
...
[SVN r43588]
2008-03-13 10:56:48 +00:00
Paul A. Bristow
c91e03129a
Corrected correction in uniform :-( = for ==, again.
...
[SVN r43587]
2008-03-13 10:55:35 +00:00
Paul A. Bristow
5d73fa8ef1
Changed logic of error as suggested by johneddy101@comcast.net similar to uniform
...
[SVN r43551]
2008-03-10 17:53:15 +00:00
Paul A. Bristow
f25f6a6d89
Changed logic of error as suggested by johneddy101@comcast.net
...
[SVN r43545]
2008-03-08 17:47:07 +00:00
John Maddock
c4eb8bfc55
Regenerated graphs: bar graphs now have a fill!
...
Added new tests for non-central distributions.
Added new tests for rounding/truncation functions and fixed the bugs exposed by them.
Deleted no-longer used graph and equation files.
[SVN r43529]
2008-03-06 16:32:02 +00:00
John Maddock
4fb47c61e4
Apply fixes to issue #1658 which fixes some broken URL's.
...
[SVN r43434]
2008-02-29 09:49:42 +00:00
John Maddock
2396fa311c
Fix mode of the weibull distribution.
...
Add distribution new graphs as PNG and SVG, and change quickbook to reference them.
Update dist graph generator.
[SVN r43430]
2008-02-28 19:12:00 +00:00
John Maddock
190c26240b
Added non central distros to fwd.hpp.
...
Tightened up error handing in the NC beta and T.
Added NC T docs and equations.
Updated NC T tests.
[SVN r43401]
2008-02-23 09:52:40 +00:00
John Maddock
b652dc390c
Fix bug that effects the behaviour when the result is negative.
...
[SVN r43400]
2008-02-23 09:46:43 +00:00
John Maddock
5e22dad52e
Added non-central T to distributions.hpp.
...
Updated generic_mode to use additive stepping where appropriate.
Improved NC-Beta PDF calculation and termination conditions.
More or less got non-central T finished off: quantiles now work, PDF and mode almost correct.
Fixed typo in toms748_solve.hpp
Updated NC-T tests to include mode and quantile.
[SVN r43333]
2008-02-20 18:11:43 +00:00
John Maddock
3e6b00970c
Added some fixes to check for iterations >= the limit rather than ==.
...
Added extra common error handler.
Factored out some generic quantile code.
Killed some warnings in NC Beta.
Added initial non central T.
Fixed a few doc typos.
Added initial NC T tests.
[SVN r43324]
2008-02-19 16:52:02 +00:00
Paul A. Bristow
6dd0f0d42c
Corrected range to permit df == 2
...
and Added comment(-ed code) about mode with df < 2.
No reply to question about this on Wikipedia 16 Feb 08.
[SVN r43275]
2008-02-16 10:36:02 +00:00
John Maddock
d77728bffb
Ooops, fix comment.
...
[SVN r43223]
2008-02-11 17:30:28 +00:00
John Maddock
12df5b2419
Updated non central beta cdf to accept both x and 1-x on input: allows greater accuracy when using these routines in the non central F and T distributions.
...
Updated non central F to take advantage of this.
Added some non central distributions to the graph generator.
[SVN r43222]
2008-02-11 17:21:14 +00:00
John Maddock
8e6ce7d00c
Made the non-central chi-squared PDF more robust.
...
Set generic mode calculation to throw if the original guess yields a zero PDF.
Updated tests to match.
[SVN r43098]
2008-02-04 18:57:37 +00:00
John Maddock
698f280920
Added non central F distribution.
...
Tidied up non-central beta and Chi squared distribution by factoring out common generic-mode code.
Updated RR bindings.
[SVN r43075]
2008-02-03 17:17:32 +00:00
John Maddock
38e3301e09
More or less finished off the non central beta.
...
[SVN r43020]
2008-01-30 12:42:26 +00:00
John Maddock
b45ba0d428
Added initial commit of non-central beta distribution: CDF and quantile work OK, but nothing else!
...
[SVN r42999]
2008-01-28 18:29:37 +00:00
John Maddock
04a99ac565
Optimise the sums when we're going to be subtracting the result from 1.
...
[SVN r42998]
2008-01-28 18:28:16 +00:00
John Maddock
928b8d8a63
Added error handling to the rounding functions.
...
Added better error handling to the non-central chi squared, and updated the tests.
[SVN r42920]
2008-01-23 10:41:06 +00:00
John Maddock
bd2518ee9e
Add needed <iostream> include.
...
[SVN r42851]
2008-01-18 16:56:57 +00:00
John Maddock
c73de6a963
Finish off Noncentral Chi Squared docs: except for a graph.
...
Update tests to cope with other platforms.
Disabled a few tests that can never pass.
Added nccs to concept checks.
Added warning fixes and special case handling to implementation.
[SVN r42849]
2008-01-18 16:35:56 +00:00
John Maddock
8081dc49df
Commit of more or less complete non-central chi-square distribution: docs still to come.
...
[SVN r42820]
2008-01-16 19:02:45 +00:00
Andrew Sutton
ccb9b8c656
Added a modification to the extreme value distribution. This allows the specification
...
of a sign to determine the minimum or maximum case. Note that the original extreme value
distribution refers to the maximum case. This class will need some work. Discussion
leaned towards the use of an enumerated parameter rather than a real-typed sign
for the determination of min/max case.
[SVN r42762]
2008-01-14 13:54:49 +00:00
Andrew Sutton
8e24be2ffe
Added stubs for new distributions. These are neither fully tested nor documented and,
...
in some cases, incomplete. However, migrating them into the sandbox will hopefully
help motivate their completion.
[SVN r42760]
2008-01-14 13:36:23 +00:00
John Maddock
fe3db87cc4
Change concepts classes so they can be used when there is no long double support.
...
Added first cut of the non-central chi squared distribution.
Removed almost all occurrences of real_cast: replaced with calls to the truncation/rounding functions instead.
[SVN r42744]
2008-01-14 09:27:44 +00:00
John Maddock
2f7fadc594
Change Poisson PDF to use gamma_p_derivative as it avoids overflows and other nasties.
...
[SVN r42371]
2007-12-30 13:09:12 +00:00
John Maddock
db2ffd21c2
Added trunc, round and fmod family of functions.
...
[SVN r42244]
2007-12-22 19:01:37 +00:00
John Maddock
b27b39532b
Added expint docs.
...
Updated zeta and expint tests with hooks for other libraries.
Added #pragma once to header files.
[SVN r42140]
2007-12-18 18:32:50 +00:00
Paul A. Bristow
c327e0ac0f
Changed support range to avoid a discontinuity at zero.
...
[SVN r42124]
2007-12-17 15:58:23 +00:00
Paul A. Bristow
72e5db15f6
Changed support range to avoid a discontinuity at zero.
...
[SVN r42123]
2007-12-17 15:51:53 +00:00
Paul A. Bristow
99cf02892c
Changed support range to avoid a discontinuity at zero.
...
[SVN r42122]
2007-12-17 15:51:08 +00:00
John Maddock
6ae334402a
Fix error messages so they work with Boost.Format.
...
[SVN r42074]
2007-12-15 17:10:03 +00:00
John Maddock
fc5f875671
Fixes #1454 .
...
Previous fix was incomplete, so added new tests, confirmed problem report, and added fixes.
All the tests now compile cleanly with g++ -pedantic -Wall -Wno-long-long (checked with gcc-4.4.1 and 3.4.4).
[SVN r42012]
2007-12-13 18:45:58 +00:00
John Maddock
128f2adc14
Fixes #1454 .
...
[SVN r41966]
2007-12-11 16:37:22 +00:00
John Maddock
ab9017cf29
Added expint and zeta functions, plus tests.
...
Fixed ntl::RR iostream operators.
Updated minimax program with zeta and expint approximations.
[SVN r41958]
2007-12-10 18:35:56 +00:00
John Maddock
a9fa7b4924
Fix << iostream operator for the NTL bindings.
...
[SVN r41272]
2007-11-21 09:46:36 +00:00
John Maddock
e504edf582
aCC on PA-RISC emits hard errors if a numeric constant underflows: enable existing workaround for that compiler.
...
[SVN r41251]
2007-11-20 11:12:36 +00:00
John Maddock
38fc694025
Oops: added missing template specialisation argument.
...
[SVN r41218]
2007-11-19 10:02:16 +00:00
John Maddock
9a0b70f42b
Added missing template argument to specialisations.
...
[SVN r41199]
2007-11-18 12:23:37 +00:00
John Maddock
605c55e00e
Added workarounds for IBM xlc C++: the compiler can't resolve an overloaded function template to a function pointer unless the template arguments are explicitly provided.
...
Fixed some bugs uncovered by the above workaround: some forward declarations didn't match the actual definition!
Hopefully fixed remaining Sun compiler issues: mostly fixed by above fixes anyway.
[SVN r41142]
2007-11-16 11:30:43 +00:00
John Maddock
5c7b465759
Fix some compiler warnings when building with the Intel and aCC compilers.
...
[SVN r41103]
2007-11-15 09:52:26 +00:00
John Maddock
8c7cd40a78
Added WinCE workaround.
...
[SVN r41088]
2007-11-14 12:41:32 +00:00
John Maddock
2b1fac126f
Merged changes from the Sandbox to Trunk.
...
[SVN r41086]
2007-11-14 12:14:19 +00:00
John Maddock
e7db05cc1a
Merged changes from Trunk.
...
[SVN r41085]
2007-11-14 12:11:23 +00:00
John Maddock
850b746f1c
Ooops, disable long double overloads when there is no long double support (Borland fix).
...
[SVN r41062]
2007-11-13 16:15:27 +00:00
John Maddock
69031ebe9d
Added static assertion to catch use of long double function overloads when BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS is defined.
...
Made sure that if BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS is defined, then no long double overloads are actually instantiated by the tests.
[SVN r41007]
2007-11-11 14:05:50 +00:00
John Maddock
d37562d2ac
Added needed macro suppression to use of isfinite.
...
[SVN r40969]
2007-11-09 16:57:42 +00:00
John Maddock
af3f1e97f5
Fix calls to fpclassify so they don't trigger macro expansion when fpclassify is a macro.
...
[SVN r40879]
2007-11-07 10:09:50 +00:00
John Maddock
fdac2f83cd
Ooops, got the pp-logic wrong and disable long double support for all Unix platforms, instead of just Intel on Linux prior to version 10.
...
[SVN r40878]
2007-11-07 10:07:08 +00:00
John Maddock
8ff3199598
Disabled static assertions for compilers that don't support them.
...
[SVN r40843]
2007-11-06 16:58:46 +00:00
John Maddock
f9f9023daa
Disabled long double support for Intel on Linux prior to version 10.
...
[SVN r40780]
2007-11-05 12:07:47 +00:00
John Maddock
098513f585
Added workaround for Sunpro not compiling the traits classes.
...
Added workaround for platforms where numeric_limits<>::denorm_min() does not return a denorm!
Updated Solaris error rates.
[SVN r40727]
2007-11-03 18:32:54 +00:00
John Maddock
25a040f5c2
Hopefully, take care of the remaining Tru64 failures: adjust >= test to > in some of the tests, and fix one expected error level for the incomplete beta function.
...
[SVN r40719]
2007-11-03 12:36:55 +00:00
John Maddock
4dad82d26a
Added needed #include and using declaration.
...
[SVN r40693]
2007-11-02 18:26:47 +00:00
John Maddock
e875aee99a
Changed concept code so there are no null-references any more (the code breaks on EDG based compilers otherwise).
...
[SVN r40499]
2007-10-27 11:27:19 +00:00
Paul A. Bristow
f731fd35d0
Removed obselete reference to parameter arity. Previous deletion caused lots of errors. Hope this is now OK.
...
[SVN r40402]
2007-10-24 08:56:38 +00:00
Paul A. Bristow
8cf0e97cb7
Removed obselete reference to parameter arity
...
[SVN r40369]
2007-10-23 18:54:39 +00:00
John Maddock
54ce0c0959
Fix for negative guesses.
...
[SVN r40368]
2007-10-23 18:41:17 +00:00
John Maddock
a35f87c6ea
Removed redundant #define.
...
[SVN r40353]
2007-10-23 13:10:32 +00:00
Boris Gubenko
f54e683f16
fix typo in rev. 40321
...
[SVN r40323]
2007-10-23 03:44:33 +00:00
John Maddock
352d2bab85
Use __hppa to detect HP-UX on PA-RISC.
...
[SVN r40269]
2007-10-21 16:02:34 +00:00
John Maddock
722a2d848d
Merged changes in Trunk.
...
[SVN r40161]
2007-10-18 18:05:13 +00:00
John Maddock
82eb0636b9
Workaround for real_concept when there are no long double math functions.
...
Added HP-UX on PA RISC to list of platforms with no long double overloads.
Added macro expansion suppression code to declarations of sign and to it's usages (an AIX fix).
[SVN r40155]
2007-10-18 15:37:01 +00:00
John Maddock
3313f991c0
Fixes for the Sun-5.9 compiler: don't try and encode constants smaller than LDBL_MIN, the compiler chokes on it.
...
Fixes for STLport: long double stream operators are broken (streaming in appears not to work at all, streaming out can segfault if the value is too small).
[SVN r40083]
2007-10-16 15:41:57 +00:00
John Maddock
4ba0027365
Fixed lots of "inspect" issues: bad hyperlinks, tabs in source and missing licenses.
...
Tweaked some error levels again.
[SVN r40079]
2007-10-16 09:32:28 +00:00
John Maddock
b6aa138a79
Fixed most of the remaining Borland issues, and removed dependency to Boost.Lambda.
...
Added tentative fix for the Sunpro compilers.
[SVN r39971]
2007-10-13 16:23:18 +00:00
John Maddock
f51e500eea
Lots of Borland specific patches: quite a few of the special-function tests do now do actually pass.
...
[SVN r39958]
2007-10-12 10:01:36 +00:00
John Maddock
aebe417ed0
Workaround for msvc+stlport.
...
[SVN r39900]
2007-10-10 19:12:46 +00:00
John Maddock
d4c1bb24c7
Added Compaq CXX long long workaround to real_concept.hpp.
...
Added missing forward declaration to ellint_1.hpp.
Adjusted native log1p support for aCC.
Removed bad forward declaration of fpclassify: correct declaration appears later in the file.
Adjusted compile_test/test_compile_result.hpp to not return a NULL reference.
Adjusted permitted error-limits for new platforms.
Split some of the tests into smaller units so we don't get compiler timeouts when building (hopefully!)
[SVN r39893]
2007-10-10 16:05:26 +00:00
John Maddock
8342ec648e
Tentative Sunpro workaround.
...
[SVN r39884]
2007-10-10 09:31:44 +00:00
John Maddock
991567fe80
More Borland workarounds.
...
[SVN r39855]
2007-10-09 18:12:06 +00:00
John Maddock
2983887486
Changed call signatures to keep Borland happy.
...
[SVN r39842]
2007-10-09 14:49:04 +00:00
John Maddock
f154f8bf6f
Disabled long double support on some platforms.
...
[SVN r39837]
2007-10-09 12:26:27 +00:00
John Maddock
8dc2b5673f
Fix problem with GCC on Linux not finding std_real_concept overload for fmod.
...
[SVN r39834]
2007-10-09 11:15:11 +00:00
John Maddock
772c8ae7ca
Initial math-toolkit commit.
...
Includes all code and tests, but no docs yet.
[SVN r39792]
2007-10-08 16:58:15 +00:00
John Maddock
84dc707e2a
Misc fixes for minimal Borland support.
...
[SVN r39779]
2007-10-08 09:46:32 +00:00
John Maddock
3e62ef28f0
Fix Borland infinite looping issue.
...
[SVN r39723]
2007-10-06 11:12:33 +00:00
John Maddock
3a02a8b625
Fix #include case.
...
Add some needed forward declarations.
[SVN r39697]
2007-10-05 09:56:06 +00:00
John Maddock
899f4fbfd1
Added some more descriptive information to error messages.
...
[SVN r39667]
2007-10-03 09:32:35 +00:00
John Maddock
1c5fffdd28
Added workaround for apparently broken std::fmod(long double,long double) on Darwin.
...
Added more tracing macros to try and track down remaining Darwin issues.
[SVN r39650]
2007-10-02 09:30:41 +00:00
John Maddock
01604e79d3
Added some more trace messages.
...
[SVN r39637]
2007-10-01 10:24:11 +00:00
Paul A. Bristow
5d4d94b512
Surpressed unreachable code warning.
...
[SVN r39636]
2007-10-01 10:05:21 +00:00
John Maddock
164bbbf473
Updated debug-tracing macros.
...
Fixed epsilon so it works on MacOS with a 106-bit long double now.
[SVN r39593]
2007-09-29 09:40:16 +00:00
John Maddock
700ea50732
Fixes for VC-7.1.
...
[SVN r39478]
2007-09-22 17:00:29 +00:00
John Maddock
54ff3c6535
Fixed gcc-compiler errors (added missing typename's).
...
Fixed pesky warning in normal.hpp
[SVN r39476]
2007-09-22 11:35:26 +00:00
John Maddock
3d9e81a67e
Added needed using declaration to cauchy.hpp.
...
Added needed #include to config.hpp.
Tightened up compile-tests.
Fixed compile tests so they build with VC++ earlier than VC8sp1.
[SVN r39471]
2007-09-22 09:17:21 +00:00
Paul A. Bristow
41b7db31cf
Warning squashing and estimate to find
...
[SVN r39452]
2007-09-21 17:39:04 +00:00
Paul A. Bristow
8daab07912
Warning squashing and estimate to find
...
[SVN r39451]
2007-09-21 17:38:38 +00:00
John Maddock
542dbbce01
Added needed header include.
...
[SVN r39420]
2007-09-20 17:29:40 +00:00
John Maddock
3e53b99430
MSVC specific fix: gets thing building with /Za.
...
[SVN r39407]
2007-09-20 12:36:32 +00:00
Paul A. Bristow
4bd52bfe7a
Changechanged to use
...
if((boost::math::isinf)(x))
{
if(x < 0) return 0;
return 1;
}
to get rid of 4127 warnings
but still need to supress 4127
[SVN r39402]
2007-09-20 11:37:57 +00:00
Paul A. Bristow
611653a1f8
changed to use
...
if((boost::math::isinf)(x))
{
if(x < 0) return 0;
return 1;
}
to get rid of 4127 warnings
[SVN r39345]
2007-09-17 10:05:26 +00:00
Paul A. Bristow
abc0337ab9
4127 warning squashed
...
[SVN r39343]
2007-09-17 09:17:42 +00:00
Paul A. Bristow
fdef88709d
changed to allow pdf and cdf infinity.
...
[SVN r39310]
2007-09-16 10:09:51 +00:00
Paul A. Bristow
0f852a9292
Try to cure test failures.
...
[SVN r39299]
2007-09-15 15:20:44 +00:00
John Maddock
76acd7ddf3
Fix for Boost.TR1 compatibility: it prevents recursive includes if we do things this way.
...
[SVN r39297]
2007-09-15 11:20:24 +00:00
John Maddock
c820ea58fc
Fix for failing example: added heuristic to up the multiplication factor if we don't bracket the root quickly.
...
[SVN r39296]
2007-09-15 11:19:20 +00:00
John Maddock
6bd903d454
Updated NTL::RR support with a thin wrapper class: RR can now be used unmodified via the supplied wrapper.
...
[SVN r39239]
2007-09-13 16:56:24 +00:00
Paul A. Bristow
e334918936
added error messages, but need complement version with policy still (and name of distribution & policy?)
...
[SVN r39232]
2007-09-13 11:21:17 +00:00
Paul A. Bristow
c394aa0065
cosmetic
...
[SVN r39210]
2007-09-12 09:42:58 +00:00
Paul A. Bristow
95bc17616e
added check location and check_x (random deviate)
...
and changed check scale to not permit 0
[SVN r39209]
2007-09-12 09:40:10 +00:00
Paul A. Bristow
bebff763db
1st version, but problem with sign in complement
...
[SVN r39184]
2007-09-10 17:50:32 +00:00
John Maddock
486f5a1d3e
Changed: "using namespace std;" to a more specific using declaration.
...
[SVN r39110]
2007-09-03 11:51:07 +00:00
John Maddock
df3533c2d7
Added explanatory notes.
...
[SVN r39077]
2007-08-30 17:21:49 +00:00
John Maddock
d0aa223204
Added some type traits so we can do concept checking where required.
...
Updated find_location to use the traits.
Added tests for traits.hpp.
Updated Jamfile.v2 with new tests.
[SVN r39076]
2007-08-30 17:08:46 +00:00
Paul A. Bristow
7a6b00e663
tests now pass.
...
[SVN r39071]
2007-08-30 14:05:43 +00:00
John Maddock
9cdc280e69
Instrument erf better.
...
[SVN r39068]
2007-08-30 10:20:34 +00:00
John Maddock
762e728d95
Added some instrumentation to help track down some Mac OS failures.
...
[SVN r39066]
2007-08-30 10:13:13 +00:00
Paul A. Bristow
b523f0e3b7
updated copyright date
...
[SVN r39050]
2007-08-29 14:09:34 +00:00
John Maddock
51c6df2843
Disabled broken includes, will re-enable later when those headers are complete.
...
[SVN r39049]
2007-08-29 09:02:53 +00:00
John Maddock
7bbaeabe6b
Fix for Darwin: not all versions have 106-bit long doubles.
...
[SVN r39048]
2007-08-29 09:00:28 +00:00
John Maddock
95559eb26a
Updated isnan so that it works even when the system does a "#define isnan isnan".
...
Updated Jamfiles to reflect new file names, and suppress some more warnings.
[SVN r39031]
2007-08-28 12:34:14 +00:00
John Maddock
0a62121792
Made max-iterations permitted before we give up a policy rather than a macro or - worse - an ad-hoc value.
...
At the same time cleared up a lot of gcc-specific signed/unsigned comparison warnings.
[SVN r38970]
2007-08-26 17:39:53 +00:00
Paul A. Bristow
a7f80bca1d
1st cut - but complement does NOT work.
...
[SVN r38967]
2007-08-26 16:38:39 +00:00
Paul A. Bristow
f8578189de
added copyright notice & comment & includes find_scale & location
...
[SVN r38933]
2007-08-25 12:10:03 +00:00
Paul A. Bristow
871921e322
added copyright notice & comment
...
[SVN r38932]
2007-08-25 12:09:22 +00:00
Paul A. Bristow
9ef29b5580
Copyright & cosmetic
...
[SVN r38931]
2007-08-25 12:02:41 +00:00
Paul A. Bristow
69e15fb6dc
Removed warning suppression push'n'pop
...
[SVN r38930]
2007-08-25 11:59:56 +00:00
Paul A. Bristow
a76dd8ee89
Copyright & cosmetic
...
[SVN r38929]
2007-08-25 11:57:22 +00:00
Paul A. Bristow
c915c8b18c
added synonyms location & scale for mean & sd
...
[SVN r38925]
2007-08-25 09:02:13 +00:00
John Maddock
bb1931edec
Changed "policy" directory to "policies" to match the namespace name.
...
[SVN r38780]
2007-08-20 12:43:32 +00:00
John Maddock
9cf861c275
Hopefully fixed Intel-regression in release mode: if the data points are very close to linear the cubic interpolation may fail and generate a NaN in highly optimised code.
...
[SVN r38778]
2007-08-20 09:31:28 +00:00
John Maddock
934c402c14
Fixed some GCC-4.2 warnings in unchecked_factorial.hpp.
...
Fixed some Intel-10 compile errors in error_handling.hpp.
Updated performance/main.cpp to print configuration info.
[SVN r38762]
2007-08-19 16:37:56 +00:00
Paul A. Bristow
15d515f8b8
layout & comments only.
...
[SVN r38719]
2007-08-16 14:18:05 +00:00
Paul A. Bristow
8bdb25f7c7
More comments changed - and commented-out an unreachable code warning suppression - believed not now needed.
...
[SVN r38718]
2007-08-16 14:11:07 +00:00
John Maddock
e6a8118e0c
Fixed a few more regressions, and quashed a few warnings.
...
[SVN r38712]
2007-08-16 12:22:22 +00:00
John Maddock
6d5fb5a5d6
Updated include tests, to instantiate the respective code. Fixed any errors that cropped up and suppressed rather a lot of warnings.
...
Updated docs as well.
[SVN r38692]
2007-08-15 18:31:18 +00:00
John Maddock
56852c989f
Fix gcc-mw compilation.
...
Added performance tuning options to performance app.
[SVN r38660]
2007-08-14 16:29:39 +00:00
John Maddock
06f22e5d79
Reinstated tools::digits<>(): it has it's uses as a default backup used by policy::digits<>(), and makes the conceptual requirement a lot easier.
...
[SVN r38649]
2007-08-14 10:38:54 +00:00
Paul A. Bristow
09ade40af2
Correction to comment, now has a typedef for binomial_distribution. No change to code.
...
[SVN r38610]
2007-08-12 14:58:34 +00:00
John Maddock
c3ffe27f16
Changed the name of some of the discrete quantile policies, and more or less finished the policy tutorial.
...
[SVN r38609]
2007-08-12 09:24:08 +00:00
John Maddock
e2e94afe64
Minor fix to previous policy update.
...
Lots of warning suppression.
Updated docs, and added the start of a policy tutorial.
[SVN r38415]
2007-08-03 13:14:29 +00:00
Paul A. Bristow
cb82bea11e
Paul's Big policy revison
...
[SVN r38413]
2007-08-03 10:13:47 +00:00
John Maddock
2c4e1860f0
Fixed gamma-function regressions.
...
Tidied up function calls in t_distribution_inv.hpp.
Tidied up casts in erf.hpp
[SVN r38396]
2007-08-02 12:06:13 +00:00
John Maddock
fa15867c49
Quashed a few warnings.
...
[SVN r7592]
2007-07-30 12:56:13 +00:00
Paul A. Bristow
1e4265c829
warn 4100 unref formal parameter supressed by making name a comment
...
[SVN r7584]
2007-07-30 11:10:16 +00:00
Paul A. Bristow
e19d19ec66
Suppressed wqarning loss of accuracy conversion to T valuetype by explicit T()
...
result = T(z * 1.125 + z * 0.003379167095512573896158903121545171688L);
[SVN r7583]
2007-07-30 09:31:20 +00:00
Douglas Gregor
d39e962ee0
Fix eol-style and mime-types
...
[SVN r7564]
2007-07-27 00:28:00 +00:00
Paul A. Bristow
f1f6a22a6a
warn 4100 unref formal parameter supressed by making name a comment
...
[SVN r7551]
2007-07-26 16:14:11 +00:00
Paul A. Bristow
e543368b8d
suppressed 4100 unref formal parameter
...
after over-enthusiastic changing name(s) to comment.
[SVN r7550]
2007-07-26 16:12:32 +00:00
John Maddock
e602f59025
Added typedef to binomial: there is no longer any name clash with the "binomial_coefficient" function.
...
Updated distribution docs to bring them into synch with the policy based code. Still a few "TODO" sections at present.
[SVN r7545]
2007-07-26 12:50:29 +00:00
Paul A. Bristow
2a64206d94
added copyright and a few comments
...
[SVN r7544]
2007-07-26 11:31:17 +00:00