2cbrt (problem 3.3.4)

?

Percentage Accurate: 53.9% → 99.5%
Time: 15.1s
Precision: binary64
Cost: 46340

?

\[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
\[\begin{array}{l} t_0 := \sqrt[3]{1 + x}\\ t_1 := \sqrt[3]{-{\left(\frac{-1}{x}\right)}^{-1}}\\ \mathbf{if}\;t_0 - \sqrt[3]{x} \leq 5 \cdot 10^{-6}:\\ \;\;\;\;\frac{0.3333333333333333 \cdot t_1}{x} + \frac{t_1}{x \cdot x} \cdot -0.1111111111111111\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(1 + x\right) - x}{\sqrt[3]{{\left(1 + x\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x} + t_0\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 (- (pow (/ -1.0 x) -1.0)))))
   (if (<= (- t_0 (cbrt x)) 5e-6)
     (+
      (/ (* 0.3333333333333333 t_1) x)
      (* (/ t_1 (* x x)) -0.1111111111111111))
     (/
      (- (+ 1.0 x) x)
      (+ (cbrt (pow (+ 1.0 x) 2.0)) (* (cbrt x) (+ (cbrt x) t_0)))))))
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(-pow((-1.0 / x), -1.0));
	double tmp;
	if ((t_0 - cbrt(x)) <= 5e-6) {
		tmp = ((0.3333333333333333 * t_1) / x) + ((t_1 / (x * x)) * -0.1111111111111111);
	} else {
		tmp = ((1.0 + x) - x) / (cbrt(pow((1.0 + x), 2.0)) + (cbrt(x) * (cbrt(x) + t_0)));
	}
	return tmp;
}
public static double code(double x) {
	return Math.cbrt((x + 1.0)) - Math.cbrt(x);
}
public static double code(double x) {
	double t_0 = Math.cbrt((1.0 + x));
	double t_1 = Math.cbrt(-Math.pow((-1.0 / x), -1.0));
	double tmp;
	if ((t_0 - Math.cbrt(x)) <= 5e-6) {
		tmp = ((0.3333333333333333 * t_1) / x) + ((t_1 / (x * x)) * -0.1111111111111111);
	} else {
		tmp = ((1.0 + x) - x) / (Math.cbrt(Math.pow((1.0 + x), 2.0)) + (Math.cbrt(x) * (Math.cbrt(x) + t_0)));
	}
	return tmp;
}
function code(x)
	return Float64(cbrt(Float64(x + 1.0)) - cbrt(x))
end
function code(x)
	t_0 = cbrt(Float64(1.0 + x))
	t_1 = cbrt(Float64(-(Float64(-1.0 / x) ^ -1.0)))
	tmp = 0.0
	if (Float64(t_0 - cbrt(x)) <= 5e-6)
		tmp = Float64(Float64(Float64(0.3333333333333333 * t_1) / x) + Float64(Float64(t_1 / Float64(x * x)) * -0.1111111111111111));
	else
		tmp = Float64(Float64(Float64(1.0 + x) - x) / Float64(cbrt((Float64(1.0 + x) ^ 2.0)) + Float64(cbrt(x) * Float64(cbrt(x) + t_0))));
	end
	return tmp
