Commit Graph

2240 Commits

Author SHA1 Message Date
Paul A. Bristow
95d7be4127 Added more constants (see also test_constants)
[SVN r3594]
2007-01-03 17:36:40 +00:00
Paul A. Bristow
a61d8016a4 Correctee kurtosis and made k neither 0 nor 1 an error.
[SVN r3593]
2007-01-03 15:30:47 +00:00
John Maddock
d3bc78cdac Fix linker errors from concept test.
Update credits.


[SVN r3592]
2007-01-02 11:15:16 +00:00
John Maddock
47d6f40306 Update hypot and docs.
[SVN r3590]
2007-01-01 16:30:52 +00:00
John Maddock
b1f54f9fe2 Updated concept checks, fixed resulting errors.
[SVN r3589]
2007-01-01 13:58:49 +00:00
Paul A. Bristow
27786145ea added comments(?)
[SVN r3579]
2006-12-30 10:59:59 +00:00
Paul A. Bristow
5867c943c1 1st commit, tests OK
[SVN r3578]
2006-12-30 10:58:19 +00:00
John Maddock
22dce1381e Integrated existing Boost.Math special functions, updated them to meet our conceptual requirements, and use our error handlers.
Lots of warning suppression changes.
Added new tests to verify header includes (plus fixes where these new tests failed!).
Documentation updates.


[SVN r3575]
2006-12-29 18:27:29 +00:00
John Maddock
bb1fbff202 Misc updates and fixes to the code, including a re-ordering of parameters to ensure TR1 compatibility.
Updated test data.
Ellint docs added.


[SVN r3573]
2006-12-28 11:04:39 +00:00
John Maddock
1b86b19af6 Changed gamma_P/gamma_Q to gamma_p/gamma_q.
[SVN r3570]
2006-12-23 17:28:30 +00:00
John Maddock
9cb3ddd158 Added concept checks for new functions.
Fixed compiler errors.


[SVN r3560]
2006-12-23 10:38:06 +00:00
John Maddock
eec6aaf0a0 Fixed distributions so new accessors actually compile!
Added elliptic integrals plus tests (no docs yet).
Added some refs to Remez docs. Added comment about Erlang=gamma distribution.


[SVN r3559]
2006-12-23 10:30:16 +00:00
Paul A. Bristow
3cd72e6865 Corrected using std::pair mistake.
[SVN r3557]
2006-12-22 13:04:30 +00:00
John Maddock
de9322f427 Added needed using declaration
[SVN r3555]
2006-12-22 10:06:37 +00:00
Paul A. Bristow
57963398de Added range and support to distributions.
[SVN r3551]
2006-12-21 17:39:22 +00:00
Paul A. Bristow
4302268541 Commented out the undefined median to allow derived accessor to rpovide quantile(half).
[SVN r3549]
2006-12-21 13:11:22 +00:00
Paul A. Bristow
8dcd29185e Layout & comments.
[SVN r3547]
2006-12-20 18:59:08 +00:00
Paul A. Bristow
ca818226af ? changed
[SVN r3546]
2006-12-20 18:58:04 +00:00
Paul A. Bristow
222836bded added ln2 etc
[SVN r3545]
2006-12-20 18:54:26 +00:00
Paul A. Bristow
570d5bdf5f added median as quantile(half)
[SVN r3539]
2006-12-20 15:31:13 +00:00
Paul A. Bristow
7b6fe3921a added median to all distributions.
[SVN r3538]
2006-12-20 15:29:43 +00:00
John Maddock
10ec229b15 Added missing inline specifiers.
[SVN r3533]
2006-12-18 11:04:37 +00:00
Paul A. Bristow
3362331ddc Corrections to kurtosis.
[SVN r3526]
2006-12-13 19:13:11 +00:00
Paul A. Bristow
a7f162346d Corrections to kurtosis.
[SVN r3525]
2006-12-13 19:03:22 +00:00
John Maddock
d7653488e8 Added needed parenthesis.
[SVN r3524]
2006-12-13 17:48:40 +00:00
John Maddock
c6f65d5ad3 Big initial commit of the Polynomial and associated functions from TR1.
[SVN r3522]
2006-12-12 17:25:29 +00:00
Paul A. Bristow
7d4795a44d Layout improvements
[SVN r3520]
2006-12-12 10:28:57 +00:00
Paul A. Bristow
a0baf23d99 infinite x removed.
[SVN r3518]
2006-12-12 10:05:12 +00:00
Paul A. Bristow
c47170b91b infinity removed.
[SVN r3516]
2006-12-12 09:46:24 +00:00
Paul A. Bristow
b274b9b464 changed to disallow lower == upper and more tests. infinite a, b, and x still allowed.
[SVN r3514]
2006-12-11 14:35:04 +00:00
Paul A. Bristow
cf6f16d4be 1st cut but questions on infinity?
[SVN r3510]
2006-12-10 18:44:29 +00:00
Paul A. Bristow
9e9da20092 Changed to more accurate kurtosis realType(-6)/5 but still problem with infinity.
[SVN r3504]
2006-12-06 18:06:26 +00:00
Paul A. Bristow
8f8065eb43 warning 4130) // '==' : logical operation on address of string constant. suppressed.
[SVN r3503]
2006-12-06 14:13:19 +00:00
Paul A. Bristow
bc9d1cfec0 Changed to more accurate kurtosis realType(-6)/5 but still problem with infinity.
[SVN r3501]
2006-12-06 09:47:27 +00:00
Paul A. Bristow
f878c291d9 1st cut
[SVN r3495]
2006-12-04 17:54:35 +00:00
John Maddock
306748dcee Small fixes to beta and beta distribution.
Brought docs into line.


[SVN r3487]
2006-12-02 19:21:13 +00:00
John Maddock
4358aba0ee Finished off binomial and neg binomial docs (hopefully).
Renamed param estimators for (negative) binomial sample sizes.
Tweaked root finding algorithms.
Tweaked ibeta inverse.


[SVN r3483]
2006-11-30 18:26:30 +00:00
John Maddock
ccfb864daf Added Jeffreys prior method to the binomial confidence limits.
Fixed a few typos in the neg binomial.


