\sqrt[3]{x + 1} - \sqrt[3]{x}\begin{array}{l}
\mathbf{if}\;x \le -4.51522985699883181 \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 3308.7385413926622:\\
\;\;\;\;\frac{\sqrt[3]{x + 1} \cdot \sqrt[3]{x + 1} - \sqrt[3]{x} \cdot \left(\sqrt[3]{\sqrt[3]{x} \cdot \sqrt[3]{x}} \cdot \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} + \left(\sqrt[3]{\sqrt[3]{x}} \cdot \sqrt[3]{\sqrt[3]{x}}\right) \cdot \sqrt[3]{\sqrt[3]{x}}}\\
\end{array}double code(double x) {
return (cbrt((x + 1.0)) - cbrt(x));
}
double code(double x) {
double temp;
if ((x <= -4.515229856998832e+61)) {
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 {
double temp_1;
if ((x <= 3308.7385413926622)) {
temp_1 = (((cbrt((x + 1.0)) * cbrt((x + 1.0))) - (cbrt(x) * (cbrt((cbrt(x) * cbrt(x))) * cbrt(cbrt(x))))) / (cbrt((x + 1.0)) + cbrt(x)));
} else {
temp_1 = (fma(pow((1.0 / pow(x, 7.0)), 0.3333333333333333), 0.04938271604938271, ((0.6666666666666666 * pow((1.0 / x), 0.3333333333333333)) - (0.1111111111111111 * pow((1.0 / pow(x, 4.0)), 0.3333333333333333)))) / (cbrt((x + 1.0)) + ((cbrt(cbrt(x)) * cbrt(cbrt(x))) * cbrt(cbrt(x)))));
}
temp = temp_1;
}
return temp;
}



Bits error versus x
Results
if x < -4.515229856998832e+61Initial program 61.2
Taylor expanded around inf 40.2
Simplified40.2
if -4.515229856998832e+61 < x < 3308.7385413926622Initial program 5.2
rmApplied flip--5.2
rmApplied add-cube-cbrt5.2
Applied cbrt-prod5.1
if 3308.7385413926622 < x Initial program 60.2
rmApplied flip--60.2
rmApplied add-cube-cbrt60.2
Taylor expanded around inf 5.0
Simplified5.0
Final simplification12.4
herbie shell --seed 2020049 +o rules:numerics
(FPCore (x)
:name "2cbrt (problem 3.3.4)"
:precision binary64
(- (cbrt (+ x 1)) (cbrt x)))