\sqrt[3]{x + 1} - \sqrt[3]{x}
\begin{array}{l}
t_0 := \sqrt[3]{x + 1}\\
t_1 := t_0 + \sqrt[3]{x}\\
t_2 := \frac{0.6666666666666666 \cdot \sqrt[3]{\frac{1}{x}}}{t_1}\\
\mathbf{if}\;x \leq -9.53569078558344 \cdot 10^{+65}:\\
\;\;\;\;t_2\\
\mathbf{elif}\;x \leq 5.23150834671369 \cdot 10^{+37}:\\
\;\;\;\;\frac{\left(x + \left(x + 1\right)\right) \cdot \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \mathsf{fma}\left(\sqrt[3]{x}, {t_0}^{2}, x\right), {t_0}^{4}\right)}}{t_1}\\
\mathbf{else}:\\
\;\;\;\;t_2\\
\end{array}
(FPCore (x) :precision binary64 (- (cbrt (+ x 1.0)) (cbrt x)))
(FPCore (x)
:precision binary64
(let* ((t_0 (cbrt (+ x 1.0)))
(t_1 (+ t_0 (cbrt x)))
(t_2 (/ (* 0.6666666666666666 (cbrt (/ 1.0 x))) t_1)))
(if (<= x -9.53569078558344e+65)
t_2
(if (<= x 5.23150834671369e+37)
(/
(*
(+ x (+ x 1.0))
(/ 1.0 (fma (cbrt x) (fma (cbrt x) (pow t_0 2.0) x) (pow t_0 4.0))))
t_1)
t_2))))double code(double x) {
return cbrt(x + 1.0) - cbrt(x);
}
double code(double x) {
double t_0 = cbrt(x + 1.0);
double t_1 = t_0 + cbrt(x);
double t_2 = (0.6666666666666666 * cbrt(1.0 / x)) / t_1;
double tmp;
if (x <= -9.53569078558344e+65) {
tmp = t_2;
} else if (x <= 5.23150834671369e+37) {
tmp = ((x + (x + 1.0)) * (1.0 / fma(cbrt(x), fma(cbrt(x), pow(t_0, 2.0), x), pow(t_0, 4.0)))) / t_1;
} else {
tmp = t_2;
}
return tmp;
}



Bits error versus x
if x < -9.53569078558344024e65 or 5.23150834671368982e37 < x Initial program 61.2
Applied flip--_binary6461.2
Taylor expanded in x around inf 32.9
Simplified1.0
if -9.53569078558344024e65 < x < 5.23150834671368982e37Initial program 6.6
Applied flip--_binary646.7
Applied flip3--_binary646.7
Simplified0.3
Simplified0.3
Applied div-inv_binary640.3
Final simplification0.6
herbie shell --seed 2022077
(FPCore (x)
:name "2cbrt (problem 3.3.4)"
:precision binary64
(- (cbrt (+ x 1.0)) (cbrt x)))