From 32a41b1abe1a4aab0892c9c2051be6ba5b379f1e Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Mon, 11 May 2020 22:17:58 +0200 Subject: New upstream version 2.2.0~rc1+repack --- .../doc/html/math_toolkit/expint/expint_i.html | 317 --------------------- .../doc/html/math_toolkit/expint/expint_n.html | 284 ------------------ 2 files changed, 601 deletions(-) delete mode 100644 boost/libs/math/doc/html/math_toolkit/expint/expint_i.html delete mode 100644 boost/libs/math/doc/html/math_toolkit/expint/expint_n.html (limited to 'boost/libs/math/doc/html/math_toolkit/expint') diff --git a/boost/libs/math/doc/html/math_toolkit/expint/expint_i.html b/boost/libs/math/doc/html/math_toolkit/expint/expint_i.html deleted file mode 100644 index e9b949c1..00000000 --- a/boost/libs/math/doc/html/math_toolkit/expint/expint_i.html +++ /dev/null @@ -1,317 +0,0 @@ - - - -Exponential Integral Ei - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/expint.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T>
-calculated-result-type expint(T z);
-
-template <class T, class Policy>
-calculated-result-type expint(T z, const Policy&);
-
-}} // namespaces
-
-

- The return type of these functions is computed using the result - type calculation rules: the return type is double if T is an integer type, and T otherwise. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
- - Description -
-
template <class T>
-calculated-result-type expint(T z);
-
-template <class T, class Policy>
-calculated-result-type expint(T z, const Policy&);
-
-

- Returns the exponential - integral of z: -

-

- -

-

- -

-
- - Accuracy -
-

- The following table shows the peak errors (in units of epsilon) found on - various platforms with various floating point types, along with comparisons - to Cody's SPECFUN implementation and the GSL-1.9 - library. Unless otherwise specified any floating point type that is narrower - than the one shown will have effectively - zero error. -

-
-

Table 6.75. Error rates for expint (Ei)

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Exponential Integral Ei -

-
-

- Max = 1.43ε (Mean = 0.541ε) -

-
-

- Max = 5.05ε (Mean = 0.821ε)

- (<tr1/cmath>: Max = 14.1ε (Mean = 2.43ε) - And - other failures.) -

-
-

- Max = 0.994ε (Mean = 0.142ε)

- (GSL 1.16: Max = 8.96ε (Mean = 0.703ε))
- (Cephes: Max = +INFε (Mean - = +INFε) And - other failures.) -

-
-

- Max = 3.34ε (Mean = 0.631ε) -

-
-

- Exponential Integral Ei: double exponent range -

-
-

- Max = 1.7ε (Mean = 0.66ε) -

-
-

- Max = 1.72ε (Mean = 0.593ε)

- (<tr1/cmath>: Max = 3.11ε (Mean = 1.13ε)) -

-
-

- Max = 0.998ε (Mean = 0.156ε)

- (GSL 1.16: Max = 1.5ε (Mean = 0.612ε))
- (Cephes: Max = 1.77ε (Mean = 0.644ε)) -

-
-

- Max = 1.72ε (Mean = 0.618ε) -

-
-

- Exponential Integral Ei: long exponent range -

-
- -

- Max = 1.98ε (Mean = 0.595ε)

- (<tr1/cmath>: Max = 1.93ε (Mean = 0.855ε)) -

-
- -

- Max = 1.98ε (Mean = 0.575ε) -

-
-
-

- It should be noted that all three libraries tested above offer sub-epsilon - precision over most of their range. -

-

- GSL has the greatest difficulty near the positive root of En, while Cody's - SPECFUN along with this implementation increase their error rates very slightly - over the range [4,6]. -

-
- - Testing -
-

- The tests for these functions come in two parts: basic sanity checks use - spot values calculated using Mathworld's - online evaluator, while accuracy checks use high-precision test values - calculated at 1000-bit precision with NTL::RR - and this implementation. Note that the generic and type-specific versions - of these functions use differing implementations internally, so this gives - us reasonably independent test data. Using our test data to test other "known - good" implementations also provides an additional sanity check. -

-
- - Implementation -
-

- For x < 0 this function just calls zeta(1, - -x): which in turn is implemented in terms of rational approximations when - the type of x has 113 or fewer bits of precision. -

-

- For x > 0 the generic version is implemented using the infinte series: -

-

- -

-

- However, when the precision of the argument type is known at compile time - and is 113 bits or less, then rational approximations devised - by JM are used. -

-

- For 0 < z < 6 a root-preserving approximation of the form: -

-

- -

-

- is used, where z0 is the positive root of the function, and R(z/3 - 1) is - a minimax rational approximation rescaled so that it is evaluated over [-1,1]. - Note that while the rational approximation over [0,6] converges rapidly to - the minimax solution it is rather ill-conditioned in practice. Cody and Thacher - [5] experienced the same issue and converted the polynomials into - Chebeshev form to ensure stable computation. By experiment we found that - the polynomials are just as stable in polynomial as Chebyshev form, provided - they are computed over the interval [-1,1]. -

-

- Over the a series of intervals [a,b] and [b,INF] the rational approximation - takes the form: -

-

- -

-

