2
0
mirror of https://github.com/boostorg/math.git synced 2026-02-27 17:12:22 +00:00
Commit Graph

6660 Commits

Author SHA1 Message Date
Matt Borland
ff53175155 Update version history (#1053) 2023-11-18 15:29:12 +01:00
Matt Borland
fd0a0bf207 Revert "Update version history."
This reverts commit 430f0dc6e2.
2023-11-18 08:23:17 +01:00
jzmaddock
430f0dc6e2 Update version history.
[CI SKIP]
2023-11-17 18:26:42 +00:00
Matt Borland
42273bc4a2 Merge pull request #1047 from boostorg/develop
Merge ccmath updates to master
boost-1.84.0.beta1
2023-11-07 12:56:37 +01:00
jzmaddock
8c72a85ec6 Merge pull request #1046 from boostorg/ccmath_support_detection
Improve ccmath support detection.
2023-11-07 08:53:47 +00:00
jzmaddock
407a2eb8ed Correct depint.py includes. 2023-11-06 18:40:06 +00:00
jzmaddock
c33ea10655 Update depinst.py usage to scan more directories. 2023-11-06 18:27:35 +00:00
jzmaddock
90c509398b Improve error detection further. 2023-11-06 09:40:26 +00:00
jzmaddock
d7048ecfa7 Improve ccmath support detection.
See discussion in https://github.com/boostorg/math/pull/1045.
2023-11-05 19:32:33 +00:00
jzmaddock
f4c3757545 Merge pull request #1042 from boostorg/develop
Merge for 1.84
2023-11-05 17:25:52 +00:00
jzmaddock
11e2348372 Merge pull request #1045 from boostorg/ccmath_config
Update/improve ccmath configuration.
2023-11-05 11:30:50 +00:00
jzmaddock
21230d698e Correct header include order for standalone mode. 2023-11-03 18:46:23 +00:00
jzmaddock
6d6b0a8c82 Correct new headers include guards. 2023-11-03 18:37:33 +00:00
jzmaddock
7f39320b8d Update/improve ccmath configuration. 2023-11-03 18:32:21 +00:00
Matt Borland
8435aefd40 Merge pull request #1044 from boostorg/next
Fix detection of ccmath usage in trunc
2023-11-03 11:32:21 +01:00
Matt Borland
d298a15b1d Reorder macro and add missing include 2023-11-03 08:27:30 +01:00
Matt Borland
bfa206d12c Losen tolerance on cohen acceleration 2023-11-03 08:18:03 +01:00
jzmaddock
36a3dbd01f Merge pull request #1043 from boostorg/log1p_mp_fix
Qualify log1p calls.
2023-11-02 17:55:22 +00:00
jzmaddock
ae6571af58 Qualify log1p calls.
This fixes ambiguous overloads in the multiprecision case between boost::multiprecision and boost::math versions of log1p.
See https://github.com/boostorg/multiprecision/pull/568#issuecomment-1790195318
2023-11-02 12:14:06 +00:00
Matt Borland
7bc2da4a48 Fix clang-14 run in CI (#1041) 2023-10-31 11:33:36 +01:00
ryanelandt
2c74b149b0 has_denorm_now (#1029)
* initial commit

* remove == std::denorm_present

* remove extra ) in ccmath/next
2023-10-30 09:37:29 +01:00
jzmaddock
14f4e3a21f Merge pull request #1039 from boostorg/cast_cleanup
Incorporate cast simplifications from PR880
2023-10-18 13:15:55 +01:00
jzmaddock
7571fc6814 Fix up PP logic for there being no __float128. 2023-10-18 09:42:09 +01:00
jzmaddock
c6f4a88809 Incorporate cast simplifications from https://github.com/boostorg/math/pull/880
Add tests and make sure everything is covered, and fix resulting errors.
2023-10-17 17:09:44 +01:00
jzmaddock
e3e79b51c2 Merge pull request #1033 from AtariDreams/constexpr
ten should be a constexpr as a float
2023-10-16 11:59:48 +01:00
Rose
0e3b29f389 ten should be a constexpr as a float
Its int counterpart is a constexpr, and the ten variable never changes, so for consistency, we should make float_type ten constexpr as welll.
2023-10-15 18:54:03 -04:00
jzmaddock
30bb70352b Merge pull request #1038 from boostorg/issue1035
Correct non-central-t series convergence bug.
2023-10-14 09:26:12 +01:00
jzmaddock
eaf876c81e Correct non-central-t series convergence bug.
Fixes https://github.com/boostorg/math/issues/1035.
See also https://github.com/scipy/scipy/issues/19348.
Accuracy in left tail is still poor, and the reflection formula appears to be to blame as it's use causes the series to cancel out the first term, but it appears we have no real choice in the matter here.  At least we do now get a few digits correct.
2023-10-13 18:45:03 +01:00
jzmaddock
10857c0207 Merge pull request #1036 from boostorg/issue1034
Adjust recursion when using the Bessel function approximation with la…
2023-10-13 10:34:19 +01:00
jzmaddock
57b09f4919 More test cases and corrections. 2023-10-12 17:06:37 +01:00
jzmaddock
2dbd7698cc Adjust recursion when using the Bessel function approximation with large z.
Avoids hitting tgamma on a negative integer, also improves accuracy when b-a-0.5 is close to a negative integer.
Fixes https://github.com/boostorg/math/issues/1034.
2023-10-11 11:45:33 +01:00
AtariDreams
1722ef9261 k should be size_t (#1031) 2023-09-30 18:51:27 -07:00
Matt Borland
fc3a395f07 Add clang-win to CI runs (#1030) 2023-09-25 08:25:40 +02:00
jzmaddock
09d82da6e9 Merge pull request #1026 from boostorg/issue1006
Avoid spurious overflow and divide by zero in ibeta.
2023-09-02 09:14:53 +01:00
jzmaddock
2d9d202ff1 Fix conceptual failures. 2023-09-01 17:21:25 +01:00
jzmaddock
8ff6bc114e Avoid spurious overflow and divide by zero in ibeta.
Add tests extracted from SciPy bug report.
Fixes https://github.com/boostorg/math/issues/1006.
See also https://github.com/boostorg/math/pull/1009.
2023-09-01 15:48:43 +01:00
jzmaddock
ce18ea4096 Merge pull request #1025 from boostorg/pr1007
Improve ibeta power term calculation in the Sterling case
2023-08-31 16:12:11 +01:00
jzmaddock
469bff7e17 Improve method selection logic in ibeta_power_terms
(Sterling version)
2023-08-31 12:36:19 +01:00
jzmaddock
0c4fc70036 Merge branch 'develop' into pr1007
Fixes Conflicts:
	test/test_binomial.cpp
2023-08-30 11:53:29 +01:00
jzmaddock
d967bf73d0 Improve accuracy in ibeta power terms usig Sterling's approximation (the non Lanczos case).
Completes work started here: https://github.com/boostorg/math/pull/1007
2023-08-30 11:50:28 +01:00
Matt Borland
0d941f0d07 Fix issue #1023 (#1024) 2023-08-28 13:10:58 -04:00
Jimmy Lu
74bb4bccf2 Fix inverse_discrete_quantile for large guess (#1007)
If `guess` passed to `inverse_discrete_quantile` cannot be represented
as floating point number, it is possible that `guess + 1` or `guess - 1`
does not change the value at all and we are stuck in infinite loop
inside `round_to_floor` or `round_to_ceil`.  Fix this by
increase/decrease more than 1 in these cases.

Example code to reproduce this:
```c++
boost::math::binomial_distribution<> dist(9079765771874083840, 0.561815);
boost::math::quantile(dist, 0.0365346);
```
2023-08-24 08:31:37 -04:00
ryanelandt
3d8e1d5362 test fix for multiprecision 562 (#1015) 2023-08-23 09:17:45 -04:00
Christopher Kormanyos
fac5c41c75 Merge pull request #1019 from boostorg/issue1018
Fix #1018 via eliminate unused parameter
2023-08-23 06:28:20 +02:00
Christopher Kormanyos
7b37e2378b Eliminate unused parameter 2023-08-22 19:35:53 +02:00
Christopher Kormanyos
6caf005a31 Merge pull request #1017 from boostorg/issue1016
Fix #1016 MSVC 14_0 stdandards and has-include
2023-08-22 16:50:52 +02:00
Christopher Kormanyos
4c964bb2ec Agree on PP syntax for <stdfloat> query 2023-08-22 15:07:22 +02:00
Christopher Kormanyos
a14f39ff50 Correct the CI runner logic in YAML 2023-08-22 12:41:41 +02:00
Christopher Kormanyos
320d6f8ab7 Use elementary yet more-obscure PP checks 2023-08-22 11:28:28 +02:00
Christopher Kormanyos
4069a75a83 Supply proper working directory in CI 2023-08-22 11:17:05 +02:00