\sqrt[3]{x + 1} - \sqrt[3]{x}\begin{array}{l}
\mathbf{if}\;x \leq 2.0439667465683408 \cdot 10^{-08}:\\
\;\;\;\;\sqrt[3]{x + 1} - \sqrt[3]{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{{x}^{0.6666666666666666} + \sqrt[3]{x + 1} \cdot \left(\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 (<= x 2.0439667465683408e-08)
(- (cbrt (+ x 1.0)) (cbrt x))
(/
1.0
(+
(pow x 0.6666666666666666)
(* (cbrt (+ 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 <= 2.0439667465683408e-08) {
tmp = cbrt(x + 1.0) - cbrt(x);
} else {
tmp = 1.0 / (pow(x, 0.6666666666666666) + (cbrt(x + 1.0) * (cbrt(x + 1.0) + cbrt(x))));
}
return tmp;
}



Bits error versus x
Results
if x < 2.0439667465683408e-8Initial program 19.7
if 2.0439667465683408e-8 < x Initial program 57.9
rmApplied flip3--_binary64_42357.8
Simplified1.0
Simplified4.4
Final simplification15.8
herbie shell --seed 2020353
(FPCore (x)
:name "2cbrt (problem 3.3.4)"
:precision binary64
(- (cbrt (+ x 1.0)) (cbrt x)))