Average Error: 29.5 → 0.6
Time: 6.3s
Precision: binary64
\[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
\[\begin{array}{l} t_0 := \sqrt[3]{1 + x}\\ t_1 := \sqrt[3]{t_0}\\ \frac{1}{t_0 \cdot t_0 + \left(\sqrt[3]{x} \cdot \sqrt[3]{x} + \sqrt[3]{x} \cdot \left(t_1 \cdot \left(t_1 \cdot t_1\right)\right)\right)} \end{array} \]
\sqrt[3]{x + 1} - \sqrt[3]{x}
\begin{array}{l}
t_0 := \sqrt[3]{1 + x}\\
t_1 := \sqrt[3]{t_0}\\
\frac{1}{t_0 \cdot t_0 + \left(\sqrt[3]{x} \cdot \sqrt[3]{x} + \sqrt[3]{x} \cdot \left(t_1 \cdot \left(t_1 \cdot t_1\right)\right)\right)}
\end{array}
(FPCore (x) :precision binary64 (- (cbrt (+ x 1.0)) (cbrt x)))
(FPCore (x)
 :precision binary64
 (let* ((t_0 (cbrt (+ 1.0 x))) (t_1 (cbrt t_0)))
   (/
    1.0
    (+
     (* t_0 t_0)
     (+ (* (cbrt x) (cbrt x)) (* (cbrt x) (* t_1 (* t_1 t_1))))))))
double code(double x) {
	return cbrt(x + 1.0) - cbrt(x);
}
double code(double x) {
	double t_0 = cbrt(1.0 + x);
	double t_1 = cbrt(t_0);
	return 1.0 / ((t_0 * t_0) + ((cbrt(x) * cbrt(x)) + (cbrt(x) * (t_1 * (t_1 * t_1)))));
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 29.5

    \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
  2. Applied flip3--_binary6429.4

    \[\leadsto \color{blue}{\frac{{\left(\sqrt[3]{x + 1}\right)}^{3} - {\left(\sqrt[3]{x}\right)}^{3}}{\sqrt[3]{x + 1} \cdot \sqrt[3]{x + 1} + \left(\sqrt[3]{x} \cdot \sqrt[3]{x} + \sqrt[3]{x + 1} \cdot \sqrt[3]{x}\right)}} \]
  3. Taylor expanded in x around 0 0.5

    \[\leadsto \frac{\color{blue}{1}}{\sqrt[3]{x + 1} \cdot \sqrt[3]{x + 1} + \left(\sqrt[3]{x} \cdot \sqrt[3]{x} + \sqrt[3]{x + 1} \cdot \sqrt[3]{x}\right)} \]
  4. Applied add-cube-cbrt_binary640.6

    \[\leadsto \frac{1}{\sqrt[3]{x + 1} \cdot \sqrt[3]{x + 1} + \left(\sqrt[3]{x} \cdot \sqrt[3]{x} + \color{blue}{\left(\left(\sqrt[3]{\sqrt[3]{x + 1}} \cdot \sqrt[3]{\sqrt[3]{x + 1}}\right) \cdot \sqrt[3]{\sqrt[3]{x + 1}}\right)} \cdot \sqrt[3]{x}\right)} \]
  5. Final simplification0.6

    \[\leadsto \frac{1}{\sqrt[3]{1 + x} \cdot \sqrt[3]{1 + x} + \left(\sqrt[3]{x} \cdot \sqrt[3]{x} + \sqrt[3]{x} \cdot \left(\sqrt[3]{\sqrt[3]{1 + x}} \cdot \left(\sqrt[3]{\sqrt[3]{1 + x}} \cdot \sqrt[3]{\sqrt[3]{1 + x}}\right)\right)\right)} \]

Reproduce

herbie shell --seed 2022068 
(FPCore (x)
  :name "2cbrt (problem 3.3.4)"
  :precision binary64
  (- (cbrt (+ x 1.0)) (cbrt x)))