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



Bits error versus x
Results
if x < -76484.353320270719 or 78115.690093313489 < x Initial program 60.6
Taylor expanded around -inf 64.0
Simplified0.6
if -76484.353320270719 < x < 78115.690093313489Initial program 0.2
rmApplied flip3-+_binary640.2
Applied cbrt-div_binary640.2
Simplified0.2
Simplified0.2
rmApplied add-log-exp_binary640.2
Applied add-log-exp_binary640.2
Applied diff-log_binary640.2
Simplified0.2
Final simplification0.4
herbie shell --seed 2020233
(FPCore (x)
:name "2cbrt (problem 3.3.4)"
:precision binary64
(- (cbrt (+ x 1.0)) (cbrt x)))