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



Bits error versus x
Results
if x < -0.999511304032868586Initial program 59.5
Taylor expanded around -inf 64.0
Simplified1.2
rmApplied add-log-exp_binary64_4621.2
if -0.999511304032868586 < x < 66906.875842473426Initial program 0.1
rmApplied pow1/3_binary64_5050.1
if 66906.875842473426 < x Initial program 60.6
Taylor expanded around -inf 64.0
Simplified0.7
Final simplification0.5
herbie shell --seed 2020288
(FPCore (x)
:name "2cbrt (problem 3.3.4)"
:precision binary64
(- (cbrt (+ x 1.0)) (cbrt x)))