\sqrt[3]{x + 1} - \sqrt[3]{x}\begin{array}{l}
\mathbf{if}\;x \leq -5278.93460564761:\\
\;\;\;\;\left(0.3333333333333333 \cdot \sqrt[3]{\frac{1}{x \cdot x}} - 0.1111111111111111 \cdot \sqrt[3]{\frac{1}{{x}^{5}}}\right) + 0.06172839506172839 \cdot \sqrt[3]{\frac{1}{{x}^{8}}}\\
\mathbf{elif}\;x \leq 0.20902176016577453:\\
\;\;\;\;\sqrt[3]{\sqrt[3]{x + 1} \cdot \left(\sqrt[3]{x + 1} \cdot \sqrt[3]{x + 1}\right)} - \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 -5278.93460564761)
(+
(-
(* 0.3333333333333333 (cbrt (/ 1.0 (* x x))))
(* 0.1111111111111111 (cbrt (/ 1.0 (pow x 5.0)))))
(* 0.06172839506172839 (cbrt (/ 1.0 (pow x 8.0)))))
(if (<= x 0.20902176016577453)
(-
(cbrt (* (cbrt (+ x 1.0)) (* (cbrt (+ x 1.0)) (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 <= -5278.93460564761) {
tmp = ((0.3333333333333333 * cbrt(1.0 / (x * x))) - (0.1111111111111111 * cbrt(1.0 / pow(x, 5.0)))) + (0.06172839506172839 * cbrt(1.0 / pow(x, 8.0)));
} else if (x <= 0.20902176016577453) {
tmp = cbrt(cbrt(x + 1.0) * (cbrt(x + 1.0) * 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 < -5278.9346056476097Initial program 60.4
Taylor expanded around inf 44.8
Simplified31.0
if -5278.9346056476097 < x < 0.209021760165774534Initial program 0.1
rmApplied add-cbrt-cube_binary64_4550.1
if 0.209021760165774534 < x Initial program 59.6
rmApplied flip3--_binary64_42359.4
Simplified1.0
Simplified4.5
Final simplification8.8
herbie shell --seed 2021047
(FPCore (x)
:name "2cbrt (problem 3.3.4)"
:precision binary64
(- (cbrt (+ x 1.0)) (cbrt x)))