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



Bits error versus x
Results
if x < -125571.148095762808 or 77290.660975688515 < x Initial program 60.3
Taylor expanded around -inf 64.0
Simplified0.7
if -125571.148095762808 < x < 77290.660975688515Initial program 0.2
rmApplied flip-+_binary64_3880.2
Applied cbrt-div_binary64_4430.2
Simplified0.2
rmApplied add-log-exp_binary64_4500.2
Applied add-log-exp_binary64_4500.2
Applied diff-log_binary64_5030.2
Simplified0.2
Final simplification0.4
herbie shell --seed 2020281
(FPCore (x)
:name "2cbrt (problem 3.3.4)"
:precision binary64
(- (cbrt (+ x 1.0)) (cbrt x)))