[SVN r3482]
2006-11-30 10:47:26 +00:00
John Maddock
1002d7d090 Minor coments/changes to code.
Proof reading changes to docs, mostly rewritten neg binomial worked example.
Removed dead test.


[SVN r3473]
2006-11-28 14:12:26 +00:00
John Maddock
475d4a0280 Misc small fixes and warning suppressions.
[SVN r3472]
2006-11-28 10:54:09 +00:00
Paul A. Bristow
69ecd8d2a0 Boundary values for quantile corrected and tests added but still don't deal with infinity well. TODO still.
[SVN r3469]
2006-11-27 19:02:37 +00:00
Paul A. Bristow
2fdd390169 Promotion no longer relevant so removed..
[SVN r3468]
2006-11-27 15:40:28 +00:00
John Maddock
ed1b8ae751 Finally got the parameter estimators right, and checked against "known goods".
Misc small fixes to the docs and example programs.


[SVN r3462]
2006-11-26 09:03:49 +00:00
John Maddock
7fc815029e Fixed up neg binomial estimators.
Enabled neg binomial tests and adjusted arguments.
Added extra comment to binomial.


[SVN r3460]
2006-11-24 19:14:32 +00:00
John Maddock
d15bf712e5 Fixed binomial estimators and added stronger tests.
Typos in concepts.
Enabled native log1pl on more platforms.
Fixed binomial example.
Added image.


[SVN r3459]
2006-11-24 18:54:52 +00:00
Paul A. Bristow
867dd1d8e6 added code for special case prob < cdf(0) for quantile and complement.
[SVN r3458]
2006-11-24 17:53:10 +00:00
Paul A. Bristow
4a6cd24f9c suppressed error 4702 unreachable code.
[SVN r3451]
2006-11-24 12:23:32 +00:00
Paul A. Bristow
48b5f13838 if (p <= pow(1 - dist.success_fraction(), dist.trials()))
{ // p <= pdf(dist, 0) == cdf(dist, 0)
   return 0; // So the only reasonable result is zero.
} // And root finder would fail otherwise.
Added, and similarly for complement


[SVN r3445]
2006-11-23 17:46:15 +00:00
John Maddock
78244650dc More fixes to precision.hpp
More or less finished concept docs.
Lots of proof-reading and editorial fixes.


[SVN r3440]
2006-11-22 18:48:28 +00:00
Paul A. Bristow
24af492a2d Correction to estimate parameters.
[SVN r3437]
2006-11-22 18:28:23 +00:00
Paul A. Bristow
1192252ba9 Correced typos and added <16834> size for 80 and 128 bit
[SVN r3436]
2006-11-22 16:48:52 +00:00
John Maddock
12984831f0 More concept docs, updated code to match.
[SVN r3423]
2006-11-21 13:19:08 +00:00
John Maddock
b89f35783e More editorial and proof reading fixes.
Added initial draft of Remez background information.


[SVN r3414]
2006-11-19 18:29:06 +00:00
Paul A. Bristow
a6b95e985f Some corrections but still not right.
[SVN r3409]
2006-11-16 12:46:45 +00:00
Paul A. Bristow
7cd4885c79 Nano optimisation of skewness.
[SVN r3398]
2006-11-15 12:43:32 +00:00
Paul A. Bristow
3242af54a7 Minor revisions
[SVN r3389]
2006-11-14 15:40:12 +00:00
Paul A. Bristow
8452c720ba conditional expression is constant warning 4127 suppressed. (produced 4 pages of messages!)
[SVN r3384]
2006-11-14 11:48:19 +00:00
Daryle Walker
37e8422e8a Made the GCD specializations for '(unsigned) long long' and '(unsigned) __int64' mutually exclusive, following the lead of <boost/cstdint.hpp>.
[SVN r35999]
2006-11-10 23:15:49 +00:00
Paul A. Bristow
f84fef66c8 More tests including test_spot and handful of spot values.
[SVN r3362]
2006-11-09 17:33:17 +00:00
John Maddock
3ea5308b45 Fixed problem with chi-squared sample size estimator.
Updated test program accordingly.
Added chi-square tutorial code.


[SVN r3360]
2006-11-08 17:14:39 +00:00
Paul A. Bristow
32be9aa3f3 corrected quantile to use ibeta_inv. test_spot still todo. & parameter estimate??
[SVN r3358]
2006-11-08 15:27:01 +00:00
Paul A. Bristow
a4c6015e0b 1st cut with a few simple tests for double only.
[SVN r3354]
2006-11-07 12:21:22 +00:00
Paul A. Bristow
24d36b78f6 Spelling correction, and comments copied to concepts.qbk.
[SVN r3352]
2006-11-07 09:35:58 +00:00
Daryle Walker
b7001da56b Changed GCD for built-in integer types to use the binary-GCD algorithm
[SVN r35850]
2006-11-05 07:10:42 +00:00
John Maddock
9e41ae39b4 Minor fixes for gcc in poisson.hpp
Tidied up fraction.hpp.
Updated linux acceptable error rates.


[SVN r3346]
2006-11-04 18:28:24 +00:00
Paul A. Bristow
d9d5f2b21e tests revised to try to cover failures in 80 and 128 bit FP cases. Added throw checks
[SVN r3345]
2006-11-04 10:55:12 +00:00
John Maddock
feacc055d3 Added gamma distribution and tests.
Fixed a lot of gcc-linux issues: mostly missing "using namespace std" declarations.
Added new concept check to test for these kinds of failures at compile time.


[SVN r3344]
2006-11-03 18:42:23 +00:00
Paul A. Bristow
041d476768 Removed median. Allowed hazard & chf to be provided by derived accessors, and removed any mention of std::numeric_limits<T>::quiet_NaN()
[SVN r3343]
2006-11-03 15:04:38 +00:00
John Maddock
8441e358fb Rewritten tgamma1pm1 in terms of lgamma rational approximations: now more efficient and more accurate!
Minor patch to exponential distribution tests.
Removed dead code from Remez app.


[SVN r3331]
2006-10-31 10:50:11 +00:00
John Maddock
7d003a280f Fix typo and regressions.
[SVN r3330]
2006-10-31 10:48:26 +00:00
John Maddock
2132f92495 Changed tgamma to use factorial lookup where applicable.
Updated docs accordingly and added new docs for the new factorial and binomial functions.


