\sqrt[3]{x + 1} - \sqrt[3]{x}\begin{array}{l}
\mathbf{if}\;x \leq -0.9930234061643127:\\
\;\;\;\;\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 5.878760985559579 \cdot 10^{-23}:\\
\;\;\;\;{\left(x + 1\right)}^{0.3333333333333333} - \sqrt[3]{x}\\
\mathbf{else}:\\
\;\;\;\;\frac{1}{{x}^{0.6666666666666666} + \sqrt[3]{x + 1} \cdot \left(\sqrt[3]{x} + \sqrt[3]{x + 1}\right)}\\
\end{array}(FPCore (x) :precision binary64 (- (cbrt (+ x 1.0)) (cbrt x)))
(FPCore (x)
:precision binary64
(if (<= x -0.9930234061643127)
(+
(-
(* 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 5.878760985559579e-23)
(- (pow (+ x 1.0) 0.3333333333333333) (cbrt x))
(/
1.0
(+
(pow x 0.6666666666666666)
(* (cbrt (+ x 1.0)) (+ (cbrt x) (cbrt (+ x 1.0)))))))))double code(double x) {
return cbrt(x + 1.0) - cbrt(x);
}
double code(double x) {
double tmp;
if (x <= -0.9930234061643127) {
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 <= 5.878760985559579e-23) {
tmp = pow((x + 1.0), 0.3333333333333333) - cbrt(x);
} else {
tmp = 1.0 / (pow(x, 0.6666666666666666) + (cbrt(x + 1.0) * (cbrt(x) + cbrt(x + 1.0))));
}
return tmp;
}



Bits error versus x
Results
if x < -0.993023406164312727Initial program 59.5
Taylor expanded around inf 45.4
Simplified31.6
if -0.993023406164312727 < x < 5.8787609855595787e-23Initial program 0.0
rmApplied pow1/3_binary64_5010.0
if 5.8787609855595787e-23 < x Initial program 55.3
rmApplied flip3--_binary64_42355.1
Simplified1.0
Simplified4.2
Final simplification8.9
herbie shell --seed 2021040
(FPCore (x)
:name "2cbrt (problem 3.3.4)"
:precision binary64
(- (cbrt (+ x 1.0)) (cbrt x)))