\sqrt[3]{x + 1} - \sqrt[3]{x}\begin{array}{l}
\mathbf{if}\;x \le -4.4788638807140642 \cdot 10^{61} \lor \neg \left(x \le 4007.8839921622375\right):\\
\;\;\;\;\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{else}:\\
\;\;\;\;\mathsf{fma}\left(\sqrt[3]{\sqrt[3]{x + 1}} \cdot \sqrt[3]{\sqrt[3]{x + 1}}, \sqrt[3]{\sqrt[3]{x + 1}}, -\sqrt[3]{x}\right)\\
\end{array}double code(double x) {
return (cbrt((x + 1.0)) - cbrt(x));
}
double code(double x) {
double temp;
if (((x <= -4.478863880714064e+61) || !(x <= 4007.8839921622375))) {
temp = fma(pow((1.0 / pow(x, 2.0)), 0.3333333333333333), 0.3333333333333333, ((0.06172839506172839 * pow((1.0 / pow(x, 8.0)), 0.3333333333333333)) - (0.1111111111111111 * pow((1.0 / pow(x, 5.0)), 0.3333333333333333))));
} else {
temp = fma((cbrt(cbrt((x + 1.0))) * cbrt(cbrt((x + 1.0)))), cbrt(cbrt((x + 1.0))), -cbrt(x));
}
return temp;
}



Bits error versus x
Results
if x < -4.478863880714064e+61 or 4007.8839921622375 < x Initial program 60.5
Taylor expanded around inf 36.5
Simplified36.5
if -4.478863880714064e+61 < x < 4007.8839921622375Initial program 4.9
rmApplied add-cube-cbrt4.9
Applied fma-neg4.9
Final simplification19.1
herbie shell --seed 2020056 +o rules:numerics
(FPCore (x)
:name "2cbrt (problem 3.3.4)"
:precision binary64
(- (cbrt (+ x 1)) (cbrt x)))