end
code[x_] := N[(N[Power[N[(x + 1.0), $MachinePrecision], 1/3], $MachinePrecision] - N[Power[x, 1/3], $MachinePrecision]), $MachinePrecision]
code[x_] := Block[{t$95$0 = N[Power[N[(1.0 + x), $MachinePrecision], 1/3], $MachinePrecision]}, Block[{t$95$1 = N[Power[(-N[Power[N[(-1.0 / x), $MachinePrecision], -1.0], $MachinePrecision]), 1/3], $MachinePrecision]}, If[LessEqual[N[(t$95$0 - N[Power[x, 1/3], $MachinePrecision]), $MachinePrecision], 5e-6], N[(N[(N[(0.3333333333333333 * t$95$1), $MachinePrecision] / x), $MachinePrecision] + N[(N[(t$95$1 / N[(x * x), $MachinePrecision]), $MachinePrecision] * -0.1111111111111111), $MachinePrecision]), $MachinePrecision], N[(N[(N[(1.0 + x), $MachinePrecision] - x), $MachinePrecision] / N[(N[Power[N[Power[N[(1.0 + x), $MachinePrecision], 2.0], $MachinePrecision], 1/3], $MachinePrecision] + N[(N[Power[x, 1/3], $MachinePrecision] * N[(N[Power[x, 1/3], $MachinePrecision] + t$95$0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\sqrt[3]{x + 1} - \sqrt[3]{x}
\begin{array}{l}
t_0 := \sqrt[3]{1 + x}\\
t_1 := \sqrt[3]{-{\left(\frac{-1}{x}\right)}^{-1}}\\
\mathbf{if}\;t_0 - \sqrt[3]{x} \leq 5 \cdot 10^{-6}:\\
\;\;\;\;\frac{0.3333333333333333 \cdot t_1}{x} + \frac{t_1}{x \cdot x} \cdot -0.1111111111111111\\

\mathbf{else}:\\
\;\;\;\;\frac{\left(1 + x\right) - x}{\sqrt[3]{{\left(1 + x\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x} + t_0\right)}\\


\end{array}

Local Percentage Accuracy vs ?

The average percentage accuracy by input value. Horizontal axis shows value of an input variable; the variable is choosen in the title. Vertical axis is accuracy; higher is better. Red represent the original program, while blue represents Herbie's suggestion. These can be toggled with buttons below the plot. The line is an average while dots represent individual samples.

Herbie found 14 alternatives:

AlternativeAccuracySpeedup

Accuracy vs Speed

The accuracy (vertical axis) and speed (horizontal axis) of each alternatives. Up and to the right is better. The red square shows the initial program, and each blue circle shows an alternative.The line shows the best available speed-accuracy tradeoffs.

Bogosity?

Bogosity

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation?

  1. Split input into 2 regimes
  2. if (-.f64 (cbrt.f64 (+.f64 x 1)) (cbrt.f64 x)) < 5.00000000000000041e-6

    1. Initial program 5.5%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Applied egg-rr5.3%

      \[\leadsto \color{blue}{\left({\left(x + 1\right)}^{0.16666666666666666} + {x}^{0.16666666666666666}\right) \cdot \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right)} \]
      Step-by-step derivation

      [Start]5.5%

      \[ \sqrt[3]{x + 1} - \sqrt[3]{x} \]

      add-sqr-sqrt [=>]5.0%

      \[ \color{blue}{\sqrt{\sqrt[3]{x + 1}} \cdot \sqrt{\sqrt[3]{x + 1}}} - \sqrt[3]{x} \]

      add-sqr-sqrt [=>]5.5%

      \[ \sqrt{\sqrt[3]{x + 1}} \cdot \sqrt{\sqrt[3]{x + 1}} - \color{blue}{\sqrt{\sqrt[3]{x}} \cdot \sqrt{\sqrt[3]{x}}} \]

      difference-of-squares [=>]5.5%

      \[ \color{blue}{\left(\sqrt{\sqrt[3]{x + 1}} + \sqrt{\sqrt[3]{x}}\right) \cdot \left(\sqrt{\sqrt[3]{x + 1}} - \sqrt{\sqrt[3]{x}}\right)} \]

      pow1/3 [=>]5.5%

      \[ \left(\sqrt{\color{blue}{{\left(x + 1\right)}^{0.3333333333333333}}} + \sqrt{\sqrt[3]{x}}\right) \cdot \left(\sqrt{\sqrt[3]{x + 1}} - \sqrt{\sqrt[3]{x}}\right) \]

      sqrt-pow1 [=>]5.5%

      \[ \left(\color{blue}{{\left(x + 1\right)}^{\left(\frac{0.3333333333333333}{2}\right)}} + \sqrt{\sqrt[3]{x}}\right) \cdot \left(\sqrt{\sqrt[3]{x + 1}} - \sqrt{\sqrt[3]{x}}\right) \]

      metadata-eval [=>]5.5%

      \[ \left({\left(x + 1\right)}^{\color{blue}{0.16666666666666666}} + \sqrt{\sqrt[3]{x}}\right) \cdot \left(\sqrt{\sqrt[3]{x + 1}} - \sqrt{\sqrt[3]{x}}\right) \]

      pow1/3 [=>]5.5%

      \[ \left({\left(x + 1\right)}^{0.16666666666666666} + \sqrt{\color{blue}{{x}^{0.3333333333333333}}}\right) \cdot \left(\sqrt{\sqrt[3]{x + 1}} - \sqrt{\sqrt[3]{x}}\right) \]

      sqrt-pow1 [=>]5.5%

      \[ \left({\left(x + 1\right)}^{0.16666666666666666} + \color{blue}{{x}^{\left(\frac{0.3333333333333333}{2}\right)}}\right) \cdot \left(\sqrt{\sqrt[3]{x + 1}} - \sqrt{\sqrt[3]{x}}\right) \]

      metadata-eval [=>]5.5%

      \[ \left({\left(x + 1\right)}^{0.16666666666666666} + {x}^{\color{blue}{0.16666666666666666}}\right) \cdot \left(\sqrt{\sqrt[3]{x + 1}} - \sqrt{\sqrt[3]{x}}\right) \]

      pow1/3 [=>]3.1%

      \[ \left({\left(x + 1\right)}^{0.16666666666666666} + {x}^{0.16666666666666666}\right) \cdot \left(\sqrt{\color{blue}{{\left(x + 1\right)}^{0.3333333333333333}}} - \sqrt{\sqrt[3]{x}}\right) \]

      sqrt-pow1 [=>]3.0%

      \[ \left({\left(x + 1\right)}^{0.16666666666666666} + {x}^{0.16666666666666666}\right) \cdot \left(\color{blue}{{\left(x + 1\right)}^{\left(\frac{0.3333333333333333}{2}\right)}} - \sqrt{\sqrt[3]{x}}\right) \]

      metadata-eval [=>]3.0%

      \[ \left({\left(x + 1\right)}^{0.16666666666666666} + {x}^{0.16666666666666666}\right) \cdot \left({\left(x + 1\right)}^{\color{blue}{0.16666666666666666}} - \sqrt{\sqrt[3]{x}}\right) \]

      pow1/3 [=>]5.4%

      \[ \left({\left(x + 1\right)}^{0.16666666666666666} + {x}^{0.16666666666666666}\right) \cdot \left({\left(x + 1\right)}^{0.16666666666666666} - \sqrt{\color{blue}{{x}^{0.3333333333333333}}}\right) \]

      sqrt-pow1 [=>]5.3%

      \[ \left({\left(x + 1\right)}^{0.16666666666666666} + {x}^{0.16666666666666666}\right) \cdot \left({\left(x + 1\right)}^{0.16666666666666666} - \color{blue}{{x}^{\left(\frac{0.3333333333333333}{2}\right)}}\right) \]

      metadata-eval [=>]5.3%

      \[ \left({\left(x + 1\right)}^{0.16666666666666666} + {x}^{0.16666666666666666}\right) \cdot \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{\color{blue}{0.16666666666666666}}\right) \]
    3. Taylor expanded in x around -inf 0.0%

      \[\leadsto \color{blue}{0.027777777777777776 \cdot \frac{{\left(e^{0.16666666666666666 \cdot \left(-1 \cdot \log \left(\frac{-1}{x}\right) + \log -1\right)}\right)}^{2}}{{x}^{2}} + \left(-0.1388888888888889 \cdot \frac{{\left(e^{0.16666666666666666 \cdot \left(-1 \cdot \log \left(\frac{-1}{x}\right) + \log -1\right)}\right)}^{2}}{{x}^{2}} + 0.3333333333333333 \cdot \frac{{\left(e^{0.16666666666666666 \cdot \left(-1 \cdot \log \left(\frac{-1}{x}\right) + \log -1\right)}\right)}^{2}}{x}\right)} \]
    4. Simplified99.1%

      \[\leadsto \color{blue}{\frac{0.3333333333333333 \cdot \sqrt[3]{-1 \cdot {\left(\frac{-1}{x}\right)}^{-1}}}{x} + \frac{\sqrt[3]{-1 \cdot {\left(\frac{-1}{x}\right)}^{-1}}}{x \cdot x} \cdot -0.1111111111111111} \]
      Step-by-step derivation

      [Start]0.0%

      \[ 0.027777777777777776 \cdot \frac{{\left(e^{0.16666666666666666 \cdot \left(-1 \cdot \log \left(\frac{-1}{x}\right) + \log -1\right)}\right)}^{2}}{{x}^{2}} + \left(-0.1388888888888889 \cdot \frac{{\left(e^{0.16666666666666666 \cdot \left(-1 \cdot \log \left(\frac{-1}{x}\right) + \log -1\right)}\right)}^{2}}{{x}^{2}} + 0.3333333333333333 \cdot \frac{{\left(e^{0.16666666666666666 \cdot \left(-1 \cdot \log \left(\frac{-1}{x}\right) + \log -1\right)}\right)}^{2}}{x}\right) \]

      +-commutative [=>]0.0%

      \[ 0.027777777777777776 \cdot \frac{{\left(e^{0.16666666666666666 \cdot \left(-1 \cdot \log \left(\frac{-1}{x}\right) + \log -1\right)}\right)}^{2}}{{x}^{2}} + \color{blue}{\left(0.3333333333333333 \cdot \frac{{\left(e^{0.16666666666666666 \cdot \left(-1 \cdot \log \left(\frac{-1}{x}\right) + \log -1\right)}\right)}^{2}}{x} + -0.1388888888888889 \cdot \frac{{\left(e^{0.16666666666666666 \cdot \left(-1 \cdot \log \left(\frac{-1}{x}\right) + \log -1\right)}\right)}^{2}}{{x}^{2}}\right)} \]

      associate-+r+ [=>]0.0%

      \[ \color{blue}{\left(0.027777777777777776 \cdot \frac{{\left(e^{0.16666666666666666 \cdot \left(-1 \cdot \log \left(\frac{-1}{x}\right) + \log -1\right)}\right)}^{2}}{{x}^{2}} + 0.3333333333333333 \cdot \frac{{\left(e^{0.16666666666666666 \cdot \left(-1 \cdot \log \left(\frac{-1}{x}\right) + \log -1\right)}\right)}^{2}}{x}\right) + -0.1388888888888889 \cdot \frac{{\left(e^{0.16666666666666666 \cdot \left(-1 \cdot \log \left(\frac{-1}{x}\right) + \log -1\right)}\right)}^{2}}{{x}^{2}}} \]

      +-commutative [=>]0.0%

      \[ \color{blue}{\left(0.3333333333333333 \cdot \frac{{\left(e^{0.16666666666666666 \cdot \left(-1 \cdot \log \left(\frac{-1}{x}\right) + \log -1\right)}\right)}^{2}}{x} + 0.027777777777777776 \cdot \frac{{\left(e^{0.16666666666666666 \cdot \left(-1 \cdot \log \left(\frac{-1}{x}\right) + \log -1\right)}\right)}^{2}}{{x}^{2}}\right)} + -0.1388888888888889 \cdot \frac{{\left(e^{0.16666666666666666 \cdot \left(-1 \cdot \log \left(\frac{-1}{x}\right) + \log -1\right)}\right)}^{2}}{{x}^{2}} \]

    if 5.00000000000000041e-6 < (-.f64 (cbrt.f64 (+.f64 x 1)) (cbrt.f64 x))

    1. Initial program 99.7%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Applied egg-rr99.9%

      \[\leadsto \color{blue}{\frac{\left(x + 1\right) - x}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)}} \]
      Step-by-step derivation

      [Start]99.7%

      \[ \sqrt[3]{x + 1} - \sqrt[3]{x} \]

      flip3-- [=>]99.6%

      \[ \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)}} \]

      rem-cube-cbrt [=>]99.6%

      \[ \frac{\color{blue}{\left(x + 1\right)} - {\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)} \]

      rem-cube-cbrt [=>]99.8%

      \[ \frac{\left(x + 1\right) - \color{blue}{x}}{\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)} \]

      cbrt-unprod [=>]99.9%

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

      pow2 [=>]99.9%

      \[ \frac{\left(x + 1\right) - x}{\sqrt[3]{\color{blue}{{\left(x + 1\right)}^{2}}} + \left(\sqrt[3]{x} \cdot \sqrt[3]{x} + \sqrt[3]{x + 1} \cdot \sqrt[3]{x}\right)} \]

      distribute-rgt-out [=>]99.9%

      \[ \frac{\left(x + 1\right) - x}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \color{blue}{\sqrt[3]{x} \cdot \left(\sqrt[3]{x} + \sqrt[3]{x + 1}\right)}} \]

      +-commutative [<=]99.9%

      \[ \frac{\left(x + 1\right) - x}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \sqrt[3]{x} \cdot \color{blue}{\left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification99.5%

    \[\leadsto \begin{array}{l} \mathbf{if}\;\sqrt[3]{1 + x} - \sqrt[3]{x} \leq 5 \cdot 10^{-6}:\\ \;\;\;\;\frac{0.3333333333333333 \cdot \sqrt[3]{-{\left(\frac{-1}{x}\right)}^{-1}}}{x} + \frac{\sqrt[3]{-{\left(\frac{-1}{x}\right)}^{-1}}}{x \cdot x} \cdot -0.1111111111111111\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(1 + x\right) - x}{\sqrt[3]{{\left(1 + x\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x} + \sqrt[3]{1 + x}\right)}\\ \end{array} \]

Alternatives

Alternative 1
Accuracy99.5%
Cost46340
\[\begin{array}{l} t_0 := \sqrt[3]{1 + x}\\ t_1 := \sqrt[3]{-{\left(\frac{-1}{x}\right)}^{-1}}\\ \mathbf{if}\;t_0 - \sqrt[3]{x} \leq 5 \cdot 10^{-6}:\\ \;\;\;\;\frac{0.3333333333333333 \cdot t_1}{x} + \frac{t_1}{x \cdot x} \cdot -0.1111111111111111\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(1 + x\right) - x}{\sqrt[3]{{\left(1 + x\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x} + t_0\right)}\\ \end{array} \]
Alternative 2
Accuracy99.2%
Cost58496
\[\begin{array}{l} t_0 := \sqrt[3]{1 + x}\\ t_1 := \sqrt[3]{\sqrt{x}}\\ \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, t_0 + t_1 \cdot t_1, {t_0}^{2}\right)} \end{array} \]
Alternative 3
Accuracy99.4%
Cost39940
\[\begin{array}{l} t_0 := \sqrt[3]{1 + x}\\ \mathbf{if}\;t_0 - \sqrt[3]{x} \leq 5 \cdot 10^{-11}:\\ \;\;\;\;\frac{0.3333333333333333 \cdot \sqrt[3]{-{\left(\frac{-1}{x}\right)}^{-1}}}{x}\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(1 + x\right) - x}{\sqrt[3]{x} \cdot \left(\sqrt[3]{x} + t_0\right) + {\left(1 + x\right)}^{0.6666666666666666}}\\ \end{array} \]
Alternative 4
Accuracy99.2%
Cost39168
\[\begin{array}{l} t_0 := \sqrt[3]{1 + x}\\ \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x} + t_0, {t_0}^{2}\right)} \end{array} \]
Alternative 5
Accuracy99.4%
Cost33284
\[\begin{array}{l} \mathbf{if}\;x \leq 5 \cdot 10^{+46}:\\ \;\;\;\;\frac{1 + \left(x - x\right)}{\sqrt[3]{{\left(1 + x\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x} + \sqrt[3]{1 + x}\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{0.3333333333333333 \cdot \sqrt[3]{-{\left(\frac{-1}{x}\right)}^{-1}}}{x}\\ \end{array} \]
Alternative 6
Accuracy99.5%
Cost27076
\[\begin{array}{l} t_0 := \sqrt[3]{-{\left(\frac{-1}{x}\right)}^{-1}}\\ \mathbf{if}\;x \leq 20000000:\\ \;\;\;\;\frac{\left(1 + x\right) - x}{\sqrt[3]{x} \cdot \left(\sqrt[3]{x} + \sqrt[3]{1 + x}\right) + {\left(1 + x\right)}^{0.6666666666666666}}\\ \mathbf{else}:\\ \;\;\;\;\frac{0.3333333333333333 \cdot t_0}{x} + \frac{t_0}{x \cdot x} \cdot -0.1111111111111111\\ \end{array} \]
Alternative 7
Accuracy99.1%
Cost26564
\[\begin{array}{l} \mathbf{if}\;\sqrt[3]{1 + x} - \sqrt[3]{x} \leq 2 \cdot 10^{-6}:\\ \;\;\;\;\frac{0.3333333333333333 \cdot \sqrt[3]{-{\left(\frac{-1}{x}\right)}^{-1}}}{x}\\ \mathbf{else}:\\ \;\;\;\;{\left(1 + x\right)}^{0.3333333333333333} + \left(0 - {x}^{0.3333333333333333}\right)\\ \end{array} \]
Alternative 8
Accuracy76.1%
Cost13508
\[\begin{array}{l} \mathbf{if}\;x \leq 52000000:\\ \;\;\;\;{\left(1 + x\right)}^{0.3333333333333333} + \left(0 - {x}^{0.3333333333333333}\right)\\ \mathbf{else}:\\ \;\;\;\;0.3333333333333333 \cdot \sqrt[3]{\frac{1}{x \cdot x}}\\ \end{array} \]
Alternative 9
Accuracy76.1%
Cost13252
\[\begin{array}{l} \mathbf{if}\;x \leq 39000000:\\ \;\;\;\;\sqrt[3]{1 + x} - \sqrt[3]{x}\\ \mathbf{else}:\\ \;\;\;\;0.3333333333333333 \cdot \sqrt[3]{\frac{1}{x \cdot x}}\\ \end{array} \]
Alternative 10
Accuracy74.6%
Cost6980
\[\begin{array}{l} \mathbf{if}\;x \leq 0.47:\\ \;\;\;\;1 - \sqrt[3]{x}\\ \mathbf{else}:\\ \;\;\;\;0.3333333333333333 \cdot \sqrt[3]{\frac{1}{x \cdot x}}\\ \end{array} \]
Alternative 11
Accuracy75.2%
Cost6980
\[\begin{array}{l} \mathbf{if}\;x \leq 1:\\ \;\;\;\;1 + \left(x \cdot 0.3333333333333333 - \sqrt[3]{x}\right)\\ \mathbf{else}:\\ \;\;\;\;0.3333333333333333 \cdot \sqrt[3]{\frac{1}{x \cdot x}}\\ \end{array} \]
Alternative 12
Accuracy52.6%
Cost6724
\[\begin{array}{l} \mathbf{if}\;x \leq 0.76:\\ \;\;\;\;1 - \sqrt[3]{x}\\ \mathbf{else}:\\ \;\;\;\;1\\ \end{array} \]
Alternative 13
Accuracy3.6%
Cost64
\[0 \]
Alternative 14
Accuracy50.4%
Cost64
\[1 \]

Reproduce?

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