\sqrt[3]{x + 1} - \sqrt[3]{x}\begin{array}{l}
\mathbf{if}\;x \le -4.45593027296653583 \cdot 10^{61}:\\
\;\;\;\;e^{\log \left(\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)\right)}\\
\mathbf{elif}\;x \le 3103.3891723919032:\\
\;\;\;\;e^{\log \left(\frac{\sqrt[3]{x \cdot x - 1 \cdot 1}}{\sqrt[3]{x - 1}} - \sqrt[3]{x}\right)}\\
\mathbf{else}:\\
\;\;\;\;e^{\mathsf{fma}\left(0.18518518518518517, \frac{1}{{x}^{2}}, \left(\log \left(\frac{1}{x}\right) + \log \left(0.333333333333333315 \cdot {x}^{\frac{1}{3}}\right)\right) - \mathsf{fma}\left(0.006172839506172839, \frac{1}{{x}^{2} \cdot {0.333333333333333315}^{2}}, 0.333333333333333315 \cdot \frac{1}{x}\right)\right)}\\
\end{array}double code(double x) {
return (cbrt((x + 1.0)) - cbrt(x));
}
double code(double x) {
double VAR;
if ((x <= -4.455930272966536e+61)) {
VAR = exp(log(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 VAR_1;
if ((x <= 3103.3891723919032)) {
VAR_1 = exp(log(((cbrt(((x * x) - (1.0 * 1.0))) / cbrt((x - 1.0))) - cbrt(x))));
} else {
VAR_1 = exp(fma(0.18518518518518517, (1.0 / pow(x, 2.0)), ((log((1.0 / x)) + log((0.3333333333333333 * pow(x, 0.3333333333333333)))) - fma(0.006172839506172839, (1.0 / (pow(x, 2.0) * pow(0.3333333333333333, 2.0))), (0.3333333333333333 * (1.0 / x))))));
}
VAR = VAR_1;
}
return VAR;
}



Bits error versus x
Results
if x < -4.455930272966536e+61Initial program 61.2
rmApplied add-exp-log61.2
Taylor expanded around inf 41.2
Simplified41.2
if -4.455930272966536e+61 < x < 3103.3891723919032Initial program 4.8
rmApplied add-exp-log4.8
rmApplied flip-+4.8
Applied cbrt-div4.8
if 3103.3891723919032 < x Initial program 60.1
rmApplied add-exp-log60.1
Taylor expanded around inf 5.9
Simplified5.9
Final simplification12.4
herbie shell --seed 2020078 +o rules:numerics
(FPCore (x)
:name "2cbrt (problem 3.3.4)"
:precision binary64
(- (cbrt (+ x 1)) (cbrt x)))