\sqrt[3]{x + 1} - \sqrt[3]{x}\begin{array}{l}
\mathbf{if}\;x \le -4.5086911354082924 \cdot 10^{61}:\\
\;\;\;\;\mathsf{fma}\left({\left(\frac{1}{{x}^{2}}\right)}^{\frac{1}{3}}, 0.333333333333333315, 0.061728395061728392 \cdot {\left(\frac{1}{{x}^{8}}\right)}^{\frac{1}{3}} - 0.1111111111111111 \cdot {\left(\frac{1}{{x}^{5}}\right)}^{\frac{1}{3}}\right)\\
\mathbf{elif}\;x \le 3932.66029113376089:\\
\;\;\;\;\frac{\mathsf{fma}\left(\sqrt[3]{\sqrt[3]{x + 1} \cdot \sqrt[3]{x + 1}}, \sqrt[3]{\sqrt[3]{x + 1}} \cdot \sqrt[3]{x + 1}, -\left(\sqrt[3]{\sqrt[3]{x}} \cdot \sqrt[3]{x}\right) \cdot \left(\sqrt[3]{\sqrt[3]{\sqrt[3]{x} \cdot \sqrt[3]{x}} \cdot \sqrt[3]{\sqrt[3]{x} \cdot \sqrt[3]{x}}} \cdot \sqrt[3]{\sqrt[3]{\sqrt[3]{x}} \cdot \sqrt[3]{\sqrt[3]{x}}}\right)\right) + \left(\sqrt[3]{x} \cdot \sqrt[3]{\sqrt[3]{x} \cdot \sqrt[3]{x}}\right) \cdot \left(\left(-\sqrt[3]{\sqrt[3]{x}}\right) + \sqrt[3]{\sqrt[3]{x}}\right)}{\sqrt[3]{x + 1} + \sqrt[3]{x}}\\
\mathbf{else}:\\
\;\;\;\;\frac{\mathsf{fma}\left({\left(\frac{1}{{x}^{7}}\right)}^{\frac{1}{3}}, 0.04938271604938271, 0.66666666666666663 \cdot {\left(\frac{1}{x}\right)}^{\frac{1}{3}} - 0.1111111111111111 \cdot {\left(\frac{1}{{x}^{4}}\right)}^{\frac{1}{3}}\right)}{\sqrt[3]{x + 1} + \sqrt[3]{x}}\\
\end{array}double code(double x) {
return ((double) (((double) cbrt(((double) (x + 1.0)))) - ((double) cbrt(x))));
}
double code(double x) {
double VAR;
if ((x <= -4.5086911354082924e+61)) {
VAR = ((double) fma(((double) pow(((double) (1.0 / ((double) pow(x, 2.0)))), 0.3333333333333333)), 0.3333333333333333, ((double) (((double) (0.06172839506172839 * ((double) pow(((double) (1.0 / ((double) pow(x, 8.0)))), 0.3333333333333333)))) - ((double) (0.1111111111111111 * ((double) pow(((double) (1.0 / ((double) pow(x, 5.0)))), 0.3333333333333333))))))));
} else {
double VAR_1;
if ((x <= 3932.660291133761)) {
VAR_1 = ((double) (((double) (((double) fma(((double) cbrt(((double) (((double) cbrt(((double) (x + 1.0)))) * ((double) cbrt(((double) (x + 1.0)))))))), ((double) (((double) cbrt(((double) cbrt(((double) (x + 1.0)))))) * ((double) cbrt(((double) (x + 1.0)))))), ((double) -(((double) (((double) (((double) cbrt(((double) cbrt(x)))) * ((double) cbrt(x)))) * ((double) (((double) cbrt(((double) (((double) cbrt(((double) (((double) cbrt(x)) * ((double) cbrt(x)))))) * ((double) cbrt(((double) (((double) cbrt(x)) * ((double) cbrt(x)))))))))) * ((double) cbrt(((double) (((double) cbrt(((double) cbrt(x)))) * ((double) cbrt(((double) cbrt(x)))))))))))))))) + ((double) (((double) (((double) cbrt(x)) * ((double) cbrt(((double) (((double) cbrt(x)) * ((double) cbrt(x)))))))) * ((double) (((double) -(((double) cbrt(((double) cbrt(x)))))) + ((double) cbrt(((double) cbrt(x)))))))))) / ((double) (((double) cbrt(((double) (x + 1.0)))) + ((double) cbrt(x))))));
} else {
VAR_1 = ((double) (((double) fma(((double) pow(((double) (1.0 / ((double) pow(x, 7.0)))), 0.3333333333333333)), 0.04938271604938271, ((double) (((double) (0.6666666666666666 * ((double) pow(((double) (1.0 / x)), 0.3333333333333333)))) - ((double) (0.1111111111111111 * ((double) pow(((double) (1.0 / ((double) pow(x, 4.0)))), 0.3333333333333333)))))))) / ((double) (((double) cbrt(((double) (x + 1.0)))) + ((double) cbrt(x))))));
}
VAR = VAR_1;
}
return VAR;
}



Bits error versus x
Results
if x < -4.5086911354082924e+61Initial program 61.2
Taylor expanded around inf 40.0
Simplified40.0
if -4.5086911354082924e+61 < x < 3932.660291133761Initial program 4.9
rmApplied flip--4.9
rmApplied add-cube-cbrt4.9
Applied cbrt-prod4.8
Applied associate-*r*4.8
Applied add-cube-cbrt4.8
Applied cbrt-prod4.9
Applied associate-*r*4.9
Applied prod-diff4.9
Simplified4.9
Simplified4.8
rmApplied add-cube-cbrt4.8
Applied cbrt-prod4.8
Applied add-cube-cbrt4.8
Applied cbrt-prod4.8
Applied swap-sqr4.8
Applied cbrt-prod4.8
if 3932.660291133761 < x Initial program 60.2
rmApplied flip--60.2
Taylor expanded around inf 5.1
Simplified5.1
Final simplification11.6
herbie shell --seed 2020113 +o rules:numerics
(FPCore (x)
:name "2cbrt (problem 3.3.4)"
:precision binary64
(- (cbrt (+ x 1)) (cbrt x)))