\sqrt[3]{x + 1} - \sqrt[3]{x}\begin{array}{l}
\mathbf{if}\;x \leq -71136.05163775448 \lor \neg \left(x \leq 76227.4301677554\right):\\
\;\;\;\;\frac{\sqrt[3]{x}}{x} \cdot \left(0.3333333333333333 + \frac{-0.1111111111111111}{x}\right) + \left(\sqrt[3]{x} - \sqrt[3]{-x} \cdot \sqrt[3]{-1}\right)\\
\mathbf{else}:\\
\;\;\;\;\sqrt[3]{x + 1} - \sqrt[3]{\sqrt[3]{x}} \cdot \left(\sqrt[3]{\sqrt[3]{x}} \cdot \sqrt[3]{\sqrt[3]{x}}\right)\\
\end{array}(FPCore (x) :precision binary64 (- (cbrt (+ x 1.0)) (cbrt x)))
(FPCore (x)
:precision binary64
(if (or (<= x -71136.05163775448) (not (<= x 76227.4301677554)))
(+
(* (/ (cbrt x) x) (+ 0.3333333333333333 (/ -0.1111111111111111 x)))
(- (cbrt x) (* (cbrt (- x)) (cbrt -1.0))))
(-
(cbrt (+ x 1.0))
(* (cbrt (cbrt x)) (* (cbrt (cbrt x)) (cbrt (cbrt x)))))))double code(double x) {
return cbrt(x + 1.0) - cbrt(x);
}
double code(double x) {
double tmp;
if ((x <= -71136.05163775448) || !(x <= 76227.4301677554)) {
tmp = ((cbrt(x) / x) * (0.3333333333333333 + (-0.1111111111111111 / x))) + (cbrt(x) - (cbrt(-x) * cbrt(-1.0)));
} else {
tmp = cbrt(x + 1.0) - (cbrt(cbrt(x)) * (cbrt(cbrt(x)) * cbrt(cbrt(x))));
}
return tmp;
}



Bits error versus x
Results
if x < -71136.051637754485 or 76227.430167755403 < x Initial program 60.4
Taylor expanded around -inf 64.0
Simplified0.7
if -71136.051637754485 < x < 76227.430167755403Initial program 0.1
rmApplied add-cube-cbrt_binary640.2
Final simplification0.4
herbie shell --seed 2020260
(FPCore (x)
:name "2cbrt (problem 3.3.4)"
:precision binary64
(- (cbrt (+ x 1.0)) (cbrt x)))