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



Bits error versus x
if x < -0.989053025763230065Initial program 59.7
Taylor expanded in x around inf 45.9
Simplified33.0
if -0.989053025763230065 < x < 0.00771464961447389849Initial program 0.0
Applied pow1/3_binary640.0
if 0.00771464961447389849 < x Initial program 59.1
Applied flip3--_binary6459.0
Simplified1.0
Simplified4.5
Final simplification9.7
herbie shell --seed 2022067
(FPCore (x)
:name "2cbrt (problem 3.3.4)"
:precision binary64
(- (cbrt (+ x 1.0)) (cbrt x)))