\sqrt[3]{x + 1} - \sqrt[3]{x}
\begin{array}{l}
t_0 := \sqrt[3]{x + 1}\\
\mathbf{if}\;t_0 - \sqrt[3]{x} \leq 0.000821547002082923:\\
\;\;\;\;\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}:\\
\;\;\;\;\log \left(e^{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)) 0.000821547002082923)
(+
(* (/ (cbrt x) x) (- 0.3333333333333333 (/ 0.1111111111111111 x)))
(* 0.06172839506172839 (/ (cbrt x) (pow x 3.0))))
(log (exp (- 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)) <= 0.000821547002082923) {
tmp = ((cbrt(x) / x) * (0.3333333333333333 - (0.1111111111111111 / x))) + (0.06172839506172839 * (cbrt(x) / pow(x, 3.0)));
} else {
tmp = log(exp(t_0 - cbrt(cbrt(x) * (cbrt(x) * cbrt(x)))));
}
return tmp;
}



Bits error versus x
Results
if (-.f64 (cbrt.f64 (+.f64 x 1)) (cbrt.f64 x)) < 8.2154700208292e-4Initial program 60.3
Applied add-cube-cbrt_binary6460.4
Applied cbrt-prod_binary6460.5
Taylor expanded in x around -inf 64.0
Simplified0.6
if 8.2154700208292e-4 < (-.f64 (cbrt.f64 (+.f64 x 1)) (cbrt.f64 x)) Initial program 0.1
Applied add-log-exp_binary640.2
Applied add-log-exp_binary640.2
Applied diff-log_binary640.2
Simplified0.1
Applied add-cbrt-cube_binary640.1
Final simplification0.4
herbie shell --seed 2021313
(FPCore (x)
:name "2cbrt (problem 3.3.4)"
:precision binary64
(- (cbrt (+ x 1.0)) (cbrt x)))