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



Bits error versus x
Results
if x < -65837.530018498568 or 71823.481978099531 < x Initial program 60.3
Taylor expanded around -inf 64.0
Simplified0.7
if -65837.530018498568 < x < 71823.481978099531Initial program 0.1
rmApplied flip-+_binary640.1
Applied cbrt-div_binary640.1
Simplified0.1
Final simplification0.4
herbie shell --seed 2020253
(FPCore (x)
:name "2cbrt (problem 3.3.4)"
:precision binary64
(- (cbrt (+ x 1.0)) (cbrt x)))