\sqrt[3]{x + 1} - \sqrt[3]{x}\begin{array}{l}
\mathbf{if}\;x \leq -3037.243172140669:\\
\;\;\;\;\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 8.308058553943675 \cdot 10^{-07}:\\
\;\;\;\;\sqrt[3]{x + 1} - \sqrt[3]{\sqrt[3]{x}} \cdot \left(\sqrt[3]{\sqrt[3]{x}} \cdot \sqrt[3]{\sqrt[3]{x}}\right)\\
\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 -3037.243172140669)
(-
(+
(* 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 8.308058553943675e-07)
(-
(cbrt (+ x 1.0))
(* (cbrt (cbrt x)) (* (cbrt (cbrt x)) (cbrt (cbrt x)))))
(/
1.0
(+
(pow x 0.6666666666666666)
(* (cbrt (+ x 1.0)) (+ (cbrt (+ x 1.0)) (cbrt x))))))))double code(double x) {
return ((double) (((double) cbrt(((double) (x + 1.0)))) - ((double) cbrt(x))));
}
double code(double x) {
double tmp;
if ((x <= -3037.243172140669)) {
tmp = ((double) (((double) (((double) (0.3333333333333333 * ((double) cbrt((1.0 / ((double) (x * x))))))) + ((double) (0.06172839506172839 * ((double) cbrt((1.0 / ((double) pow(x, 8.0))))))))) - ((double) (0.1111111111111111 * ((double) cbrt((1.0 / ((double) pow(x, 5.0)))))))));
} else {
double tmp_1;
if ((x <= 8.308058553943675e-07)) {
tmp_1 = ((double) (((double) cbrt(((double) (x + 1.0)))) - ((double) (((double) cbrt(((double) cbrt(x)))) * ((double) (((double) cbrt(((double) cbrt(x)))) * ((double) cbrt(((double) cbrt(x))))))))));
} else {
tmp_1 = (1.0 / ((double) (((double) pow(x, 0.6666666666666666)) + ((double) (((double) cbrt(((double) (x + 1.0)))) * ((double) (((double) cbrt(((double) (x + 1.0)))) + ((double) cbrt(x)))))))));
}
tmp = tmp_1;
}
return tmp;
}



Bits error versus x
Results
if x < -3037.24317214066878Initial program 60.0
Taylor expanded around inf 45.1
Simplified31.7
if -3037.24317214066878 < x < 8.3080585539436754e-7Initial program 0.0
rmApplied add-cube-cbrt_binary640.1
if 8.3080585539436754e-7 < x Initial program 58.4
rmApplied flip3--_binary6458.3
Simplified1.0
Simplified4.5
Final simplification9.0
herbie shell --seed 2020210
(FPCore (x)
:name "2cbrt (problem 3.3.4)"
:precision binary64
(- (cbrt (+ x 1.0)) (cbrt x)))