- where c is a constant, and R(t) is a minimax solution - optimised for low absolute error compared to c. Variable - t is 1/z when the range in infinite and 2z/(b-a) - (2a/(b-a) + 1) otherwise: this has the effect of scaling - z to the interval [-1,1]. As before rational approximations over arbitrary - intervals were found to be ill-conditioned: Cody and Thacher solved this - issue by converting the polynomials to their J-Fraction equivalent. However, - as long as the interval of evaluation was [-1,1] and the number of terms - carefully chosen, it was found that the polynomials could - be evaluated to suitable precision: error rates are typically 2 to 3 epsilon - which is comparible to the error rate that Cody and Thacher achieved using - J-Fractions, but marginally more efficient given that fewer divisions are - involved. -

-
-

-

[5] - W. J. Cody and H. C. Thacher, Jr., Rational Chebyshev approximations for - the exponential integral E1(x), Math. Comp. 22 (1968), 641-649, and W. - J. Cody and H. C. Thacher, Jr., Chebyshev approximations for the exponential - integral Ei(x), Math. Comp. 23 (1969), 289-303. -

-
-
- - - -
-
-
-PrevUpHomeNext -
- - diff --git a/boost/libs/math/doc/html/math_toolkit/expint/expint_n.html b/boost/libs/math/doc/html/math_toolkit/expint/expint_n.html deleted file mode 100644 index 89466724..00000000 --- a/boost/libs/math/doc/html/math_toolkit/expint/expint_n.html +++ /dev/null @@ -1,284 +0,0 @@ - - - -Exponential Integral En - - - - - - - - - - - - - - - -
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
-
-
-PrevUpHomeNext -
-
- -
- - Synopsis -
-
#include <boost/math/special_functions/expint.hpp>
-
-
namespace boost{ namespace math{
-
-template <class T>
-calculated-result-type expint(unsigned n, T z);
-
-template <class T, class Policy>
-calculated-result-type expint(unsigned n, T z, const Policy&);
-
-}} // namespaces
-
-

- The return type of these functions is computed using the result - type calculation rules: the return type is double if T is an integer type, and T otherwise. -

-

- The final Policy argument is optional and can - be used to control the behaviour of the function: how it handles errors, - what level of precision to use etc. Refer to the policy - documentation for more details. -

-
- - Description -
-
template <class T>
-calculated-result-type expint(unsigned n, T z);
-
-template <class T, class Policy>
-calculated-result-type expint(unsigned n, T z, const Policy&);
-
-

- Returns the exponential - integral En of z: -

-

- -

-

- -

-
- - Accuracy -
-

- The following table shows the peak errors (in units of epsilon) found on - various platforms with various floating point types, along with comparisons - to other libraries. Unless otherwise specified any floating point type that - is narrower than the one shown will have effectively - zero error. -

-
-

Table 6.74. Error rates for expint (En)

-
------- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -

- Microsoft Visual C++ version 12.0
Win32
double -

-
-

- GNU C++ version 5.1.0
linux
double -

-
-

- GNU C++ version 5.1.0
linux
long double -

-
-

- Sun compiler version 0x5130
Sun Solaris
long double -

-
-

- Exponential Integral En -

-
-

- Max = 7.16ε (Mean = 1.85ε) -

-
-

- Max = 0.589ε (Mean = 0.0331ε)
-
(GSL 1.16: Max = 58.5ε (Mean = 17.1ε)) -

-
-

- Max = 9.97ε (Mean = 2.13ε) -

-
-

- Max = 9.97ε (Mean = 2.13ε) -

-
-

- Exponential Integral En: small z values -

-
-

- Max = 2.62ε (Mean = 0.531ε) -

-
-

- Max = 0ε (Mean = 0ε)

(GSL - 1.16: Max = 115ε (Mean = 23.6ε)) -

-
-

- Max = 1.99ε (Mean = 0.559ε) -

-
-

- Max = 1.99ε (Mean = 0.559ε) -

-
-

- Exponential Integral E1 -

-
-

- Max = 0.988ε (Mean = 0.486ε) -

-
-

- Max = 0.556ε (Mean = 0.0625ε)
-
(GSL 1.16: Max = 0.988ε (Mean = 0.469ε)) -

-
-

- Max = 0.965ε (Mean = 0.414ε) -

-
-

- Max = 0.965ε (Mean = 0.409ε) -

-
-
-
- - Testing -
-

- The tests for these functions come in two parts: basic sanity checks use - spot values calculated using Mathworld's - online evaluator, while accuracy checks use high-precision test values - calculated at 1000-bit precision with NTL::RR - and this implementation. Note that the generic and type-specific versions - of these functions use differing implementations internally, so this gives - us reasonably independent test data. Using our test data to test other "known - good" implementations also provides an additional sanity check. -

-
- - Implementation -
-

- The generic version of this function uses the continued fraction: -

-

- -

-

- for large x and the infinite series: -

-

- -

-

- for small x. -

-

- Where the precision of x is known at compile time and - is 113 bits or fewer in precision, then rational approximations devised - by JM are used for the n - == 1 - case. -

-

- For x < - 1 the approximating form is a minimax - approximation: -

-

- -

-

- and for x > - 1 a Chebyshev interpolated approximation - of the form: -

-

- -

-

- is used. -

-
- - - -
-
-
-PrevUpHomeNext -
- - -- cgit v1.2.3