\sqrt[3]{x + 1} - \sqrt[3]{x}\begin{array}{l}
\mathbf{if}\;x \leq -4083.0155412597046:\\
\;\;\;\;\left(0.3333333333333333 \cdot \sqrt[3]{\frac{1}{x \cdot x}} + 0.06172839506172839 \cdot \sqrt[3]{\frac{1}{{x}^{8}}}\right) - 0.1111111111111111 \cdot \sqrt[3]{\frac{1}{{x}^{5}}}\\
\mathbf{elif}\;x \leq 2.485660549684957 \cdot 10^{-09}:\\
\;\;\;\;\sqrt[3]{\sqrt[3]{{\left(\sqrt[3]{x + 1}\right)}^{6}}} \cdot \sqrt[3]{\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 -4083.0155412597046)
(-
(+
(* 0.3333333333333333 (cbrt (/ 1.0 (* x x))))
(* 0.06172839506172839 (cbrt (/ 1.0 (pow x 8.0)))))
(* 0.1111111111111111 (cbrt (/ 1.0 (pow x 5.0)))))
(if (<= x 2.485660549684957e-09)
(-
(* (cbrt (cbrt (pow (cbrt (+ x 1.0)) 6.0))) (cbrt (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 <= -4083.0155412597046) {
tmp = ((0.3333333333333333 * cbrt(1.0 / (x * x))) + (0.06172839506172839 * cbrt(1.0 / pow(x, 8.0)))) - (0.1111111111111111 * cbrt(1.0 / pow(x, 5.0)));
} else if (x <= 2.485660549684957e-09) {
tmp = (cbrt(cbrt(pow(cbrt(x + 1.0), 6.0))) * cbrt(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 < -4083.01554125970461Initial program 60.2
Taylor expanded around inf 45.1
Simplified32.4
if -4083.01554125970461 < x < 2.48566054968495714e-9Initial program 0.1
rmApplied add-cube-cbrt_binary640.1
Applied cbrt-prod_binary640.1
rmApplied cbrt-unprod_binary640.1
Simplified0.1
if 2.48566054968495714e-9 < x Initial program 57.8
rmApplied flip3--_binary6457.6
Simplified1.0
Simplified4.4
Final simplification9.6
herbie shell --seed 2020219
(FPCore (x)
:name "2cbrt (problem 3.3.4)"
:precision binary64
(- (cbrt (+ x 1.0)) (cbrt x)))