\sqrt[3]{x + 1} - \sqrt[3]{x}
\begin{array}{l}
t_0 := \sqrt[3]{x + 1}\\
\mathbf{if}\;t_0 - \sqrt[3]{x} \leq 2.0969662585912374 \cdot 10^{-5}:\\
\;\;\;\;\frac{\sqrt[3]{x}}{x} \cdot \left(0.3333333333333333 - \frac{0.1111111111111111}{x}\right) + 0.06172839506172839 \cdot \frac{\sqrt[3]{x}}{{x}^{3}}\\
\mathbf{else}:\\
\;\;\;\;\mathsf{fma}\left(\sqrt[3]{t_0 \cdot t_0}, \sqrt[3]{t_0}, -\sqrt[3]{\sqrt[3]{x} \cdot \left(\sqrt[3]{x} \cdot \sqrt[3]{x}\right)}\right)\\
\end{array}
(FPCore (x) :precision binary64 (- (cbrt (+ x 1.0)) (cbrt x)))
(FPCore (x)
:precision binary64
(let* ((t_0 (cbrt (+ x 1.0))))
(if (<= (- t_0 (cbrt x)) 2.0969662585912374e-5)
(+
(* (/ (cbrt x) x) (- 0.3333333333333333 (/ 0.1111111111111111 x)))
(* 0.06172839506172839 (/ (cbrt x) (pow x 3.0))))
(fma
(cbrt (* t_0 t_0))
(cbrt t_0)
(- (cbrt (* (cbrt x) (* (cbrt x) (cbrt x)))))))))double code(double x) {
return cbrt(x + 1.0) - cbrt(x);
}
double code(double x) {
double t_0 = cbrt(x + 1.0);
double tmp;
if ((t_0 - cbrt(x)) <= 2.0969662585912374e-5) {
tmp = ((cbrt(x) / x) * (0.3333333333333333 - (0.1111111111111111 / x))) + (0.06172839506172839 * (cbrt(x) / pow(x, 3.0)));
} else {
tmp = fma(cbrt(t_0 * t_0), cbrt(t_0), -cbrt(cbrt(x) * (cbrt(x) * cbrt(x))));
}
return tmp;
}



Bits error versus x
if (-.f64 (cbrt.f64 (+.f64 x 1)) (cbrt.f64 x)) < 2.0969662586e-5Initial program 60.6
Applied add-cube-cbrt_binary6460.7
Applied cbrt-prod_binary6460.8
Taylor expanded in x around -inf 64.0
Simplified0.6
if 2.0969662586e-5 < (-.f64 (cbrt.f64 (+.f64 x 1)) (cbrt.f64 x)) Initial program 0.2
Applied add-cbrt-cube_binary640.2
Applied add-cube-cbrt_binary640.2
Applied cbrt-prod_binary640.3
Applied fma-neg_binary640.3
Final simplification0.4
herbie shell --seed 2022019
(FPCore (x)
:name "2cbrt (problem 3.3.4)"
:precision binary64
(- (cbrt (+ x 1.0)) (cbrt x)))