From e0737c56c1e384e05064a0c6e1ac46979371041b Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Wed, 19 Dec 2018 22:58:32 +0100 Subject: New upstream version 2.0.0+repack --- .../math/doc/html/math_toolkit/powers/powm1.html | 162 +++++++++++++++++++++ 1 file changed, 162 insertions(+) create mode 100644 boost/libs/math/doc/html/math_toolkit/powers/powm1.html (limited to 'boost/libs/math/doc/html/math_toolkit/powers/powm1.html') diff --git a/boost/libs/math/doc/html/math_toolkit/powers/powm1.html b/boost/libs/math/doc/html/math_toolkit/powers/powm1.html new file mode 100644 index 00000000..81094d45 --- /dev/null +++ b/boost/libs/math/doc/html/math_toolkit/powers/powm1.html @@ -0,0 +1,162 @@ + + + +powm1 + + + + + + + + + + + + + + + +
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
+
+
+PrevUpHomeNext +
+
+

+powm1 +

+
#include <boost/math/special_functions/powm1.hpp>
+
+
namespace boost{ namespace math{
+
+template <class T1, class T2>
+calculated-result-type powm1(T1 x, T2 y);
+
+template <class T1, class T2, class Policy>
+calculated-result-type powm1(T1 x, T2 y, const Policy&);
+
+}} // namespaces
+
+

+ Returns xy - 1. +

+

+ The return type of this function is computed using the result + type calculation rules when T1 and T2 are dufferent types. +

+

+ 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. +

+

+ There are two domains where this is useful: when y is very small, or when + x is close to 1. +

+

+ Implemented in terms of expm1. +

+

+ The following graph illustrates the behaviour of powm1: +

+

+ +

+
+ + Accuracy +
+

+ Should have approximately 2-3 epsilon accuracy. +

+
+

Table 6.82. Error rates for powm1

+
+++++++ + + + + + + + + + + + + + + +
+ +

+ 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 +

+
+

+ powm1 +

+
+

+ Max = 1.99ε (Mean = 0.461ε) +

+
+

+ Max = 1.26ε (Mean = 0.428ε) +

+
+

+ Max = 2.04ε (Mean = 0.521ε) +

+
+

+ Max = 2.14ε (Mean = 0.498ε) +

+
+
+
+ + Testing +
+

+ A selection of random high precision test values calculated using NTL::RR + at 1000-bit precision. +

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