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/cbrt.html | 165 +++++++++++++++++++++ 1 file changed, 165 insertions(+) create mode 100644 boost/libs/math/doc/html/math_toolkit/powers/cbrt.html (limited to 'boost/libs/math/doc/html/math_toolkit/powers/cbrt.html') diff --git a/boost/libs/math/doc/html/math_toolkit/powers/cbrt.html b/boost/libs/math/doc/html/math_toolkit/powers/cbrt.html new file mode 100644 index 00000000..c6c58a9f --- /dev/null +++ b/boost/libs/math/doc/html/math_toolkit/powers/cbrt.html @@ -0,0 +1,165 @@ + + + +cbrt + + + + + + + + + + + + + + + +
Boost C++ LibrariesHomeLibrariesPeopleFAQMore
+
+
+PrevUpHomeNext +
+
+

+cbrt +

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

+ Returns the cubed root of x: x1/3. +

+

+ The return type of this function is computed using the result + type calculation rules: the return is double + when x 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. +

+

+ Implemented using Halley iteration. +

+

+ The following graph illustrates the behaviour of cbrt: +

+

+ +

+
+ + Accuracy +
+

+ For built in floating-point types cbrt + should have approximately 2 epsilon accuracy. +

+
+

Table 6.80. Error rates for cbrt

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

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

+
+

+ cbrt Function +

+
+

+ Max = 1.7ε (Mean = 0.565ε)

+ (<math.h>: Max = 1.7ε (Mean = 0.565ε)) +

+
+

+ Max = 0ε (Mean = 0ε)

(Cephes: + Max = 0ε (Mean = 0ε)) +

+
+

+ Max = 1.34ε (Mean = 0.471ε)

+ (<tr1/cmath>: Max = 1.34ε (Mean = 0.471ε))
+ (<math.h>: Max = 1.34ε (Mean = 0.471ε)) +

+
+

+ Max = 1.11ε (Mean = 0.424ε)

+ (<math.h>: Max = 1.11ε (Mean = 0.424ε)) +

+
+
+
+ + Testing +
+

+ A mixture of spot test sanity checks, and random high precision test values + calculated using NTL::RR at 1000-bit precision. +

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