[SVN r3327]
2006-10-28 16:30:39 +00:00
John Maddock
bcbb6f3ca9 Added double_factorial plus rising and falling factorials and binomial coefficients.
Added new tests for the above.
Refactored factorials header.
Optimised tgamma_delta_ratio for integer arguments.


[SVN r3326]
2006-10-28 13:00:10 +00:00
Paul A. Bristow
da6a644de8 Minor comments edits, for more tests OK with builint float double but fail neg binomial for real concept.
[SVN r3324]
2006-10-26 13:12:20 +00:00
John Maddock
82548699a5 Improved and generally tidied up sqrt1pm1 and powm1.
Renamed sqrtp1m1 as sqrt1pm1 to match log1p etc.
Added docs for misc power functions, plus weibull distribution.
Updated tests to match the above changes.


[SVN r3321]
2006-10-26 11:51:59 +00:00
John Maddock
527bf0d227 Updated erf implementation selection logic.
Provided rational expansions for expm1.
Provided faster form for log1p.
Updated remez minimax code.


[SVN r3319]
2006-10-25 18:10:13 +00:00
John Maddock
9b16307ae7 Fixed a bug in incomplete gamma, and refactored and refined internal selection logic.
Added tests for incomplete gamma for int and half int arguments.


[SVN r3312]
2006-10-25 10:19:34 +00:00
John Maddock
24066f892f Updated to call overflow_error when the result is infinite.
[SVN r3311]
2006-10-25 09:38:24 +00:00
John Maddock
2f964f6ef6 Added finite sum to incomplete beta, plus tests and docs.
Linked in lognormal docs.


