2
0
mirror of https://github.com/boostorg/math.git synced 2026-02-02 21:02:20 +00:00
Commit Graph

982 Commits

Author SHA1 Message Date
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