\sqrt[3]{x + 1} - \sqrt[3]{x}\begin{array}{l}
\mathbf{if}\;x \le -4.4487307694570092 \cdot 10^{61}:\\
\;\;\;\;\left(0.333333333333333315 \cdot {\left(\frac{1}{{x}^{2}}\right)}^{\frac{1}{3}} + 0.061728395061728392 \cdot {\left(\frac{1}{{x}^{8}}\right)}^{\frac{1}{3}}\right) - 0.1111111111111111 \cdot {\left(\frac{1}{{x}^{5}}\right)}^{\frac{1}{3}}\\
\mathbf{elif}\;x \le 0.0249814200301192342:\\
\;\;\;\;\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{0 + 1}{\sqrt[3]{x + 1} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right) + {x}^{\frac{2}{3}}}\\
\end{array}double code(double x) {
return (cbrt((x + 1.0)) - cbrt(x));
}
double code(double x) {
double temp;
if ((x <= -4.448730769457009e+61)) {
temp = (((0.3333333333333333 * pow((1.0 / pow(x, 2.0)), 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 <= 0.024981420030119234)) {
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 = ((0.0 + 1.0) / ((cbrt((x + 1.0)) * (cbrt((x + 1.0)) + cbrt(x))) + pow(x, 0.6666666666666666)));
}
temp = temp_1;
}
return temp;
}



Bits error versus x
Results
if x < -4.448730769457009e+61Initial program 61.2
Taylor expanded around inf 41.8
if -4.448730769457009e+61 < x < 0.024981420030119234Initial program 4.5
rmApplied flip--4.5
rmApplied add-cube-cbrt4.5
Applied cbrt-prod4.4
if 0.024981420030119234 < x Initial program 59.3
rmApplied flip3--59.2
Simplified1.0
Simplified4.5
Final simplification11.9
herbie shell --seed 2020058
(FPCore (x)
:name "2cbrt (problem 3.3.4)"
:precision binary64
(- (cbrt (+ x 1)) (cbrt x)))