[SVN r3310]
2006-10-25 09:03:04 +00:00
Paul A. Bristow
76f2122bad Comments.
[SVN r3309]
2006-10-24 18:05:48 +00:00
Paul A. Bristow
84bdaaa6ee Comments and checks that no return of infinity that should call overflow_error.
[SVN r3308]
2006-10-24 17:58:30 +00:00
Paul A. Bristow
25570182cb Tests now pass, but more tests to do still.
[SVN r3307]
2006-10-24 17:47:40 +00:00
Paul A. Bristow
504e9da847 Layout & comments only.
[SVN r3303]
2006-10-24 09:36:36 +00:00
John Maddock
7a0ac09ba8 Misc fixes and better error handling and special case treatment.
[SVN r3300]
2006-10-23 12:55:19 +00:00
Paul A. Bristow
0a4dfe1bc5 complement and derived accessors still TODO
[SVN r3299]
2006-10-23 12:01:03 +00:00
Paul A. Bristow
0af1942639 Added complement.hpp and expm1 to get it compile, but fails tests as yet.
[SVN r3297]
2006-10-23 11:39:43 +00:00
Paul A. Bristow
d29c25757c Added some checks for scale and prob. But fails tests.
[SVN r3292]
2006-10-23 10:09:57 +00:00
Paul A. Bristow
c7c1e86552 Several "return static_cast<V>( ... )" added to avoid warning C4244 conversion from 'const double' to 'float'.
Not all tested by test_chi_squared usage :-(  so a mistake might cause compile failures elsewhere?


[SVN r3283]
2006-10-22 16:05:07 +00:00
Paul A. Bristow
ecd6a66fee Added default RealType double (except binomial - where commented out).
(Changes to test in binomial reflect this, others in progress).


[SVN r3278]
2006-10-21 18:34:13 +00:00
Paul A. Bristow
860e361ef7 default Real type double
[SVN r3277]
2006-10-21 18:07:46 +00:00
John Maddock
b6529add8a Added preliminary lognormal and weibull implementations.
Updated common error handling.
Added more test values.


[SVN r3265]
2006-10-18 15:18:15 +00:00
Paul A. Bristow
c4de333200 JM's best so far optimisation.
[SVN r3263]
2006-10-17 09:08:47 +00:00
Paul A. Bristow
6bdc0ec840 Notes & comments only.
[SVN r3261]
2006-10-17 09:06:18 +00:00
John Maddock
09f5ff738f Brought distributions into the same conceptual line and updated tests accordingly.
[SVN r3256]
2006-10-15 17:57:02 +00:00
Paul A. Bristow
a9cfe8beec corrections and improvements (hopefully) to pdf.
Quantile and complement handle mean = 0 case ith domain error.


[SVN r3254]
2006-10-15 15:35:11 +00:00
John Maddock
1555938251 Added scale and location parameters to Cauchy.
[SVN r3253]
2006-10-14 18:03:03 +00:00
John Maddock
5f5d873826 Added concept checks and concept archetypes.
Uprated tests and distributions to match concept requirements.


[SVN r3251]
2006-10-13 17:37:27 +00:00
John Maddock
4edc3d19a1 Added cauchy, exponential, and extreme value distributions.
Updated style sheet.


[SVN r3250]
2006-10-12 17:28:09 +00:00
Paul A. Bristow
0010c8c1c6 misc trivia, spelling refs, punctation.
[SVN r3248]
2006-10-10 15:34:15 +00:00
Paul A. Bristow
5eb7b02d56 1st version of Poisson as distribution. parameter estimation missing?
[SVN r3246]
2006-10-10 15:25:18 +00:00
John Maddock
d988a98c59 Added new asymptotic expansion for incomplete gamma functions P(a,x) and Q(a,x), used for large a, and a ~ x.
[SVN r3239]
2006-10-06 14:52:53 +00:00
John Maddock
5b95219e09 Fixed digamma 128-bit error rates with a more accurate value for the root.
Updated png's: hopefully they'll all render OK now.
Tweeked docs to reflect recent advances.


[SVN r3237]
2006-10-04 09:57:05 +00:00
John Maddock
dc9165592e Updated digamma docs and code.
Added needed include to test_data.hpp.
Changed Doc Jamfile to generate TOC with 0.2 version FOP.


[SVN r3232]
2006-10-02 16:58:49 +00:00
John Maddock
5997e3249c Added digamma.
Added needed #include to evaluation_type.
Updated minimax and lanczos generators to take account of digamma.


[SVN r3231]
2006-10-01 09:45:44 +00:00
Paul A. Bristow
0ef909cbb5 Comments and added real_cast s to int unsigned int and long.
[SVN r3227]
2006-09-30 18:02:01 +00:00
Paul A. Bristow
0672bcb1a1 Comments & cosmetic.
[SVN r3226]
2006-09-29 16:22:28 +00:00
Paul A. Bristow
7b9e7a922d warning suppression for MSVC using push 'n' pop.
[SVN r3225]
2006-09-29 14:39:34 +00:00
Paul A. Bristow
19d0f37013 comment on non-integer k and discrete distributions.
[SVN r3224]
2006-09-29 14:13:28 +00:00
Paul A. Bristow
dbacc2276e trivia.
[SVN r3223]
2006-09-29 14:12:10 +00:00
John Maddock
0275810ec6 Updated fpclassify code to optimise isnan.
Removed reference to interval lib.


[SVN r3220]
2006-09-27 11:41:06 +00:00
John Maddock
11c1946e1e Fix minor bug in test_data.hpp.
Updated docs with minima and minimax docs.
Also reorganised to separate out the more experimental components.


[SVN r3218]
2006-09-26 18:24:13 +00:00
John Maddock
1335a727f6 Bug fix.
[SVN r3216]
2006-09-24 09:23:33 +00:00
John Maddock
b9e4fd1418 Updated old code to use compile-time polynomial size detection.
Fixed template deductiojn bug in evaluate_rational.
Updated lanczos generation to match.


[SVN r3215]
2006-09-24 09:23:09 +00:00
John Maddock
4679d4e421 Updated rational function evaluation with compile time detection of array size.
Added tests.
Updated Jamfile.


[SVN r3214]
2006-09-22 18:03:57 +00:00
Paul A. Bristow
153e797b74 Commented out variable name to avoid C4100 unref parameter, and comment on its use to select Lanczos.
[SVN r3213]
2006-09-22 11:33:23 +00:00
John Maddock
5fff71d70c Fix to get new code compiling with Borland.
[SVN r3212]
2006-09-22 09:43:52 +00:00
John Maddock
306c96a5e1 Adjusted limits.
[SVN r3211]
2006-09-22 09:29:19 +00:00
John Maddock
5b9e2ec5a8 Added new (better) forms for evaluating polynomials.
Added more Remez code, and appoximations for erf/erfc inverses.
Updated and refactored erf code to use new approximations.
Added more test cases.


[SVN r3210]
2006-09-22 09:28:40 +00:00
John Maddock
379e6a5e07 Oops, fix bug.
[SVN r3203]
2006-09-16 18:29:39 +00:00
John Maddock
47690421b6 Added remez and minima tests.
Added some mimimal fixes to get the code to compile with Borland-5.8.2, although frankly it's more trouble than it's worth.


[SVN r3200]
2006-09-16 16:41:18 +00:00
John Maddock
6ee3cba62b Added Remez minimax code.
[SVN r3197]
2006-09-15 16:18:07 +00:00
John Maddock
6a9623c9b2 Added missing inline specifiers: we get duplicate symbol errors without them!
[SVN r3195]
2006-09-15 16:10:21 +00:00
John Maddock
e9b217437e Added rational approximations for lgamma and small arguments: greatly reduced errors near the roots of lgamma.
[SVN r3194]
2006-09-15 16:09:12 +00:00
John Maddock
6c3c521a3c More linux fixes: finally got AMD64 machines to behave correctly.
[SVN r3186]
2006-09-02 17:56:22 +00:00
John Maddock
84829f74e3 Numerous minor patches to get tests passing on Linux x86 (32-bit) and HP-UX / itanium.
[SVN r3183]
2006-09-02 15:05:43 +00:00
John Maddock
567dc1bd7d Updated error checks.
Removed dead code from error-handling test.


[SVN r3176]
2006-09-01 09:19:24 +00:00
Paul A. Bristow
aa5fca355c added newline at end of last line #endif // BOOST_MATH_DISTRIBUTIONS_CHI_SQUARED_HPP
to avoid fatal compile error.

Noted failure to throw 12 expected exceptions - will investigate why.


[SVN r3175]
2006-08-31 17:41:19 +00:00
Paul A. Bristow
5577b49a33 Spelling and a few comments & refs.
[SVN r3174]
2006-08-31 16:56:28 +00:00
John Maddock
dc70a06809 Added F distribution.
[SVN r3173]
2006-08-31 16:21:17 +00:00
Paul A. Bristow
3f5d624b05 Comment added about big df and df = +infinity needing normal distribution.
[SVN r3171]
2006-08-31 14:32:05 +00:00
John Maddock
a151830ed4 Fixed corner cases.
Implemented parameter estimator.


[SVN r3167]
2006-08-30 15:48:21 +00:00
John Maddock
00a347bee0 Removed remaining old style distribution code (we can get it back from cvs if necessary).
Updated error handling.
Added better chi-squared tests.


[SVN r3165]
2006-08-29 16:41:07 +00:00
John Maddock
9a3ade1320 Refactored error handling a little more.
Added chi-squared distribution and tests.


[SVN r3164]
2006-08-28 12:52:08 +00:00
John Maddock
fa86c0c490 Updated docs.
Rewritten students-t parameter estimator.
Added binomial examples.


[SVN r3162]
2006-08-26 18:33:46 +00:00
John Maddock
9d7123eecf More or less completed normal/binomial/students-t distributions.
Updated docs and tests.


[SVN r3160]
2006-08-25 18:03:48 +00:00
John Maddock
99929b1023 Fixed binomial quantile, added complements, various subtle changes to corner cases, tidied up and removed dead code.
Fixed error messages in beta and gamma inverses.
Updated binomial test program, refacted cdf test cases to test cdf, quantile and complements in one hit.
Added accuracy tests for ibeta_inva and ibeta_invb.
Added more docs.


[SVN r3159]
2006-08-20 09:28:27 +00:00
John Maddock
0d03447123 Added overflow check.
[SVN r3157]
2006-08-18 09:39:30 +00:00
Paul A. Bristow
a23806eb61 1st draft - pdf and cdf probably OK, but quantile etc are not.
[SVN r3155]
2006-08-17 17:40:55 +00:00
John Maddock
d40fa2fb99 Changed students-t quantile to be free from cancellation error.
Added ibeta_inv overloads that return both x and y.
Updated docs to match.


[SVN r3154]
2006-08-16 17:33:24 +00:00
John Maddock
ef43e16e47 Adjusted termination conditions to cope with very large first derivatives in some regions.
[SVN r3152]
2006-08-16 12:05:08 +00:00
John Maddock
f965af9da3 Updated incomplete beta code to calculate power terms in a more reliable way. Added explanatory comments describing what's going on.
[SVN r3151]
2006-08-16 11:40:38 +00:00
Paul A. Bristow
d66b96d4d6 Added #include <boost/cstdint.hpp> for uintmax_t
[SVN r3150]
2006-08-16 11:40:11 +00:00
John Maddock
2befb07120 Adjusted limits to avoid asserts.
[SVN r3149]
2006-08-16 11:39:11 +00:00
John Maddock
a7c3186b5a Added fix for cdf when degrees of freedom parameter is large.
[SVN r3148]
2006-08-16 11:38:07 +00:00
John Maddock
4ff84d85ab Added sample programs that generate test data for incomplete beta and gamma inverses.
Added asin to ntl.hpp: needed for incomplete beta inverse.
Fixed limits on table size in the incomplete beta.


[SVN r3146]
2006-08-14 17:29:59 +00:00
John Maddock
7e902a680e Added root-2 constant.
Fixed complement code so that constructors are used now.
Adjusted pre-formatted parts of tutorial.
Added normal distribution plus tests.


[SVN r3145]
2006-08-14 12:33:49 +00:00
Paul A. Bristow
eacc0ceb7c quieted warnings on unreachable code..
[SVN r3142]
2006-08-14 11:36:38 +00:00
Paul A. Bristow
c6e4a1aabc Quieted warning unreachable code.
[SVN r3141]
2006-08-14 11:35:20 +00:00
Paul A. Bristow
ee24bfd3ee comments and quieted of warnings unreachable code.
[SVN r3140]
2006-08-14 11:34:15 +00:00
John Maddock
4e98273785 Added upper cap on the number of iterations permitted in series evaluation.
Fixed beta function so it's better behaved with very large arguments.
Updated tests.


[SVN r3139]
2006-08-13 17:42:17 +00:00
Paul A. Bristow
8cc9b6d50d commented out distributions now obselete. Need to redo all these with the distribution classes.
[SVN r3138]
2006-08-13 11:39:58 +00:00
John Maddock
3ce59eaed5 Fixed gcc errors (duplicate definitions of default parameters).
[SVN r3135]
2006-08-12 18:00:54 +00:00
Paul A. Bristow
fec4b853a1 *** empty log message ***
[SVN r3131]
2006-08-12 13:28:12 +00:00
Paul A. Bristow
50ad897d31 Removed - to be replaced by version in \distributions
[SVN r3130]
2006-08-12 11:13:59 +00:00
Paul A. Bristow
d34cdb4311 Replaced by version in \distributions.
[SVN r3129]
2006-08-12 11:11:08 +00:00
Paul A. Bristow
9895ce48e1 Use distributions instead of dist.
[SVN r3125]
2006-08-11 10:36:18 +00:00
Paul A. Bristow
59a3e0b48f Moved to distributions folder.
[SVN r3124]
2006-08-11 10:33:53 +00:00
John Maddock
5c645698c3 Added new style Student's t code and examples.
Added tutorial for the new stats code.


[SVN r3121]
2006-08-10 12:53:07 +00:00
John Maddock
2dcc9167e8 Updated inverse gamma tests.
Updated inverse gamma code to prevent premature termination of Halley Iteration.


[SVN r3120]
2006-08-10 09:27:19 +00:00
John Maddock
46d9b33645 Tightened up root finding tests.
Added docs for roots without derivatives.
Added derivatives of incomplete gamma and beta.


[SVN r3112]
2006-08-01 17:23:10 +00:00
John Maddock
cd90a9f0d4 Updated and documented the new root finding code.
[SVN r3111]
2006-07-31 18:05:41 +00:00
John Maddock
5e67622a7d Fixed gamma_inva.
Added floor and ceil termination conditions to toms748_solve.
Added ibeta_inva and ibeta_invb.


[SVN r3109]
2006-07-27 15:45:17 +00:00
John Maddock
79a8199f9c Added new root finding algorithm toms748.
Tidied up inverse code and moved files to detail directory.
Updated docs and Jamfile.


[SVN r3107]
2006-07-26 13:06:56 +00:00
John Maddock
4ecb968fc7 Begun to refactor and tighten up the tests so that results are actually regression tested as well as printed to screen.
Added code for extracting the sign of a number.
Fixed a few bugs and tidied up the code a little in places.
Changed test_result to properly encapsulate it's contents.


[SVN r3106]
2006-07-25 09:17:33 +00:00
Gennaro Prota
2875cd33b7 same as for acos.hpp: fixed license reference text; slight changes to comments to avoid spurious inspect tool warnings
[SVN r34711]
2006-07-24 21:37:11 +00:00
Gennaro Prota
f31a98ad95 fixed license reference text; slight changes to comments to avoid spurious inspect tool warnings
[SVN r34709]
2006-07-24 21:29:43 +00:00
John Maddock
94ebae476a Updated generic erf version so it doesn't call the incomplete gamma directly.
Refactored the incomplete gamma, improved the changeover between P and Q, added two new finite-sum expansions for integer and half integer arguments.
Improved error handing in the inverse gamma.


[SVN r3099]
2006-07-20 12:58:29 +00:00
John Maddock
74b41709bf Borland C++ fix.
[SVN r34532]
2006-07-13 09:47:18 +00:00
John Maddock
607e6990cd Added needed include.
[SVN r34514]
2006-07-12 17:52:28 +00:00
Paul A. Bristow
162f416732 Looks nearer to correct now with test and example1.
[SVN r3091]
2006-07-12 16:13:11 +00:00
Paul A. Bristow
e06f1fa83b Corrected missing k+1
[SVN r3089]
2006-07-11 16:09:04 +00:00
Paul A. Bristow
305ca1f705 comments etc PAB
[SVN r3088]
2006-07-11 14:17:49 +00:00
Paul A. Bristow
8417d24efd comment lexical cast fqult added
[SVN r3087]
2006-07-11 14:16:50 +00:00
Paul A. Bristow
58d4299525 Another unused parameter conveted to /* l */
[SVN r3086]
2006-07-11 14:15:42 +00:00
John Maddock
45fce41aa2 Warning suppression.
[SVN r3085]
2006-07-11 12:30:40 +00:00
John Maddock
cda4c449a9 Crush a couple more warnings.
[SVN r3084]
2006-07-11 12:27:48 +00:00
Paul A. Bristow
11bb475338 More comments, still not tested much.
[SVN r3082]
2006-07-10 17:41:53 +00:00
John Maddock
86c65d8c9f Add using declaration so that std::fabs is actually found.
[SVN r3081]
2006-07-10 16:25:06 +00:00
John Maddock
31fbe1eaeb Added needed math_fwd.hpp includes were needed, cleaned up code, and generally got things compiling with gcc.
[SVN r3080]
2006-07-10 15:30:36 +00:00
Paul A. Bristow
6307ffc6d3 tested by PAB at 8 July - links and runs OK
[SVN r3078]
2006-07-09 18:33:33 +00:00
John Maddock
bc87a3747d Added #pragma's where warnings couldn't be suppressed any other way.
Refactored code to suppress warnings where possible.


[SVN r3077]
2006-07-09 17:56:55 +00:00
John Maddock
f7961cdc6d Added missing inline specifiers.
[SVN r3076]
2006-07-09 17:54:06 +00:00
Paul A. Bristow
ea8e3cf385 1st commit - some tests OK?
[SVN r3072]
2006-07-06 15:19:30 +00:00
Paul A. Bristow
a5603dc093 not sure why changed - comments?
[SVN r3071]
2006-07-06 15:18:19 +00:00
Paul A. Bristow
c9afe467ac Seems sane?
[SVN r3069]
2006-07-06 10:00:35 +00:00
Paul A. Bristow
a78a218dd6 REMOVED two argument domain_error, etc functions. Several calls changed but May still be 2 arg calls in code that will fail to compile now.
[SVN r3059]
2006-07-04 17:43:22 +00:00
Paul A. Bristow
866fb8fb17 argument promotion (needed by math function forward declarations math_fwd.hpp)
See also test_promotions.cpp


[SVN r3057]
2006-07-04 17:39:30 +00:00
Paul A. Bristow
da4f485ceb Update to match math_fwd.hpp OK with test_function_declarations.cpp
[SVN r3055]
2006-07-04 17:17:40 +00:00
Paul A. Bristow
1d0576a788 cosmetic only. TODO add #include math_fwd.hpp
[SVN r3050]
2006-07-03 15:50:58 +00:00
John Maddock
9b6fd61a8f Fixed VC warnings.
Added needed includes.


[SVN r3036]
2006-06-27 16:34:16 +00:00
Paul A. Bristow
f6b8971322 updated to use JM promoted arguments
[SVN r3034]
2006-06-27 09:45:59 +00:00
Paul A. Bristow
a2d122db66 Updated with JM promoted arguments
[SVN r3033]
2006-06-27 09:45:59 +00:00
John Maddock
6b0825841d Updated code to use the new 3-arg domain_error and pole_error functions.
[SVN r3030]
2006-06-24 17:41:23 +00:00
John Maddock
b2c1ef342f Added abs to real_concept.
Added logic_error to error handling code.


[SVN r3029]
2006-06-24 15:50:52 +00:00
John Maddock
6910a75524 Reorganised and refactored limits and constants code.
[SVN r3028]
2006-06-24 12:00:53 +00:00
Paul A. Bristow
818cfd0bbf Improved error messages and try at warning and constraining probability outside 0 to 1
[SVN r3027]
2006-06-23 18:30:40 +00:00
John Maddock
fa6e01c6ee Fix typos.
[SVN r3024]
2006-06-23 09:41:26 +00:00
John Maddock
3519ff8b03 Update digits10 formula used.
[SVN r3023]
2006-06-23 09:36:09 +00:00
John Maddock
3fc272db77 Fixed factorial code, so it is now fully tested.
Added static asserts to ensure data tables in BGRAT don't exceed the number of factorials available.


[SVN r3021]
2006-06-22 18:19:42 +00:00
John Maddock
0de45f85d1 Cleaned up BGRAT table size.
Fixed typos in factorials.hpp.
Added needed using declarations in gamma ratios.
Cygwin fix for test.hpp.


[SVN r3017]
2006-06-22 15:57:23 +00:00
Paul A. Bristow
57dafe1629 1st commit PAB
[SVN r3010]
2006-06-21 16:58:28 +00:00
John Maddock
e53697d039 Changed precision handling to set to full precision before formatting error message.
[SVN r3009]
2006-06-21 16:30:34 +00:00
John Maddock
80b35e3a3a Added additional overloads for domain and pole errors, so that formatted output including the actual value is now possible.
[SVN r3008]
2006-06-21 12:53:49 +00:00
Paul A. Bristow
5cb47fed11 1st try.
[SVN r3006]
2006-06-21 11:52:18 +00:00
John Maddock
a3157d5e12 Updated incomplete beta to use DiDonato and Morris's BGRAT routine in more cases.
[SVN r3004]
2006-06-20 17:21:29 +00:00
Paul A. Bristow
49b94b80a6 1st try.
[SVN r3002]
2006-06-20 14:21:46 +00:00
Paul A. Bristow
a33eceb484 *** empty log message ***
[SVN r2999]
2006-06-19 17:36:33 +00:00
Paul A. Bristow
ad83ab3ac2 1st release
[SVN r2998]
2006-06-19 17:08:19 +00:00
John Maddock
bbc25de1da Updated comments to reflect the state of the code.
[SVN r2989]
2006-06-14 17:42:01 +00:00
John Maddock
0cdad086c5 Updated beta inverse with slighly less costly code.
[SVN r2988]
2006-06-14 16:30:56 +00:00
John Maddock
9c044882bb More or less finished beta inverse and gamma inverse plus misc warning suppression and added missing docs.
[SVN r2987]
2006-06-14 13:59:25 +00:00
John Maddock
97e50116bb Fix warning
[SVN r2975]
2006-06-10 12:42:55 +00:00
John Maddock
cefe1428ea Chained series evaluation (optimisation).
[SVN r2973]
2006-06-09 11:42:11 +00:00
John Maddock
c3611d0c6b Added factorials and gamma function ratios.
Updated incomplete beta with BGRAT routine from Didonato and Morris.
Added even and odd polynomials.
Lots of small tweeks.


[SVN r2972]
2006-06-08 16:08:05 +00:00
John Maddock
5645943c9c Temme inverses are now working.
[SVN r2963]
2006-05-30 17:58:39 +00:00
John Maddock
586cb50312 Added some proper error handling.
Got the incomplete beta inverse working better (Temme's expansions).


[SVN r2962]
2006-05-26 16:42:50 +00:00
nobody
49e8efd352 This commit was manufactured by cvs2svn to create branch 'math_toolkit'.
[SVN r2957]
2006-05-21 15:53:01 +00:00
John Maddock
3d116fefb8 Initial commit.
[SVN r2956]
2006-05-21 15:53:01 +00:00
Alisdair Meredith
aae578b90a Patch for Borland compilers.
[SVN r32424]
2006-01-26 21:14:27 +00:00
John Maddock
4b41c341d6 Borland workarounds for a type deduction bug.
[SVN r32399]
2006-01-24 17:26:10 +00:00
John Maddock
604ec8f8ae Added needed #include
[SVN r32316]
2006-01-13 19:03:50 +00:00
John Maddock
2c309c55e4 Added missing math.h include.
[SVN r32285]
2006-01-11 10:31:58 +00:00
John Maddock
eeebc1031a Fix comment.
[SVN r32279]
2006-01-10 16:02:10 +00:00
Daryle Walker
ab2e8055f7 Merged brief-description comments to thier parent comment when they are adjacent.
[SVN r2790]
2005-12-27 13:07:13 +00:00
Daryle Walker
9c11319890 Optimized expressions now that boost::rational<> supports Boolean conversion.
[SVN r2789]
2005-12-27 12:42:35 +00:00
John Maddock
4c25a20654 Updated code to work even when numeric_limits<>::infinity() is unavailable.
[SVN r32073]
2005-12-16 14:10:05 +00:00
Daryle Walker
8b0b64986e Added Doxygen comments for non-member operator functions; did formatting changes to some code-based formula comments
[SVN r2764]
2005-12-03 07:42:13 +00:00
John Maddock
0cf71150fb Changed calculation of upper and lower safe bounds to avoid problems with std::sqrt(long double) returning infinities.
[SVN r31885]
2005-12-02 19:23:28 +00:00
John Maddock
fc99ec6f69 Tentative fix for pi having wrong value on one platform.
Fix non-conforming call to atan2(0,0).


[SVN r31587]
2005-11-07 18:48:47 +00:00
John Maddock
974a55463e Changed config logic to not use log1pf and expm1f unless C99 compatibility is specified.
[SVN r31450]
2005-10-24 17:07:46 +00:00
John Maddock
816a5d51bd Updated Nan test, in case signed-nan comparisons are buggy.
[SVN r31435]
2005-10-23 17:30:23 +00:00
John Maddock
f9d4a1a9f7 Tentative fix for some Sunpro failures: don't negate NAN's it doesn't work!
[SVN r31430]
2005-10-23 16:19:58 +00:00
John Maddock
67f638cbef Fixed up config to include <utility> via a wrapper that turns off TR1 inclusion in case the Boost.TR1 lib is in the compilers search path.
Likewise for <complex> in the Math/TR1 components.


[SVN r31387]
2005-10-19 16:38:40 +00:00
John Maddock
7308af23cc Added TR1 math lib headers.
[SVN r31334]
2005-10-15 11:59:11 +00:00
Daryle Walker
45ec720e9f Corrected 'll' function names to 'l1'
[SVN r2682]
2005-08-16 07:46:48 +00:00
Daryle Walker
b1b3339876 Added Doxygen comments for non-operator non-member functions
[SVN r2679]
2005-08-06 22:44:23 +00:00
Daryle Walker
ef97fe7be6 Preliminary code for Cayley-Dickson hypercomplex elements
[SVN r2669]
2005-07-27 23:57:04 +00:00
Douglas Gregor
76d9993b29 Need workaround header
[SVN r28653]
2005-05-04 13:40:34 +00:00
Hubert Holin
33e3aa09d0 Greater use of BOOST_WORKAROUND.
[SVN r28214]
2005-04-13 14:41:00 +00:00
Daryle Walker
8eb25c451e Added missing 'typename'
[SVN r27219]
2005-02-07 14:34:32 +00:00
John Maddock
a84e01fcc6 Changed files to BSL based on permissions in blanket-permission.txt
[SVN r25451]
2004-09-28 12:55:45 +00:00
Hubert Holin
de88dc5e38 Fixed BOOST_OCTONION_MEMBER_DIV_GENERATOR_4.
[SVN r24750]
2004-08-26 12:22:51 +00:00
Douglas Gregor
4471d90c95 License updates
[SVN r24597]
2004-08-19 15:19:17 +00:00
John Maddock
b1b4e377fc Added Daryle Walker's copyrights as requested.
[SVN r24481]
2004-08-15 10:13:49 +00:00
John Maddock
668e01c050 Removed boost.org copyright assignments, and reverted to orginal author (as based on cvs history).
[SVN r24402]
2004-08-11 10:59:33 +00:00
Douglas Gregor
2c8db4a10c License update
[SVN r24180]
2004-07-30 04:46:56 +00:00
Eric Niebler
a607b80188 remove minmax hack from win32.hpp and fix all places that could be affected by the minmax macros
[SVN r22394]
2004-02-26 18:27:02 +00:00
Daryle Walker
6792aa6963 Added bit-searching, bit-intersection, and scaling functions
[SVN r1984]
2004-02-17 03:43:40 +00:00
Daryle Walker
ae74e09deb Added addition and subtraction operators
[SVN r1975]
2004-02-14 09:20:48 +00:00
Daryle Walker
37a37daa30 Added absolute-value and sign functions
[SVN r1974]
2004-02-13 22:50:54 +00:00
Daryle Walker
2439924bff Added increment and decrement operators
[SVN r1973]
2004-02-13 22:06:26 +00:00
Daryle Walker
06bdded4f5 Fixed-up, hopefully, the implementation and exception policy of the bit-shift operators
[SVN r1968]
2004-02-13 10:34:00 +00:00
Daryle Walker
692dc90c11 Added unary + and - operators
[SVN r1967]
2004-02-13 01:05:16 +00:00
Daryle Walker
2ffe57e17c Added bitwise and-not function; did minor documentation tweak
[SVN r1966]
2004-02-12 13:29:21 +00:00
Daryle Walker
bbe2679ca9 Refactored implementations of bitwise operators
[SVN r1965]
2004-02-12 07:23:26 +00:00
Daryle Walker
11de9cab52 Added bit-shift operators; improved test for bit-reversal
[SVN r1961]
2004-02-11 08:20:28 +00:00
Daryle Walker
dba06e2c25 Fixed potential bug; did minor tweaks
[SVN r1954]
2004-02-10 09:59:38 +00:00
Daryle Walker
4488e0ff33 Added bit-string converter; did minor tweaks
[SVN r1953]
2004-02-10 03:08:15 +00:00
Daryle Walker
7b2bf3e95c Added bitwise-and, -or, and -xor operators, including combined assignment versions
[SVN r1952]
2004-02-10 01:11:29 +00:00
Daryle Walker
54484f15df Added even/odd test, comparison method and operators, and minor tweaks
[SVN r1947]
2004-02-09 05:42:24 +00:00
Daryle Walker
8067b24e14 Added single-bit-specific implementation of reset/set/flip
[SVN r1939]
2004-02-07 05:49:08 +00:00
Daryle Walker
dbb3463a51 Did more minor formatting changes
[SVN r1938]
2004-02-06 08:31:20 +00:00
Daryle Walker
008f2f77cc Did minor formatting changes
[SVN r1937]
2004-02-06 08:18:14 +00:00
Daryle Walker
bcf7ac8a38 Added method to assign an arbitrary bit pattern within a bit range of another big_whole object
[SVN r1936]
2004-02-06 08:00:19 +00:00
Daryle Walker
8ee4efc5f7 Added files for the multi-precision non-negative integer type based on std::valarray
[SVN r1935]
2004-02-05 10:36:38 +00:00
John Maddock
e8ddc9e36f Metrowerks appears to require static_cast workaround.
[SVN r21445]
2004-01-02 11:33:28 +00:00
John Maddock
2fbd58f0db Fixed gcc 3.2 and 3.3 build issues, tests still fail on cygwin, but pass on linux and mingw32 (seems to be a numeric_limits issue).
[SVN r21433]
2003-12-31 12:04:45 +00:00
Daryle Walker
bf81a3172e Moved my stuff to the Boost Software License, Version 1.0
[SVN r1735]
2003-11-05 07:06:17 +00:00
Hubert Holin
359857bd48 Gcc 3.3 compatibility
[SVN r18677]
2003-06-05 09:07:33 +00:00
Beman Dawes
a450e29e48 spurious semicolon removed to quiet warnings
[SVN r18573]
2003-05-28 00:51:53 +00:00
Beman Dawes
67408fbb0d replace cr with nl
[SVN r17689]
2003-03-01 18:10:27 +00:00
Hubert Holin
bccbe62dc8 now includes the config header (via quaternion.hpp)
[SVN r17637]
2003-02-25 13:40:16 +00:00
Hubert Holin
97edca44d8 now includes config header
[SVN r17617]
2003-02-24 15:54:16 +00:00
Hubert Holin
19e88761f5 Now includes the configuration header.
[SVN r17546]
2003-02-20 11:44:24 +00:00
Beman Dawes
02fdcc02cf add or update See www.boost.org comments
[SVN r16708]
2002-12-27 16:51:53 +00:00
Björn Karlsson
c30e40787d Update from Hubert Holin
[SVN r15963]
2002-10-22 06:24:39 +00:00
Markus Schöpflin
b518e7ac2c Merged fix from release branch to main trunk.
[SVN r15607]
2002-10-01 13:31:42 +00:00
Daryle Walker
314daf2a52 Added modulo arithmetic library
[SVN r522]
2002-09-20 17:04:13 +00:00
Daryle Walker
5255f7d989 Adjusted for moving the Compile-Time and Run-Time GCD and LCM components to new, separate headers
[SVN r14273]
2002-07-02 08:31:15 +00:00
Daryle Walker
93af018235 Moved the Compile-Time and Run-Time components to separate headers
[SVN r14272]
2002-07-02 07:51:48 +00:00
John Maddock
5346f498c3 Added fixes for the case that BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS is defined.
[SVN r13684]
2002-05-06 10:35:57 +00:00
Douglas Gregor
a937b274dc Fixes for GCC 2.95.x
[SVN r12639]
2002-02-02 15:39:51 +00:00
Douglas Gregor
413c15ad7f Don't use std::ends for ostringstream
[SVN r12287]
2002-01-12 13:29:30 +00:00
Dave Abrahams
9ccffd661f Integrated MSVC fixes from Daryle
[SVN r12012]
2001-12-11 04:59:26 +00:00
Jens Maurer
bc5d3ed695 fix errors (from Daryle Walker)
[SVN r11935]
2001-12-05 20:56:26 +00:00
Dave Abrahams
d199e37ac9 Daryle Walker's GCD library submission
[SVN r11814]
2001-11-29 21:42:58 +00:00
Darin Adler
28650c0720 Math library fixes for BOOST_NO_STDC_NAMESPACE.
[SVN r11346]
2001-10-05 23:37:12 +00:00
Jens Maurer
3c8349e7ec update from Hubert Holin
now works with significantly more compilers


[SVN r11284]
2001-09-26 21:29:40 +00:00
Darin Adler
f3b38b93c4 Use <boost/limits.hpp> to help out platforms that don't have <limits>.
[SVN r11246]
2001-09-25 06:52:03 +00:00
Jens Maurer
d77e86b74c moved to namespace boost::math
formatting changes


[SVN r10568]
2001-07-08 21:34:21 +00:00
Jens Maurer
f483d1189b Special functions, octonions, quaternions by Hubert Holin
[SVN r10404]
2001-06-23 08:02:37 +00:00