2cbrt (problem 3.3.4)

Percentage Accurate: 53.4% → 99.2%
Time: 25.5s
Alternatives: 15
Speedup: 1.9×

Specification

?
\[\begin{array}{l} \\ \sqrt[3]{x + 1} - \sqrt[3]{x} \end{array} \]
(FPCore (x) :precision binary64 (- (cbrt (+ x 1.0)) (cbrt x)))
double code(double x) {
	return cbrt((x + 1.0)) - cbrt(x);
}
public static double code(double x) {
	return Math.cbrt((x + 1.0)) - Math.cbrt(x);
}
function code(x)
	return Float64(cbrt(Float64(x + 1.0)) - cbrt(x))
end
code[x_] := N[(N[Power[N[(x + 1.0), $MachinePrecision], 1/3], $MachinePrecision] - N[Power[x, 1/3], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Sampling outcomes in binary64 precision:

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.

Accuracy vs Speed?

Herbie found 15 alternatives:

AlternativeAccuracySpeedup
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.

Initial Program: 53.4% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \sqrt[3]{x + 1} - \sqrt[3]{x} \end{array} \]
(FPCore (x) :precision binary64 (- (cbrt (+ x 1.0)) (cbrt x)))
double code(double x) {
	return cbrt((x + 1.0)) - cbrt(x);
}
public static double code(double x) {
	return Math.cbrt((x + 1.0)) - Math.cbrt(x);
}
function code(x)
	return Float64(cbrt(Float64(x + 1.0)) - cbrt(x))
end
code[x_] := N[(N[Power[N[(x + 1.0), $MachinePrecision], 1/3], $MachinePrecision] - N[Power[x, 1/3], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

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

Alternative 1: 99.2% accurate, 0.3× speedup?

\[\begin{array}{l} \\ \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x} + \sqrt[3]{x - -1}, {\left(\frac{1}{\sqrt[3]{\frac{1}{1 + x}}}\right)}^{2}\right)} \end{array} \]
(FPCore (x)
 :precision binary64
 (/
  1.0
  (fma
   (cbrt x)
   (+ (cbrt x) (cbrt (- x -1.0)))
   (pow (/ 1.0 (cbrt (/ 1.0 (+ 1.0 x)))) 2.0))))
double code(double x) {
	return 1.0 / fma(cbrt(x), (cbrt(x) + cbrt((x - -1.0))), pow((1.0 / cbrt((1.0 / (1.0 + x)))), 2.0));
}
function code(x)
	return Float64(1.0 / fma(cbrt(x), Float64(cbrt(x) + cbrt(Float64(x - -1.0))), (Float64(1.0 / cbrt(Float64(1.0 / Float64(1.0 + x)))) ^ 2.0)))
end
code[x_] := N[(1.0 / N[(N[Power[x, 1/3], $MachinePrecision] * N[(N[Power[x, 1/3], $MachinePrecision] + N[Power[N[(x - -1.0), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision] + N[Power[N[(1.0 / N[Power[N[(1.0 / N[(1.0 + x), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
\frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x} + \sqrt[3]{x - -1}, {\left(\frac{1}{\sqrt[3]{\frac{1}{1 + x}}}\right)}^{2}\right)}
\end{array}
Derivation
  1. Initial program 50.8%

    \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
  2. Step-by-step derivation
    1. pow1/348.2%

      \[\leadsto \color{blue}{{\left(x + 1\right)}^{0.3333333333333333}} - \sqrt[3]{x} \]
    2. flip-+48.5%

      \[\leadsto {\color{blue}{\left(\frac{x \cdot x - 1 \cdot 1}{x - 1}\right)}}^{0.3333333333333333} - \sqrt[3]{x} \]
    3. div-inv48.5%

      \[\leadsto {\color{blue}{\left(\left(x \cdot x - 1 \cdot 1\right) \cdot \frac{1}{x - 1}\right)}}^{0.3333333333333333} - \sqrt[3]{x} \]
    4. unpow-prod-down2.1%

      \[\leadsto \color{blue}{{\left(x \cdot x - 1 \cdot 1\right)}^{0.3333333333333333} \cdot {\left(\frac{1}{x - 1}\right)}^{0.3333333333333333}} - \sqrt[3]{x} \]
    5. pow1/32.9%

      \[\leadsto \color{blue}{\sqrt[3]{x \cdot x - 1 \cdot 1}} \cdot {\left(\frac{1}{x - 1}\right)}^{0.3333333333333333} - \sqrt[3]{x} \]
    6. fma-neg2.9%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\sqrt[3]{x \cdot x - 1 \cdot 1}, {\left(\frac{1}{x - 1}\right)}^{0.3333333333333333}, -\sqrt[3]{x}\right)} \]
    7. metadata-eval2.9%

      \[\leadsto \mathsf{fma}\left(\sqrt[3]{x \cdot x - \color{blue}{1}}, {\left(\frac{1}{x - 1}\right)}^{0.3333333333333333}, -\sqrt[3]{x}\right) \]
    8. fma-neg2.9%

      \[\leadsto \mathsf{fma}\left(\sqrt[3]{\color{blue}{\mathsf{fma}\left(x, x, -1\right)}}, {\left(\frac{1}{x - 1}\right)}^{0.3333333333333333}, -\sqrt[3]{x}\right) \]
    9. metadata-eval2.9%

      \[\leadsto \mathsf{fma}\left(\sqrt[3]{\mathsf{fma}\left(x, x, \color{blue}{-1}\right)}, {\left(\frac{1}{x - 1}\right)}^{0.3333333333333333}, -\sqrt[3]{x}\right) \]
    10. sub-neg2.9%

      \[\leadsto \mathsf{fma}\left(\sqrt[3]{\mathsf{fma}\left(x, x, -1\right)}, {\left(\frac{1}{\color{blue}{x + \left(-1\right)}}\right)}^{0.3333333333333333}, -\sqrt[3]{x}\right) \]
    11. metadata-eval2.9%

      \[\leadsto \mathsf{fma}\left(\sqrt[3]{\mathsf{fma}\left(x, x, -1\right)}, {\left(\frac{1}{x + \color{blue}{-1}}\right)}^{0.3333333333333333}, -\sqrt[3]{x}\right) \]
  3. Applied egg-rr2.9%

    \[\leadsto \color{blue}{\mathsf{fma}\left(\sqrt[3]{\mathsf{fma}\left(x, x, -1\right)}, {\left(\frac{1}{x + -1}\right)}^{0.3333333333333333}, -\sqrt[3]{x}\right)} \]
  4. Applied egg-rr99.2%

    \[\leadsto \color{blue}{\frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, {\left(\sqrt[3]{x - -1}\right)}^{2}\right)}} \]
  5. Step-by-step derivation
    1. sub-neg99.2%

      \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, {\left(\sqrt[3]{\color{blue}{x + \left(--1\right)}}\right)}^{2}\right)} \]
    2. metadata-eval99.2%

      \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, {\left(\sqrt[3]{x + \color{blue}{1}}\right)}^{2}\right)} \]
    3. flip-+75.0%

      \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, {\left(\sqrt[3]{\color{blue}{\frac{x \cdot x - 1 \cdot 1}{x - 1}}}\right)}^{2}\right)} \]
    4. clear-num75.0%

      \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, {\left(\sqrt[3]{\color{blue}{\frac{1}{\frac{x - 1}{x \cdot x - 1 \cdot 1}}}}\right)}^{2}\right)} \]
    5. cbrt-div75.0%

      \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, {\color{blue}{\left(\frac{\sqrt[3]{1}}{\sqrt[3]{\frac{x - 1}{x \cdot x - 1 \cdot 1}}}\right)}}^{2}\right)} \]
    6. metadata-eval75.0%

      \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, {\left(\frac{\color{blue}{1}}{\sqrt[3]{\frac{x - 1}{x \cdot x - 1 \cdot 1}}}\right)}^{2}\right)} \]
    7. clear-num75.0%

      \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, {\left(\frac{1}{\sqrt[3]{\color{blue}{\frac{1}{\frac{x \cdot x - 1 \cdot 1}{x - 1}}}}}\right)}^{2}\right)} \]
    8. flip-+99.3%

      \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, {\left(\frac{1}{\sqrt[3]{\frac{1}{\color{blue}{x + 1}}}}\right)}^{2}\right)} \]
  6. Applied egg-rr99.3%

    \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, {\color{blue}{\left(\frac{1}{\sqrt[3]{\frac{1}{x + 1}}}\right)}}^{2}\right)} \]
  7. Final simplification99.3%

    \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x} + \sqrt[3]{x - -1}, {\left(\frac{1}{\sqrt[3]{\frac{1}{1 + x}}}\right)}^{2}\right)} \]

Alternative 2: 99.2% accurate, 0.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\sqrt[3]{1 + x} - \sqrt[3]{x} \leq 0:\\ \;\;\;\;0.3333333333333333 \cdot \frac{\sqrt[3]{\frac{-1}{x}}}{\sqrt[3]{-x}}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x} + \sqrt[3]{x - -1}, \sqrt[3]{{\left(1 + x\right)}^{2}}\right)}\\ \end{array} \end{array} \]
(FPCore (x)
 :precision binary64
 (if (<= (- (cbrt (+ 1.0 x)) (cbrt x)) 0.0)
   (* 0.3333333333333333 (/ (cbrt (/ -1.0 x)) (cbrt (- x))))
   (/
    1.0
    (fma (cbrt x) (+ (cbrt x) (cbrt (- x -1.0))) (cbrt (pow (+ 1.0 x) 2.0))))))
double code(double x) {
	double tmp;
	if ((cbrt((1.0 + x)) - cbrt(x)) <= 0.0) {
		tmp = 0.3333333333333333 * (cbrt((-1.0 / x)) / cbrt(-x));
	} else {
		tmp = 1.0 / fma(cbrt(x), (cbrt(x) + cbrt((x - -1.0))), cbrt(pow((1.0 + x), 2.0)));
	}
	return tmp;
}
function code(x)
	tmp = 0.0
	if (Float64(cbrt(Float64(1.0 + x)) - cbrt(x)) <= 0.0)
		tmp = Float64(0.3333333333333333 * Float64(cbrt(Float64(-1.0 / x)) / cbrt(Float64(-x))));
	else
		tmp = Float64(1.0 / fma(cbrt(x), Float64(cbrt(x) + cbrt(Float64(x - -1.0))), cbrt((Float64(1.0 + x) ^ 2.0))));
	end
	return tmp
end
code[x_] := If[LessEqual[N[(N[Power[N[(1.0 + x), $MachinePrecision], 1/3], $MachinePrecision] - N[Power[x, 1/3], $MachinePrecision]), $MachinePrecision], 0.0], N[(0.3333333333333333 * N[(N[Power[N[(-1.0 / x), $MachinePrecision], 1/3], $MachinePrecision] / N[Power[(-x), 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[Power[x, 1/3], $MachinePrecision] * N[(N[Power[x, 1/3], $MachinePrecision] + N[Power[N[(x - -1.0), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision] + N[Power[N[Power[N[(1.0 + x), $MachinePrecision], 2.0], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;\sqrt[3]{1 + x} - \sqrt[3]{x} \leq 0:\\
\;\;\;\;0.3333333333333333 \cdot \frac{\sqrt[3]{\frac{-1}{x}}}{\sqrt[3]{-x}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (-.f64 (cbrt.f64 (+.f64 x 1)) (cbrt.f64 x)) < 0.0

    1. Initial program 4.2%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Step-by-step derivation
      1. pow1/31.0%

        \[\leadsto \color{blue}{{\left(x + 1\right)}^{0.3333333333333333}} - \sqrt[3]{x} \]
      2. rem-cube-cbrt1.0%

        \[\leadsto {\color{blue}{\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}}^{0.3333333333333333} - \sqrt[3]{x} \]
      3. sqr-pow1.0%

        \[\leadsto \color{blue}{{\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}} - \sqrt[3]{x} \]
      4. pow1/32.1%

        \[\leadsto {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - \color{blue}{{x}^{0.3333333333333333}} \]
      5. sqr-pow2.2%

        \[\leadsto {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - \color{blue}{{x}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {x}^{\left(\frac{0.3333333333333333}{2}\right)}} \]
      6. difference-of-squares2.2%

        \[\leadsto \color{blue}{\left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      7. *-commutative2.2%

        \[\leadsto \color{blue}{\left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      8. rem-cube-cbrt2.2%

        \[\leadsto \left({\color{blue}{\left(x + 1\right)}}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      9. metadata-eval2.2%

        \[\leadsto \left({\left(x + 1\right)}^{\color{blue}{0.16666666666666666}} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      10. metadata-eval2.2%

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

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \color{blue}{\left({x}^{\left(\frac{0.3333333333333333}{2}\right)} + {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      12. metadata-eval2.2%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{\color{blue}{0.16666666666666666}} + {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      13. rem-cube-cbrt2.2%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{0.16666666666666666} + {\color{blue}{\left(x + 1\right)}}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      14. metadata-eval2.2%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{0.16666666666666666} + {\left(x + 1\right)}^{\color{blue}{0.16666666666666666}}\right) \]
    3. Applied egg-rr2.2%

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

      \[\leadsto \color{blue}{0.3333333333333333 \cdot {\left(\frac{1}{{x}^{2}}\right)}^{0.3333333333333333}} \]
    5. Step-by-step derivation
      1. unpow1/347.9%

        \[\leadsto 0.3333333333333333 \cdot \color{blue}{\sqrt[3]{\frac{1}{{x}^{2}}}} \]
      2. unpow247.9%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\frac{1}{\color{blue}{x \cdot x}}} \]
    6. Simplified47.9%

      \[\leadsto \color{blue}{0.3333333333333333 \cdot \sqrt[3]{\frac{1}{x \cdot x}}} \]
    7. Step-by-step derivation
      1. associate-/r*49.7%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\color{blue}{\frac{\frac{1}{x}}{x}}} \]
      2. frac-2neg49.7%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\color{blue}{\frac{-\frac{1}{x}}{-x}}} \]
      3. cbrt-div98.6%

        \[\leadsto 0.3333333333333333 \cdot \color{blue}{\frac{\sqrt[3]{-\frac{1}{x}}}{\sqrt[3]{-x}}} \]
    8. Applied egg-rr98.6%

      \[\leadsto 0.3333333333333333 \cdot \color{blue}{\frac{\sqrt[3]{-\frac{1}{x}}}{\sqrt[3]{-x}}} \]
    9. Step-by-step derivation
      1. distribute-neg-frac98.6%

        \[\leadsto 0.3333333333333333 \cdot \frac{\sqrt[3]{\color{blue}{\frac{-1}{x}}}}{\sqrt[3]{-x}} \]
      2. metadata-eval98.6%

        \[\leadsto 0.3333333333333333 \cdot \frac{\sqrt[3]{\frac{\color{blue}{-1}}{x}}}{\sqrt[3]{-x}} \]
    10. Simplified98.6%

      \[\leadsto 0.3333333333333333 \cdot \color{blue}{\frac{\sqrt[3]{\frac{-1}{x}}}{\sqrt[3]{-x}}} \]

    if 0.0 < (-.f64 (cbrt.f64 (+.f64 x 1)) (cbrt.f64 x))

    1. Initial program 93.3%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Step-by-step derivation
      1. pow1/391.2%

        \[\leadsto \color{blue}{{\left(x + 1\right)}^{0.3333333333333333}} - \sqrt[3]{x} \]
      2. flip-+91.2%

        \[\leadsto {\color{blue}{\left(\frac{x \cdot x - 1 \cdot 1}{x - 1}\right)}}^{0.3333333333333333} - \sqrt[3]{x} \]
      3. div-inv91.1%

        \[\leadsto {\color{blue}{\left(\left(x \cdot x - 1 \cdot 1\right) \cdot \frac{1}{x - 1}\right)}}^{0.3333333333333333} - \sqrt[3]{x} \]
      4. unpow-prod-down3.1%

        \[\leadsto \color{blue}{{\left(x \cdot x - 1 \cdot 1\right)}^{0.3333333333333333} \cdot {\left(\frac{1}{x - 1}\right)}^{0.3333333333333333}} - \sqrt[3]{x} \]
      5. pow1/33.3%

        \[\leadsto \color{blue}{\sqrt[3]{x \cdot x - 1 \cdot 1}} \cdot {\left(\frac{1}{x - 1}\right)}^{0.3333333333333333} - \sqrt[3]{x} \]
      6. fma-neg3.2%

        \[\leadsto \color{blue}{\mathsf{fma}\left(\sqrt[3]{x \cdot x - 1 \cdot 1}, {\left(\frac{1}{x - 1}\right)}^{0.3333333333333333}, -\sqrt[3]{x}\right)} \]
      7. metadata-eval3.2%

        \[\leadsto \mathsf{fma}\left(\sqrt[3]{x \cdot x - \color{blue}{1}}, {\left(\frac{1}{x - 1}\right)}^{0.3333333333333333}, -\sqrt[3]{x}\right) \]
      8. fma-neg3.2%

        \[\leadsto \mathsf{fma}\left(\sqrt[3]{\color{blue}{\mathsf{fma}\left(x, x, -1\right)}}, {\left(\frac{1}{x - 1}\right)}^{0.3333333333333333}, -\sqrt[3]{x}\right) \]
      9. metadata-eval3.2%

        \[\leadsto \mathsf{fma}\left(\sqrt[3]{\mathsf{fma}\left(x, x, \color{blue}{-1}\right)}, {\left(\frac{1}{x - 1}\right)}^{0.3333333333333333}, -\sqrt[3]{x}\right) \]
      10. sub-neg3.2%

        \[\leadsto \mathsf{fma}\left(\sqrt[3]{\mathsf{fma}\left(x, x, -1\right)}, {\left(\frac{1}{\color{blue}{x + \left(-1\right)}}\right)}^{0.3333333333333333}, -\sqrt[3]{x}\right) \]
      11. metadata-eval3.2%

        \[\leadsto \mathsf{fma}\left(\sqrt[3]{\mathsf{fma}\left(x, x, -1\right)}, {\left(\frac{1}{x + \color{blue}{-1}}\right)}^{0.3333333333333333}, -\sqrt[3]{x}\right) \]
    3. Applied egg-rr3.2%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\sqrt[3]{\mathsf{fma}\left(x, x, -1\right)}, {\left(\frac{1}{x + -1}\right)}^{0.3333333333333333}, -\sqrt[3]{x}\right)} \]
    4. Applied egg-rr99.8%

      \[\leadsto \color{blue}{\frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, {\left(\sqrt[3]{x - -1}\right)}^{2}\right)}} \]
    5. Step-by-step derivation
      1. unpow299.8%

        \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, \color{blue}{\sqrt[3]{x - -1} \cdot \sqrt[3]{x - -1}}\right)} \]
      2. cbrt-unprod99.8%

        \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, \color{blue}{\sqrt[3]{\left(x - -1\right) \cdot \left(x - -1\right)}}\right)} \]
      3. pow299.8%

        \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, \sqrt[3]{\color{blue}{{\left(x - -1\right)}^{2}}}\right)} \]
      4. sub-neg99.8%

        \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, \sqrt[3]{{\color{blue}{\left(x + \left(--1\right)\right)}}^{2}}\right)} \]
      5. metadata-eval99.8%

        \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, \sqrt[3]{{\left(x + \color{blue}{1}\right)}^{2}}\right)} \]
    6. Applied egg-rr99.8%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;\sqrt[3]{1 + x} - \sqrt[3]{x} \leq 0:\\ \;\;\;\;0.3333333333333333 \cdot \frac{\sqrt[3]{\frac{-1}{x}}}{\sqrt[3]{-x}}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x} + \sqrt[3]{x - -1}, \sqrt[3]{{\left(1 + x\right)}^{2}}\right)}\\ \end{array} \]

Alternative 3: 98.3% accurate, 0.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\sqrt[3]{1 + x} - \sqrt[3]{x} \leq 5 \cdot 10^{-8}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{\sqrt[3]{\frac{-1}{x}}}{\sqrt[3]{-x}}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x} + \sqrt[3]{x - -1}, e^{0.6666666666666666 \cdot \mathsf{log1p}\left(x\right)}\right)}\\ \end{array} \end{array} \]
(FPCore (x)
 :precision binary64
 (if (<= (- (cbrt (+ 1.0 x)) (cbrt x)) 5e-8)
   (* 0.3333333333333333 (/ (cbrt (/ -1.0 x)) (cbrt (- x))))
   (/
    1.0
    (fma
     (cbrt x)
     (+ (cbrt x) (cbrt (- x -1.0)))
     (exp (* 0.6666666666666666 (log1p x)))))))
double code(double x) {
	double tmp;
	if ((cbrt((1.0 + x)) - cbrt(x)) <= 5e-8) {
		tmp = 0.3333333333333333 * (cbrt((-1.0 / x)) / cbrt(-x));
	} else {
		tmp = 1.0 / fma(cbrt(x), (cbrt(x) + cbrt((x - -1.0))), exp((0.6666666666666666 * log1p(x))));
	}
	return tmp;
}
function code(x)
	tmp = 0.0
	if (Float64(cbrt(Float64(1.0 + x)) - cbrt(x)) <= 5e-8)
		tmp = Float64(0.3333333333333333 * Float64(cbrt(Float64(-1.0 / x)) / cbrt(Float64(-x))));
	else
		tmp = Float64(1.0 / fma(cbrt(x), Float64(cbrt(x) + cbrt(Float64(x - -1.0))), exp(Float64(0.6666666666666666 * log1p(x)))));
	end
	return tmp
end
code[x_] := If[LessEqual[N[(N[Power[N[(1.0 + x), $MachinePrecision], 1/3], $MachinePrecision] - N[Power[x, 1/3], $MachinePrecision]), $MachinePrecision], 5e-8], N[(0.3333333333333333 * N[(N[Power[N[(-1.0 / x), $MachinePrecision], 1/3], $MachinePrecision] / N[Power[(-x), 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(N[Power[x, 1/3], $MachinePrecision] * N[(N[Power[x, 1/3], $MachinePrecision] + N[Power[N[(x - -1.0), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision] + N[Exp[N[(0.6666666666666666 * N[Log[1 + x], $MachinePrecision]), $MachinePrecision]], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;\sqrt[3]{1 + x} - \sqrt[3]{x} \leq 5 \cdot 10^{-8}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{\sqrt[3]{\frac{-1}{x}}}{\sqrt[3]{-x}}\\

\mathbf{else}:\\
\;\;\;\;\frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x} + \sqrt[3]{x - -1}, e^{0.6666666666666666 \cdot \mathsf{log1p}\left(x\right)}\right)}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (-.f64 (cbrt.f64 (+.f64 x 1)) (cbrt.f64 x)) < 4.9999999999999998e-8

    1. Initial program 6.3%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Step-by-step derivation
      1. pow1/31.6%

        \[\leadsto \color{blue}{{\left(x + 1\right)}^{0.3333333333333333}} - \sqrt[3]{x} \]
      2. rem-cube-cbrt1.6%

        \[\leadsto {\color{blue}{\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}}^{0.3333333333333333} - \sqrt[3]{x} \]
      3. sqr-pow1.7%

        \[\leadsto \color{blue}{{\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}} - \sqrt[3]{x} \]
      4. pow1/32.9%

        \[\leadsto {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - \color{blue}{{x}^{0.3333333333333333}} \]
      5. sqr-pow3.0%

        \[\leadsto {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - \color{blue}{{x}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {x}^{\left(\frac{0.3333333333333333}{2}\right)}} \]
      6. difference-of-squares3.0%

        \[\leadsto \color{blue}{\left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      7. *-commutative3.0%

        \[\leadsto \color{blue}{\left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      8. rem-cube-cbrt3.1%

        \[\leadsto \left({\color{blue}{\left(x + 1\right)}}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      9. metadata-eval3.1%

        \[\leadsto \left({\left(x + 1\right)}^{\color{blue}{0.16666666666666666}} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      10. metadata-eval3.1%

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

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \color{blue}{\left({x}^{\left(\frac{0.3333333333333333}{2}\right)} + {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      12. metadata-eval3.1%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{\color{blue}{0.16666666666666666}} + {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      13. rem-cube-cbrt3.1%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{0.16666666666666666} + {\color{blue}{\left(x + 1\right)}}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      14. metadata-eval3.1%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{0.16666666666666666} + {\left(x + 1\right)}^{\color{blue}{0.16666666666666666}}\right) \]
    3. Applied egg-rr3.1%

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

      \[\leadsto \color{blue}{0.3333333333333333 \cdot {\left(\frac{1}{{x}^{2}}\right)}^{0.3333333333333333}} \]
    5. Step-by-step derivation
      1. unpow1/350.9%

        \[\leadsto 0.3333333333333333 \cdot \color{blue}{\sqrt[3]{\frac{1}{{x}^{2}}}} \]
      2. unpow250.9%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\frac{1}{\color{blue}{x \cdot x}}} \]
    6. Simplified50.9%

      \[\leadsto \color{blue}{0.3333333333333333 \cdot \sqrt[3]{\frac{1}{x \cdot x}}} \]
    7. Step-by-step derivation
      1. associate-/r*52.5%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\color{blue}{\frac{\frac{1}{x}}{x}}} \]
      2. frac-2neg52.5%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\color{blue}{\frac{-\frac{1}{x}}{-x}}} \]
      3. cbrt-div97.7%

        \[\leadsto 0.3333333333333333 \cdot \color{blue}{\frac{\sqrt[3]{-\frac{1}{x}}}{\sqrt[3]{-x}}} \]
    8. Applied egg-rr97.7%

      \[\leadsto 0.3333333333333333 \cdot \color{blue}{\frac{\sqrt[3]{-\frac{1}{x}}}{\sqrt[3]{-x}}} \]
    9. Step-by-step derivation
      1. distribute-neg-frac97.7%

        \[\leadsto 0.3333333333333333 \cdot \frac{\sqrt[3]{\color{blue}{\frac{-1}{x}}}}{\sqrt[3]{-x}} \]
      2. metadata-eval97.7%

        \[\leadsto 0.3333333333333333 \cdot \frac{\sqrt[3]{\frac{\color{blue}{-1}}{x}}}{\sqrt[3]{-x}} \]
    10. Simplified97.7%

      \[\leadsto 0.3333333333333333 \cdot \color{blue}{\frac{\sqrt[3]{\frac{-1}{x}}}{\sqrt[3]{-x}}} \]

    if 4.9999999999999998e-8 < (-.f64 (cbrt.f64 (+.f64 x 1)) (cbrt.f64 x))

    1. Initial program 98.2%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Step-by-step derivation
      1. pow1/397.7%

        \[\leadsto \color{blue}{{\left(x + 1\right)}^{0.3333333333333333}} - \sqrt[3]{x} \]
      2. flip-+97.7%

        \[\leadsto {\color{blue}{\left(\frac{x \cdot x - 1 \cdot 1}{x - 1}\right)}}^{0.3333333333333333} - \sqrt[3]{x} \]
      3. div-inv97.7%

        \[\leadsto {\color{blue}{\left(\left(x \cdot x - 1 \cdot 1\right) \cdot \frac{1}{x - 1}\right)}}^{0.3333333333333333} - \sqrt[3]{x} \]
      4. unpow-prod-down2.6%

        \[\leadsto \color{blue}{{\left(x \cdot x - 1 \cdot 1\right)}^{0.3333333333333333} \cdot {\left(\frac{1}{x - 1}\right)}^{0.3333333333333333}} - \sqrt[3]{x} \]
      5. pow1/32.6%

        \[\leadsto \color{blue}{\sqrt[3]{x \cdot x - 1 \cdot 1}} \cdot {\left(\frac{1}{x - 1}\right)}^{0.3333333333333333} - \sqrt[3]{x} \]
      6. fma-neg2.6%

        \[\leadsto \color{blue}{\mathsf{fma}\left(\sqrt[3]{x \cdot x - 1 \cdot 1}, {\left(\frac{1}{x - 1}\right)}^{0.3333333333333333}, -\sqrt[3]{x}\right)} \]
      7. metadata-eval2.6%

        \[\leadsto \mathsf{fma}\left(\sqrt[3]{x \cdot x - \color{blue}{1}}, {\left(\frac{1}{x - 1}\right)}^{0.3333333333333333}, -\sqrt[3]{x}\right) \]
      8. fma-neg2.6%

        \[\leadsto \mathsf{fma}\left(\sqrt[3]{\color{blue}{\mathsf{fma}\left(x, x, -1\right)}}, {\left(\frac{1}{x - 1}\right)}^{0.3333333333333333}, -\sqrt[3]{x}\right) \]
      9. metadata-eval2.6%

        \[\leadsto \mathsf{fma}\left(\sqrt[3]{\mathsf{fma}\left(x, x, \color{blue}{-1}\right)}, {\left(\frac{1}{x - 1}\right)}^{0.3333333333333333}, -\sqrt[3]{x}\right) \]
      10. sub-neg2.6%

        \[\leadsto \mathsf{fma}\left(\sqrt[3]{\mathsf{fma}\left(x, x, -1\right)}, {\left(\frac{1}{\color{blue}{x + \left(-1\right)}}\right)}^{0.3333333333333333}, -\sqrt[3]{x}\right) \]
      11. metadata-eval2.6%

        \[\leadsto \mathsf{fma}\left(\sqrt[3]{\mathsf{fma}\left(x, x, -1\right)}, {\left(\frac{1}{x + \color{blue}{-1}}\right)}^{0.3333333333333333}, -\sqrt[3]{x}\right) \]
    3. Applied egg-rr2.6%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\sqrt[3]{\mathsf{fma}\left(x, x, -1\right)}, {\left(\frac{1}{x + -1}\right)}^{0.3333333333333333}, -\sqrt[3]{x}\right)} \]
    4. Applied egg-rr99.9%

      \[\leadsto \color{blue}{\frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, {\left(\sqrt[3]{x - -1}\right)}^{2}\right)}} \]
    5. Step-by-step derivation
      1. pow-to-exp99.1%

        \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, \color{blue}{e^{\log \left(\sqrt[3]{x - -1}\right) \cdot 2}}\right)} \]
      2. *-commutative99.1%

        \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, e^{\color{blue}{2 \cdot \log \left(\sqrt[3]{x - -1}\right)}}\right)} \]
      3. pow1/399.1%

        \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, e^{2 \cdot \log \color{blue}{\left({\left(x - -1\right)}^{0.3333333333333333}\right)}}\right)} \]
      4. log-pow99.1%

        \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, e^{2 \cdot \color{blue}{\left(0.3333333333333333 \cdot \log \left(x - -1\right)\right)}}\right)} \]
      5. sub-neg99.1%

        \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, e^{2 \cdot \left(0.3333333333333333 \cdot \log \color{blue}{\left(x + \left(--1\right)\right)}\right)}\right)} \]
      6. metadata-eval99.1%

        \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, e^{2 \cdot \left(0.3333333333333333 \cdot \log \left(x + \color{blue}{1}\right)\right)}\right)} \]
      7. +-commutative99.1%

        \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, e^{2 \cdot \left(0.3333333333333333 \cdot \log \color{blue}{\left(1 + x\right)}\right)}\right)} \]
      8. log1p-def99.1%

        \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, e^{2 \cdot \left(0.3333333333333333 \cdot \color{blue}{\mathsf{log1p}\left(x\right)}\right)}\right)} \]
    6. Applied egg-rr99.1%

      \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, \color{blue}{e^{2 \cdot \left(0.3333333333333333 \cdot \mathsf{log1p}\left(x\right)\right)}}\right)} \]
    7. Step-by-step derivation
      1. associate-*r*99.1%

        \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, e^{\color{blue}{\left(2 \cdot 0.3333333333333333\right) \cdot \mathsf{log1p}\left(x\right)}}\right)} \]
      2. metadata-eval99.1%

        \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, e^{\color{blue}{0.6666666666666666} \cdot \mathsf{log1p}\left(x\right)}\right)} \]
    8. Simplified99.1%

      \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, \color{blue}{e^{0.6666666666666666 \cdot \mathsf{log1p}\left(x\right)}}\right)} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification98.4%

    \[\leadsto \begin{array}{l} \mathbf{if}\;\sqrt[3]{1 + x} - \sqrt[3]{x} \leq 5 \cdot 10^{-8}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{\sqrt[3]{\frac{-1}{x}}}{\sqrt[3]{-x}}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x} + \sqrt[3]{x - -1}, e^{0.6666666666666666 \cdot \mathsf{log1p}\left(x\right)}\right)}\\ \end{array} \]

Alternative 4: 99.2% accurate, 0.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := \sqrt[3]{x - -1}\\ \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x} + t_0, {t_0}^{2}\right)} \end{array} \end{array} \]
(FPCore (x)
 :precision binary64
 (let* ((t_0 (cbrt (- x -1.0))))
   (/ 1.0 (fma (cbrt x) (+ (cbrt x) t_0) (pow t_0 2.0)))))
double code(double x) {
	double t_0 = cbrt((x - -1.0));
	return 1.0 / fma(cbrt(x), (cbrt(x) + t_0), pow(t_0, 2.0));
}
function code(x)
	t_0 = cbrt(Float64(x - -1.0))
	return Float64(1.0 / fma(cbrt(x), Float64(cbrt(x) + t_0), (t_0 ^ 2.0)))
end
code[x_] := Block[{t$95$0 = N[Power[N[(x - -1.0), $MachinePrecision], 1/3], $MachinePrecision]}, N[(1.0 / N[(N[Power[x, 1/3], $MachinePrecision] * N[(N[Power[x, 1/3], $MachinePrecision] + t$95$0), $MachinePrecision] + N[Power[t$95$0, 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := \sqrt[3]{x - -1}\\
\frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x} + t_0, {t_0}^{2}\right)}
\end{array}
\end{array}
Derivation
  1. Initial program 50.8%

    \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
  2. Step-by-step derivation
    1. pow1/348.2%

      \[\leadsto \color{blue}{{\left(x + 1\right)}^{0.3333333333333333}} - \sqrt[3]{x} \]
    2. flip-+48.5%

      \[\leadsto {\color{blue}{\left(\frac{x \cdot x - 1 \cdot 1}{x - 1}\right)}}^{0.3333333333333333} - \sqrt[3]{x} \]
    3. div-inv48.5%

      \[\leadsto {\color{blue}{\left(\left(x \cdot x - 1 \cdot 1\right) \cdot \frac{1}{x - 1}\right)}}^{0.3333333333333333} - \sqrt[3]{x} \]
    4. unpow-prod-down2.1%

      \[\leadsto \color{blue}{{\left(x \cdot x - 1 \cdot 1\right)}^{0.3333333333333333} \cdot {\left(\frac{1}{x - 1}\right)}^{0.3333333333333333}} - \sqrt[3]{x} \]
    5. pow1/32.9%

      \[\leadsto \color{blue}{\sqrt[3]{x \cdot x - 1 \cdot 1}} \cdot {\left(\frac{1}{x - 1}\right)}^{0.3333333333333333} - \sqrt[3]{x} \]
    6. fma-neg2.9%

      \[\leadsto \color{blue}{\mathsf{fma}\left(\sqrt[3]{x \cdot x - 1 \cdot 1}, {\left(\frac{1}{x - 1}\right)}^{0.3333333333333333}, -\sqrt[3]{x}\right)} \]
    7. metadata-eval2.9%

      \[\leadsto \mathsf{fma}\left(\sqrt[3]{x \cdot x - \color{blue}{1}}, {\left(\frac{1}{x - 1}\right)}^{0.3333333333333333}, -\sqrt[3]{x}\right) \]
    8. fma-neg2.9%

      \[\leadsto \mathsf{fma}\left(\sqrt[3]{\color{blue}{\mathsf{fma}\left(x, x, -1\right)}}, {\left(\frac{1}{x - 1}\right)}^{0.3333333333333333}, -\sqrt[3]{x}\right) \]
    9. metadata-eval2.9%

      \[\leadsto \mathsf{fma}\left(\sqrt[3]{\mathsf{fma}\left(x, x, \color{blue}{-1}\right)}, {\left(\frac{1}{x - 1}\right)}^{0.3333333333333333}, -\sqrt[3]{x}\right) \]
    10. sub-neg2.9%

      \[\leadsto \mathsf{fma}\left(\sqrt[3]{\mathsf{fma}\left(x, x, -1\right)}, {\left(\frac{1}{\color{blue}{x + \left(-1\right)}}\right)}^{0.3333333333333333}, -\sqrt[3]{x}\right) \]
    11. metadata-eval2.9%

      \[\leadsto \mathsf{fma}\left(\sqrt[3]{\mathsf{fma}\left(x, x, -1\right)}, {\left(\frac{1}{x + \color{blue}{-1}}\right)}^{0.3333333333333333}, -\sqrt[3]{x}\right) \]
  3. Applied egg-rr2.9%

    \[\leadsto \color{blue}{\mathsf{fma}\left(\sqrt[3]{\mathsf{fma}\left(x, x, -1\right)}, {\left(\frac{1}{x + -1}\right)}^{0.3333333333333333}, -\sqrt[3]{x}\right)} \]
  4. Applied egg-rr99.2%

    \[\leadsto \color{blue}{\frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x - -1} + \sqrt[3]{x}, {\left(\sqrt[3]{x - -1}\right)}^{2}\right)}} \]
  5. Final simplification99.2%

    \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x} + \sqrt[3]{x - -1}, {\left(\sqrt[3]{x - -1}\right)}^{2}\right)} \]

Alternative 5: 98.6% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := \sqrt[3]{1 + x} - \sqrt[3]{x}\\ \mathbf{if}\;t_0 \leq 5 \cdot 10^{-7}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{\sqrt[3]{\frac{-1}{x}}}{\sqrt[3]{-x}}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\frac{1}{t_0}}\\ \end{array} \end{array} \]
(FPCore (x)
 :precision binary64
 (let* ((t_0 (- (cbrt (+ 1.0 x)) (cbrt x))))
   (if (<= t_0 5e-7)
     (* 0.3333333333333333 (/ (cbrt (/ -1.0 x)) (cbrt (- x))))
     (/ 1.0 (/ 1.0 t_0)))))
double code(double x) {
	double t_0 = cbrt((1.0 + x)) - cbrt(x);
	double tmp;
	if (t_0 <= 5e-7) {
		tmp = 0.3333333333333333 * (cbrt((-1.0 / x)) / cbrt(-x));
	} else {
		tmp = 1.0 / (1.0 / t_0);
	}
	return tmp;
}
public static double code(double x) {
	double t_0 = Math.cbrt((1.0 + x)) - Math.cbrt(x);
	double tmp;
	if (t_0 <= 5e-7) {
		tmp = 0.3333333333333333 * (Math.cbrt((-1.0 / x)) / Math.cbrt(-x));
	} else {
		tmp = 1.0 / (1.0 / t_0);
	}
	return tmp;
}
function code(x)
	t_0 = Float64(cbrt(Float64(1.0 + x)) - cbrt(x))
	tmp = 0.0
	if (t_0 <= 5e-7)
		tmp = Float64(0.3333333333333333 * Float64(cbrt(Float64(-1.0 / x)) / cbrt(Float64(-x))));
	else
		tmp = Float64(1.0 / Float64(1.0 / t_0));
	end
	return tmp
end
code[x_] := Block[{t$95$0 = N[(N[Power[N[(1.0 + x), $MachinePrecision], 1/3], $MachinePrecision] - N[Power[x, 1/3], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, 5e-7], N[(0.3333333333333333 * N[(N[Power[N[(-1.0 / x), $MachinePrecision], 1/3], $MachinePrecision] / N[Power[(-x), 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(1.0 / N[(1.0 / t$95$0), $MachinePrecision]), $MachinePrecision]]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := \sqrt[3]{1 + x} - \sqrt[3]{x}\\
\mathbf{if}\;t_0 \leq 5 \cdot 10^{-7}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{\sqrt[3]{\frac{-1}{x}}}{\sqrt[3]{-x}}\\

\mathbf{else}:\\
\;\;\;\;\frac{1}{\frac{1}{t_0}}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (-.f64 (cbrt.f64 (+.f64 x 1)) (cbrt.f64 x)) < 4.99999999999999977e-7

    1. Initial program 7.2%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Step-by-step derivation
      1. pow1/32.7%

        \[\leadsto \color{blue}{{\left(x + 1\right)}^{0.3333333333333333}} - \sqrt[3]{x} \]
      2. rem-cube-cbrt2.6%

        \[\leadsto {\color{blue}{\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}}^{0.3333333333333333} - \sqrt[3]{x} \]
      3. sqr-pow2.6%

        \[\leadsto \color{blue}{{\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}} - \sqrt[3]{x} \]
      4. pow1/33.9%

        \[\leadsto {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - \color{blue}{{x}^{0.3333333333333333}} \]
      5. sqr-pow4.0%

        \[\leadsto {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - \color{blue}{{x}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {x}^{\left(\frac{0.3333333333333333}{2}\right)}} \]
      6. difference-of-squares4.0%

        \[\leadsto \color{blue}{\left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      7. *-commutative4.0%

        \[\leadsto \color{blue}{\left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      8. rem-cube-cbrt4.1%

        \[\leadsto \left({\color{blue}{\left(x + 1\right)}}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      9. metadata-eval4.1%

        \[\leadsto \left({\left(x + 1\right)}^{\color{blue}{0.16666666666666666}} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      10. metadata-eval4.1%

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

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \color{blue}{\left({x}^{\left(\frac{0.3333333333333333}{2}\right)} + {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      12. metadata-eval4.1%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{\color{blue}{0.16666666666666666}} + {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      13. rem-cube-cbrt4.1%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{0.16666666666666666} + {\color{blue}{\left(x + 1\right)}}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      14. metadata-eval4.1%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{0.16666666666666666} + {\left(x + 1\right)}^{\color{blue}{0.16666666666666666}}\right) \]
    3. Applied egg-rr4.1%

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

      \[\leadsto \color{blue}{0.3333333333333333 \cdot {\left(\frac{1}{{x}^{2}}\right)}^{0.3333333333333333}} \]
    5. Step-by-step derivation
      1. unpow1/351.3%

        \[\leadsto 0.3333333333333333 \cdot \color{blue}{\sqrt[3]{\frac{1}{{x}^{2}}}} \]
      2. unpow251.3%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\frac{1}{\color{blue}{x \cdot x}}} \]
    6. Simplified51.3%

      \[\leadsto \color{blue}{0.3333333333333333 \cdot \sqrt[3]{\frac{1}{x \cdot x}}} \]
    7. Step-by-step derivation
      1. associate-/r*52.9%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\color{blue}{\frac{\frac{1}{x}}{x}}} \]
      2. frac-2neg52.9%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\color{blue}{\frac{-\frac{1}{x}}{-x}}} \]
      3. cbrt-div97.1%

        \[\leadsto 0.3333333333333333 \cdot \color{blue}{\frac{\sqrt[3]{-\frac{1}{x}}}{\sqrt[3]{-x}}} \]
    8. Applied egg-rr97.1%

      \[\leadsto 0.3333333333333333 \cdot \color{blue}{\frac{\sqrt[3]{-\frac{1}{x}}}{\sqrt[3]{-x}}} \]
    9. Step-by-step derivation
      1. distribute-neg-frac97.1%

        \[\leadsto 0.3333333333333333 \cdot \frac{\sqrt[3]{\color{blue}{\frac{-1}{x}}}}{\sqrt[3]{-x}} \]
      2. metadata-eval97.1%

        \[\leadsto 0.3333333333333333 \cdot \frac{\sqrt[3]{\frac{\color{blue}{-1}}{x}}}{\sqrt[3]{-x}} \]
    10. Simplified97.1%

      \[\leadsto 0.3333333333333333 \cdot \color{blue}{\frac{\sqrt[3]{\frac{-1}{x}}}{\sqrt[3]{-x}}} \]

    if 4.99999999999999977e-7 < (-.f64 (cbrt.f64 (+.f64 x 1)) (cbrt.f64 x))

    1. Initial program 99.5%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Step-by-step derivation
      1. remove-double-div99.5%

        \[\leadsto \color{blue}{\frac{1}{\frac{1}{\sqrt[3]{x + 1} - \sqrt[3]{x}}}} \]
    3. Applied egg-rr99.5%

      \[\leadsto \color{blue}{\frac{1}{\frac{1}{\sqrt[3]{x + 1} - \sqrt[3]{x}}}} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification98.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;\sqrt[3]{1 + x} - \sqrt[3]{x} \leq 5 \cdot 10^{-7}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{\sqrt[3]{\frac{-1}{x}}}{\sqrt[3]{-x}}\\ \mathbf{else}:\\ \;\;\;\;\frac{1}{\frac{1}{\sqrt[3]{1 + x} - \sqrt[3]{x}}}\\ \end{array} \]

Alternative 6: 98.7% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := \sqrt[3]{1 + x} - \sqrt[3]{x}\\ \mathbf{if}\;t_0 \leq 5 \cdot 10^{-7}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{\sqrt[3]{\frac{-1}{x}}}{\sqrt[3]{-x}}\\ \mathbf{else}:\\ \;\;\;\;t_0\\ \end{array} \end{array} \]
(FPCore (x)
 :precision binary64
 (let* ((t_0 (- (cbrt (+ 1.0 x)) (cbrt x))))
   (if (<= t_0 5e-7)
     (* 0.3333333333333333 (/ (cbrt (/ -1.0 x)) (cbrt (- x))))
     t_0)))
double code(double x) {
	double t_0 = cbrt((1.0 + x)) - cbrt(x);
	double tmp;
	if (t_0 <= 5e-7) {
		tmp = 0.3333333333333333 * (cbrt((-1.0 / x)) / cbrt(-x));
	} else {
		tmp = t_0;
	}
	return tmp;
}
public static double code(double x) {
	double t_0 = Math.cbrt((1.0 + x)) - Math.cbrt(x);
	double tmp;
	if (t_0 <= 5e-7) {
		tmp = 0.3333333333333333 * (Math.cbrt((-1.0 / x)) / Math.cbrt(-x));
	} else {
		tmp = t_0;
	}
	return tmp;
}
function code(x)
	t_0 = Float64(cbrt(Float64(1.0 + x)) - cbrt(x))
	tmp = 0.0
	if (t_0 <= 5e-7)
		tmp = Float64(0.3333333333333333 * Float64(cbrt(Float64(-1.0 / x)) / cbrt(Float64(-x))));
	else
		tmp = t_0;
	end
	return tmp
end
code[x_] := Block[{t$95$0 = N[(N[Power[N[(1.0 + x), $MachinePrecision], 1/3], $MachinePrecision] - N[Power[x, 1/3], $MachinePrecision]), $MachinePrecision]}, If[LessEqual[t$95$0, 5e-7], N[(0.3333333333333333 * N[(N[Power[N[(-1.0 / x), $MachinePrecision], 1/3], $MachinePrecision] / N[Power[(-x), 1/3], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], t$95$0]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := \sqrt[3]{1 + x} - \sqrt[3]{x}\\
\mathbf{if}\;t_0 \leq 5 \cdot 10^{-7}:\\
\;\;\;\;0.3333333333333333 \cdot \frac{\sqrt[3]{\frac{-1}{x}}}{\sqrt[3]{-x}}\\

\mathbf{else}:\\
\;\;\;\;t_0\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (-.f64 (cbrt.f64 (+.f64 x 1)) (cbrt.f64 x)) < 4.99999999999999977e-7

    1. Initial program 7.2%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Step-by-step derivation
      1. pow1/32.7%

        \[\leadsto \color{blue}{{\left(x + 1\right)}^{0.3333333333333333}} - \sqrt[3]{x} \]
      2. rem-cube-cbrt2.6%

        \[\leadsto {\color{blue}{\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}}^{0.3333333333333333} - \sqrt[3]{x} \]
      3. sqr-pow2.6%

        \[\leadsto \color{blue}{{\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}} - \sqrt[3]{x} \]
      4. pow1/33.9%

        \[\leadsto {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - \color{blue}{{x}^{0.3333333333333333}} \]
      5. sqr-pow4.0%

        \[\leadsto {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - \color{blue}{{x}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {x}^{\left(\frac{0.3333333333333333}{2}\right)}} \]
      6. difference-of-squares4.0%

        \[\leadsto \color{blue}{\left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      7. *-commutative4.0%

        \[\leadsto \color{blue}{\left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      8. rem-cube-cbrt4.1%

        \[\leadsto \left({\color{blue}{\left(x + 1\right)}}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      9. metadata-eval4.1%

        \[\leadsto \left({\left(x + 1\right)}^{\color{blue}{0.16666666666666666}} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      10. metadata-eval4.1%

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

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \color{blue}{\left({x}^{\left(\frac{0.3333333333333333}{2}\right)} + {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      12. metadata-eval4.1%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{\color{blue}{0.16666666666666666}} + {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      13. rem-cube-cbrt4.1%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{0.16666666666666666} + {\color{blue}{\left(x + 1\right)}}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      14. metadata-eval4.1%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{0.16666666666666666} + {\left(x + 1\right)}^{\color{blue}{0.16666666666666666}}\right) \]
    3. Applied egg-rr4.1%

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

      \[\leadsto \color{blue}{0.3333333333333333 \cdot {\left(\frac{1}{{x}^{2}}\right)}^{0.3333333333333333}} \]
    5. Step-by-step derivation
      1. unpow1/351.3%

        \[\leadsto 0.3333333333333333 \cdot \color{blue}{\sqrt[3]{\frac{1}{{x}^{2}}}} \]
      2. unpow251.3%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\frac{1}{\color{blue}{x \cdot x}}} \]
    6. Simplified51.3%

      \[\leadsto \color{blue}{0.3333333333333333 \cdot \sqrt[3]{\frac{1}{x \cdot x}}} \]
    7. Step-by-step derivation
      1. associate-/r*52.9%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\color{blue}{\frac{\frac{1}{x}}{x}}} \]
      2. frac-2neg52.9%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\color{blue}{\frac{-\frac{1}{x}}{-x}}} \]
      3. cbrt-div97.1%

        \[\leadsto 0.3333333333333333 \cdot \color{blue}{\frac{\sqrt[3]{-\frac{1}{x}}}{\sqrt[3]{-x}}} \]
    8. Applied egg-rr97.1%

      \[\leadsto 0.3333333333333333 \cdot \color{blue}{\frac{\sqrt[3]{-\frac{1}{x}}}{\sqrt[3]{-x}}} \]
    9. Step-by-step derivation
      1. distribute-neg-frac97.1%

        \[\leadsto 0.3333333333333333 \cdot \frac{\sqrt[3]{\color{blue}{\frac{-1}{x}}}}{\sqrt[3]{-x}} \]
      2. metadata-eval97.1%

        \[\leadsto 0.3333333333333333 \cdot \frac{\sqrt[3]{\frac{\color{blue}{-1}}{x}}}{\sqrt[3]{-x}} \]
    10. Simplified97.1%

      \[\leadsto 0.3333333333333333 \cdot \color{blue}{\frac{\sqrt[3]{\frac{-1}{x}}}{\sqrt[3]{-x}}} \]

    if 4.99999999999999977e-7 < (-.f64 (cbrt.f64 (+.f64 x 1)) (cbrt.f64 x))

    1. Initial program 99.5%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification98.2%

    \[\leadsto \begin{array}{l} \mathbf{if}\;\sqrt[3]{1 + x} - \sqrt[3]{x} \leq 5 \cdot 10^{-7}:\\ \;\;\;\;0.3333333333333333 \cdot \frac{\sqrt[3]{\frac{-1}{x}}}{\sqrt[3]{-x}}\\ \mathbf{else}:\\ \;\;\;\;\sqrt[3]{1 + x} - \sqrt[3]{x}\\ \end{array} \]

Alternative 7: 98.6% accurate, 0.5× speedup?

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

\\
\begin{array}{l}
t_0 := \sqrt[3]{1 + x} - \sqrt[3]{x}\\
\mathbf{if}\;t_0 \leq 5 \cdot 10^{-7}:\\
\;\;\;\;\frac{0.3333333333333333}{{\left(\sqrt[3]{x}\right)}^{2}}\\

\mathbf{else}:\\
\;\;\;\;t_0\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if (-.f64 (cbrt.f64 (+.f64 x 1)) (cbrt.f64 x)) < 4.99999999999999977e-7

    1. Initial program 7.2%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Step-by-step derivation
      1. pow1/32.7%

        \[\leadsto \color{blue}{{\left(x + 1\right)}^{0.3333333333333333}} - \sqrt[3]{x} \]
      2. rem-cube-cbrt2.6%

        \[\leadsto {\color{blue}{\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}}^{0.3333333333333333} - \sqrt[3]{x} \]
      3. sqr-pow2.6%

        \[\leadsto \color{blue}{{\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}} - \sqrt[3]{x} \]
      4. pow1/33.9%

        \[\leadsto {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - \color{blue}{{x}^{0.3333333333333333}} \]
      5. sqr-pow4.0%

        \[\leadsto {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - \color{blue}{{x}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {x}^{\left(\frac{0.3333333333333333}{2}\right)}} \]
      6. difference-of-squares4.0%

        \[\leadsto \color{blue}{\left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      7. *-commutative4.0%

        \[\leadsto \color{blue}{\left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      8. rem-cube-cbrt4.1%

        \[\leadsto \left({\color{blue}{\left(x + 1\right)}}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      9. metadata-eval4.1%

        \[\leadsto \left({\left(x + 1\right)}^{\color{blue}{0.16666666666666666}} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      10. metadata-eval4.1%

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

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \color{blue}{\left({x}^{\left(\frac{0.3333333333333333}{2}\right)} + {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      12. metadata-eval4.1%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{\color{blue}{0.16666666666666666}} + {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      13. rem-cube-cbrt4.1%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{0.16666666666666666} + {\color{blue}{\left(x + 1\right)}}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      14. metadata-eval4.1%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{0.16666666666666666} + {\left(x + 1\right)}^{\color{blue}{0.16666666666666666}}\right) \]
    3. Applied egg-rr4.1%

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

      \[\leadsto \color{blue}{0.3333333333333333 \cdot {\left(\frac{1}{{x}^{2}}\right)}^{0.3333333333333333}} \]
    5. Step-by-step derivation
      1. unpow1/351.3%

        \[\leadsto 0.3333333333333333 \cdot \color{blue}{\sqrt[3]{\frac{1}{{x}^{2}}}} \]
      2. unpow251.3%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\frac{1}{\color{blue}{x \cdot x}}} \]
    6. Simplified51.3%

      \[\leadsto \color{blue}{0.3333333333333333 \cdot \sqrt[3]{\frac{1}{x \cdot x}}} \]
    7. Step-by-step derivation
      1. cbrt-div51.4%

        \[\leadsto 0.3333333333333333 \cdot \color{blue}{\frac{\sqrt[3]{1}}{\sqrt[3]{x \cdot x}}} \]
      2. metadata-eval51.4%

        \[\leadsto 0.3333333333333333 \cdot \frac{\color{blue}{1}}{\sqrt[3]{x \cdot x}} \]
      3. cbrt-prod96.9%

        \[\leadsto 0.3333333333333333 \cdot \frac{1}{\color{blue}{\sqrt[3]{x} \cdot \sqrt[3]{x}}} \]
      4. un-div-inv96.9%

        \[\leadsto \color{blue}{\frac{0.3333333333333333}{\sqrt[3]{x} \cdot \sqrt[3]{x}}} \]
      5. unpow296.9%

        \[\leadsto \frac{0.3333333333333333}{\color{blue}{{\left(\sqrt[3]{x}\right)}^{2}}} \]
    8. Applied egg-rr96.9%

      \[\leadsto \color{blue}{\frac{0.3333333333333333}{{\left(\sqrt[3]{x}\right)}^{2}}} \]

    if 4.99999999999999977e-7 < (-.f64 (cbrt.f64 (+.f64 x 1)) (cbrt.f64 x))

    1. Initial program 99.5%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification98.1%

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

Alternative 8: 75.9% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -1 \lor \neg \left(x \leq 1\right):\\ \;\;\;\;0.3333333333333333 \cdot \sqrt[3]{{x}^{-2}}\\ \mathbf{else}:\\ \;\;\;\;\left(1 + x \cdot \left(0.3333333333333333 + x \cdot -0.1111111111111111\right)\right) - \sqrt[3]{x}\\ \end{array} \end{array} \]
(FPCore (x)
 :precision binary64
 (if (or (<= x -1.0) (not (<= x 1.0)))
   (* 0.3333333333333333 (cbrt (pow x -2.0)))
   (-
    (+ 1.0 (* x (+ 0.3333333333333333 (* x -0.1111111111111111))))
    (cbrt x))))
double code(double x) {
	double tmp;
	if ((x <= -1.0) || !(x <= 1.0)) {
		tmp = 0.3333333333333333 * cbrt(pow(x, -2.0));
	} else {
		tmp = (1.0 + (x * (0.3333333333333333 + (x * -0.1111111111111111)))) - cbrt(x);
	}
	return tmp;
}
public static double code(double x) {
	double tmp;
	if ((x <= -1.0) || !(x <= 1.0)) {
		tmp = 0.3333333333333333 * Math.cbrt(Math.pow(x, -2.0));
	} else {
		tmp = (1.0 + (x * (0.3333333333333333 + (x * -0.1111111111111111)))) - Math.cbrt(x);
	}
	return tmp;
}
function code(x)
	tmp = 0.0
	if ((x <= -1.0) || !(x <= 1.0))
		tmp = Float64(0.3333333333333333 * cbrt((x ^ -2.0)));
	else
		tmp = Float64(Float64(1.0 + Float64(x * Float64(0.3333333333333333 + Float64(x * -0.1111111111111111)))) - cbrt(x));
	end
	return tmp
end
code[x_] := If[Or[LessEqual[x, -1.0], N[Not[LessEqual[x, 1.0]], $MachinePrecision]], N[(0.3333333333333333 * N[Power[N[Power[x, -2.0], $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision], N[(N[(1.0 + N[(x * N[(0.3333333333333333 + N[(x * -0.1111111111111111), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[Power[x, 1/3], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -1 \lor \neg \left(x \leq 1\right):\\
\;\;\;\;0.3333333333333333 \cdot \sqrt[3]{{x}^{-2}}\\

\mathbf{else}:\\
\;\;\;\;\left(1 + x \cdot \left(0.3333333333333333 + x \cdot -0.1111111111111111\right)\right) - \sqrt[3]{x}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -1 or 1 < x

    1. Initial program 8.9%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Step-by-step derivation
      1. pow1/33.9%

        \[\leadsto \color{blue}{{\left(x + 1\right)}^{0.3333333333333333}} - \sqrt[3]{x} \]
      2. rem-cube-cbrt3.9%

        \[\leadsto {\color{blue}{\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}}^{0.3333333333333333} - \sqrt[3]{x} \]
      3. sqr-pow3.9%

        \[\leadsto \color{blue}{{\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}} - \sqrt[3]{x} \]
      4. pow1/35.1%

        \[\leadsto {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - \color{blue}{{x}^{0.3333333333333333}} \]
      5. sqr-pow5.3%

        \[\leadsto {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - \color{blue}{{x}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {x}^{\left(\frac{0.3333333333333333}{2}\right)}} \]
      6. difference-of-squares5.3%

        \[\leadsto \color{blue}{\left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      7. *-commutative5.3%

        \[\leadsto \color{blue}{\left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      8. rem-cube-cbrt5.4%

        \[\leadsto \left({\color{blue}{\left(x + 1\right)}}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      9. metadata-eval5.4%

        \[\leadsto \left({\left(x + 1\right)}^{\color{blue}{0.16666666666666666}} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      10. metadata-eval5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{\color{blue}{0.16666666666666666}}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      11. +-commutative5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \color{blue}{\left({x}^{\left(\frac{0.3333333333333333}{2}\right)} + {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      12. metadata-eval5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{\color{blue}{0.16666666666666666}} + {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      13. rem-cube-cbrt5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{0.16666666666666666} + {\color{blue}{\left(x + 1\right)}}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      14. metadata-eval5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{0.16666666666666666} + {\left(x + 1\right)}^{\color{blue}{0.16666666666666666}}\right) \]
    3. Applied egg-rr5.4%

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

      \[\leadsto \color{blue}{0.3333333333333333 \cdot {\left(\frac{1}{{x}^{2}}\right)}^{0.3333333333333333}} \]
    5. Step-by-step derivation
      1. unpow1/351.0%

        \[\leadsto 0.3333333333333333 \cdot \color{blue}{\sqrt[3]{\frac{1}{{x}^{2}}}} \]
      2. unpow251.0%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\frac{1}{\color{blue}{x \cdot x}}} \]
    6. Simplified51.0%

      \[\leadsto \color{blue}{0.3333333333333333 \cdot \sqrt[3]{\frac{1}{x \cdot x}}} \]
    7. Taylor expanded in x around 0 51.0%

      \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\color{blue}{\frac{1}{{x}^{2}}}} \]
    8. Step-by-step derivation
      1. unpow251.0%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\frac{1}{\color{blue}{x \cdot x}}} \]
      2. associate-/r*52.6%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\color{blue}{\frac{\frac{1}{x}}{x}}} \]
      3. *-lft-identity52.6%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\frac{\color{blue}{1 \cdot \frac{1}{x}}}{x}} \]
      4. associate-*l/52.6%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\color{blue}{\frac{1}{x} \cdot \frac{1}{x}}} \]
      5. unpow-152.6%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\color{blue}{{x}^{-1}} \cdot \frac{1}{x}} \]
      6. unpow-152.6%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{{x}^{-1} \cdot \color{blue}{{x}^{-1}}} \]
      7. pow-sqr52.6%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\color{blue}{{x}^{\left(2 \cdot -1\right)}}} \]
      8. metadata-eval52.6%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{{x}^{\color{blue}{-2}}} \]
    9. Simplified52.6%

      \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\color{blue}{{x}^{-2}}} \]

    if -1 < x < 1

    1. Initial program 100.0%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Taylor expanded in x around 0 99.8%

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

        \[\leadsto \left(1 + \color{blue}{\left(0.3333333333333333 \cdot x + -0.1111111111111111 \cdot {x}^{2}\right)}\right) - \sqrt[3]{x} \]
      2. unpow299.8%

        \[\leadsto \left(1 + \left(0.3333333333333333 \cdot x + -0.1111111111111111 \cdot \color{blue}{\left(x \cdot x\right)}\right)\right) - \sqrt[3]{x} \]
      3. associate-*r*99.8%

        \[\leadsto \left(1 + \left(0.3333333333333333 \cdot x + \color{blue}{\left(-0.1111111111111111 \cdot x\right) \cdot x}\right)\right) - \sqrt[3]{x} \]
      4. distribute-rgt-out99.8%

        \[\leadsto \left(1 + \color{blue}{x \cdot \left(0.3333333333333333 + -0.1111111111111111 \cdot x\right)}\right) - \sqrt[3]{x} \]
    4. Simplified99.8%

      \[\leadsto \color{blue}{\left(1 + x \cdot \left(0.3333333333333333 + -0.1111111111111111 \cdot x\right)\right)} - \sqrt[3]{x} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification74.4%

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

Alternative 9: 97.9% accurate, 1.0× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -1 \lor \neg \left(x \leq 1\right):\\ \;\;\;\;\frac{0.3333333333333333}{{\left(\sqrt[3]{x}\right)}^{2}}\\ \mathbf{else}:\\ \;\;\;\;\left(1 + x \cdot \left(0.3333333333333333 + x \cdot -0.1111111111111111\right)\right) - \sqrt[3]{x}\\ \end{array} \end{array} \]
(FPCore (x)
 :precision binary64
 (if (or (<= x -1.0) (not (<= x 1.0)))
   (/ 0.3333333333333333 (pow (cbrt x) 2.0))
   (-
    (+ 1.0 (* x (+ 0.3333333333333333 (* x -0.1111111111111111))))
    (cbrt x))))
double code(double x) {
	double tmp;
	if ((x <= -1.0) || !(x <= 1.0)) {
		tmp = 0.3333333333333333 / pow(cbrt(x), 2.0);
	} else {
		tmp = (1.0 + (x * (0.3333333333333333 + (x * -0.1111111111111111)))) - cbrt(x);
	}
	return tmp;
}
public static double code(double x) {
	double tmp;
	if ((x <= -1.0) || !(x <= 1.0)) {
		tmp = 0.3333333333333333 / Math.pow(Math.cbrt(x), 2.0);
	} else {
		tmp = (1.0 + (x * (0.3333333333333333 + (x * -0.1111111111111111)))) - Math.cbrt(x);
	}
	return tmp;
}
function code(x)
	tmp = 0.0
	if ((x <= -1.0) || !(x <= 1.0))
		tmp = Float64(0.3333333333333333 / (cbrt(x) ^ 2.0));
	else
		tmp = Float64(Float64(1.0 + Float64(x * Float64(0.3333333333333333 + Float64(x * -0.1111111111111111)))) - cbrt(x));
	end
	return tmp
end
code[x_] := If[Or[LessEqual[x, -1.0], N[Not[LessEqual[x, 1.0]], $MachinePrecision]], N[(0.3333333333333333 / N[Power[N[Power[x, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision], N[(N[(1.0 + N[(x * N[(0.3333333333333333 + N[(x * -0.1111111111111111), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[Power[x, 1/3], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -1 \lor \neg \left(x \leq 1\right):\\
\;\;\;\;\frac{0.3333333333333333}{{\left(\sqrt[3]{x}\right)}^{2}}\\

\mathbf{else}:\\
\;\;\;\;\left(1 + x \cdot \left(0.3333333333333333 + x \cdot -0.1111111111111111\right)\right) - \sqrt[3]{x}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -1 or 1 < x

    1. Initial program 8.9%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Step-by-step derivation
      1. pow1/33.9%

        \[\leadsto \color{blue}{{\left(x + 1\right)}^{0.3333333333333333}} - \sqrt[3]{x} \]
      2. rem-cube-cbrt3.9%

        \[\leadsto {\color{blue}{\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}}^{0.3333333333333333} - \sqrt[3]{x} \]
      3. sqr-pow3.9%

        \[\leadsto \color{blue}{{\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}} - \sqrt[3]{x} \]
      4. pow1/35.1%

        \[\leadsto {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - \color{blue}{{x}^{0.3333333333333333}} \]
      5. sqr-pow5.3%

        \[\leadsto {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - \color{blue}{{x}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {x}^{\left(\frac{0.3333333333333333}{2}\right)}} \]
      6. difference-of-squares5.3%

        \[\leadsto \color{blue}{\left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      7. *-commutative5.3%

        \[\leadsto \color{blue}{\left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      8. rem-cube-cbrt5.4%

        \[\leadsto \left({\color{blue}{\left(x + 1\right)}}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      9. metadata-eval5.4%

        \[\leadsto \left({\left(x + 1\right)}^{\color{blue}{0.16666666666666666}} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      10. metadata-eval5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{\color{blue}{0.16666666666666666}}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      11. +-commutative5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \color{blue}{\left({x}^{\left(\frac{0.3333333333333333}{2}\right)} + {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      12. metadata-eval5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{\color{blue}{0.16666666666666666}} + {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      13. rem-cube-cbrt5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{0.16666666666666666} + {\color{blue}{\left(x + 1\right)}}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      14. metadata-eval5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{0.16666666666666666} + {\left(x + 1\right)}^{\color{blue}{0.16666666666666666}}\right) \]
    3. Applied egg-rr5.4%

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

      \[\leadsto \color{blue}{0.3333333333333333 \cdot {\left(\frac{1}{{x}^{2}}\right)}^{0.3333333333333333}} \]
    5. Step-by-step derivation
      1. unpow1/351.0%

        \[\leadsto 0.3333333333333333 \cdot \color{blue}{\sqrt[3]{\frac{1}{{x}^{2}}}} \]
      2. unpow251.0%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\frac{1}{\color{blue}{x \cdot x}}} \]
    6. Simplified51.0%

      \[\leadsto \color{blue}{0.3333333333333333 \cdot \sqrt[3]{\frac{1}{x \cdot x}}} \]
    7. Step-by-step derivation
      1. cbrt-div51.1%

        \[\leadsto 0.3333333333333333 \cdot \color{blue}{\frac{\sqrt[3]{1}}{\sqrt[3]{x \cdot x}}} \]
      2. metadata-eval51.1%

        \[\leadsto 0.3333333333333333 \cdot \frac{\color{blue}{1}}{\sqrt[3]{x \cdot x}} \]
      3. cbrt-prod95.6%

        \[\leadsto 0.3333333333333333 \cdot \frac{1}{\color{blue}{\sqrt[3]{x} \cdot \sqrt[3]{x}}} \]
      4. un-div-inv95.6%

        \[\leadsto \color{blue}{\frac{0.3333333333333333}{\sqrt[3]{x} \cdot \sqrt[3]{x}}} \]
      5. unpow295.6%

        \[\leadsto \frac{0.3333333333333333}{\color{blue}{{\left(\sqrt[3]{x}\right)}^{2}}} \]
    8. Applied egg-rr95.6%

      \[\leadsto \color{blue}{\frac{0.3333333333333333}{{\left(\sqrt[3]{x}\right)}^{2}}} \]

    if -1 < x < 1

    1. Initial program 100.0%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Taylor expanded in x around 0 99.8%

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

        \[\leadsto \left(1 + \color{blue}{\left(0.3333333333333333 \cdot x + -0.1111111111111111 \cdot {x}^{2}\right)}\right) - \sqrt[3]{x} \]
      2. unpow299.8%

        \[\leadsto \left(1 + \left(0.3333333333333333 \cdot x + -0.1111111111111111 \cdot \color{blue}{\left(x \cdot x\right)}\right)\right) - \sqrt[3]{x} \]
      3. associate-*r*99.8%

        \[\leadsto \left(1 + \left(0.3333333333333333 \cdot x + \color{blue}{\left(-0.1111111111111111 \cdot x\right) \cdot x}\right)\right) - \sqrt[3]{x} \]
      4. distribute-rgt-out99.8%

        \[\leadsto \left(1 + \color{blue}{x \cdot \left(0.3333333333333333 + -0.1111111111111111 \cdot x\right)}\right) - \sqrt[3]{x} \]
    4. Simplified99.8%

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

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

Alternative 10: 75.9% accurate, 1.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -1 \lor \neg \left(x \leq 1\right):\\ \;\;\;\;0.3333333333333333 \cdot \sqrt[3]{\frac{1}{x} \cdot \frac{1}{x}}\\ \mathbf{else}:\\ \;\;\;\;\left(1 + x \cdot \left(0.3333333333333333 + x \cdot -0.1111111111111111\right)\right) - \sqrt[3]{x}\\ \end{array} \end{array} \]
(FPCore (x)
 :precision binary64
 (if (or (<= x -1.0) (not (<= x 1.0)))
   (* 0.3333333333333333 (cbrt (* (/ 1.0 x) (/ 1.0 x))))
   (-
    (+ 1.0 (* x (+ 0.3333333333333333 (* x -0.1111111111111111))))
    (cbrt x))))
double code(double x) {
	double tmp;
	if ((x <= -1.0) || !(x <= 1.0)) {
		tmp = 0.3333333333333333 * cbrt(((1.0 / x) * (1.0 / x)));
	} else {
		tmp = (1.0 + (x * (0.3333333333333333 + (x * -0.1111111111111111)))) - cbrt(x);
	}
	return tmp;
}
public static double code(double x) {
	double tmp;
	if ((x <= -1.0) || !(x <= 1.0)) {
		tmp = 0.3333333333333333 * Math.cbrt(((1.0 / x) * (1.0 / x)));
	} else {
		tmp = (1.0 + (x * (0.3333333333333333 + (x * -0.1111111111111111)))) - Math.cbrt(x);
	}
	return tmp;
}
function code(x)
	tmp = 0.0
	if ((x <= -1.0) || !(x <= 1.0))
		tmp = Float64(0.3333333333333333 * cbrt(Float64(Float64(1.0 / x) * Float64(1.0 / x))));
	else
		tmp = Float64(Float64(1.0 + Float64(x * Float64(0.3333333333333333 + Float64(x * -0.1111111111111111)))) - cbrt(x));
	end
	return tmp
end
code[x_] := If[Or[LessEqual[x, -1.0], N[Not[LessEqual[x, 1.0]], $MachinePrecision]], N[(0.3333333333333333 * N[Power[N[(N[(1.0 / x), $MachinePrecision] * N[(1.0 / x), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision], N[(N[(1.0 + N[(x * N[(0.3333333333333333 + N[(x * -0.1111111111111111), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision] - N[Power[x, 1/3], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -1 \lor \neg \left(x \leq 1\right):\\
\;\;\;\;0.3333333333333333 \cdot \sqrt[3]{\frac{1}{x} \cdot \frac{1}{x}}\\

\mathbf{else}:\\
\;\;\;\;\left(1 + x \cdot \left(0.3333333333333333 + x \cdot -0.1111111111111111\right)\right) - \sqrt[3]{x}\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -1 or 1 < x

    1. Initial program 8.9%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Step-by-step derivation
      1. pow1/33.9%

        \[\leadsto \color{blue}{{\left(x + 1\right)}^{0.3333333333333333}} - \sqrt[3]{x} \]
      2. rem-cube-cbrt3.9%

        \[\leadsto {\color{blue}{\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}}^{0.3333333333333333} - \sqrt[3]{x} \]
      3. sqr-pow3.9%

        \[\leadsto \color{blue}{{\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}} - \sqrt[3]{x} \]
      4. pow1/35.1%

        \[\leadsto {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - \color{blue}{{x}^{0.3333333333333333}} \]
      5. sqr-pow5.3%

        \[\leadsto {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - \color{blue}{{x}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {x}^{\left(\frac{0.3333333333333333}{2}\right)}} \]
      6. difference-of-squares5.3%

        \[\leadsto \color{blue}{\left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      7. *-commutative5.3%

        \[\leadsto \color{blue}{\left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      8. rem-cube-cbrt5.4%

        \[\leadsto \left({\color{blue}{\left(x + 1\right)}}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      9. metadata-eval5.4%

        \[\leadsto \left({\left(x + 1\right)}^{\color{blue}{0.16666666666666666}} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      10. metadata-eval5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{\color{blue}{0.16666666666666666}}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      11. +-commutative5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \color{blue}{\left({x}^{\left(\frac{0.3333333333333333}{2}\right)} + {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      12. metadata-eval5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{\color{blue}{0.16666666666666666}} + {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      13. rem-cube-cbrt5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{0.16666666666666666} + {\color{blue}{\left(x + 1\right)}}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      14. metadata-eval5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{0.16666666666666666} + {\left(x + 1\right)}^{\color{blue}{0.16666666666666666}}\right) \]
    3. Applied egg-rr5.4%

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

      \[\leadsto \color{blue}{0.3333333333333333 \cdot {\left(\frac{1}{{x}^{2}}\right)}^{0.3333333333333333}} \]
    5. Step-by-step derivation
      1. unpow1/351.0%

        \[\leadsto 0.3333333333333333 \cdot \color{blue}{\sqrt[3]{\frac{1}{{x}^{2}}}} \]
      2. unpow251.0%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\frac{1}{\color{blue}{x \cdot x}}} \]
    6. Simplified51.0%

      \[\leadsto \color{blue}{0.3333333333333333 \cdot \sqrt[3]{\frac{1}{x \cdot x}}} \]
    7. Step-by-step derivation
      1. associate-/r*52.6%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\color{blue}{\frac{\frac{1}{x}}{x}}} \]
      2. div-inv52.6%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\color{blue}{\frac{1}{x} \cdot \frac{1}{x}}} \]
    8. Applied egg-rr52.6%

      \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\color{blue}{\frac{1}{x} \cdot \frac{1}{x}}} \]

    if -1 < x < 1

    1. Initial program 100.0%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Taylor expanded in x around 0 99.8%

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

        \[\leadsto \left(1 + \color{blue}{\left(0.3333333333333333 \cdot x + -0.1111111111111111 \cdot {x}^{2}\right)}\right) - \sqrt[3]{x} \]
      2. unpow299.8%

        \[\leadsto \left(1 + \left(0.3333333333333333 \cdot x + -0.1111111111111111 \cdot \color{blue}{\left(x \cdot x\right)}\right)\right) - \sqrt[3]{x} \]
      3. associate-*r*99.8%

        \[\leadsto \left(1 + \left(0.3333333333333333 \cdot x + \color{blue}{\left(-0.1111111111111111 \cdot x\right) \cdot x}\right)\right) - \sqrt[3]{x} \]
      4. distribute-rgt-out99.8%

        \[\leadsto \left(1 + \color{blue}{x \cdot \left(0.3333333333333333 + -0.1111111111111111 \cdot x\right)}\right) - \sqrt[3]{x} \]
    4. Simplified99.8%

      \[\leadsto \color{blue}{\left(1 + x \cdot \left(0.3333333333333333 + -0.1111111111111111 \cdot x\right)\right)} - \sqrt[3]{x} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification74.3%

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

Alternative 11: 75.7% accurate, 1.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -1 \lor \neg \left(x \leq 1\right):\\ \;\;\;\;0.3333333333333333 \cdot \sqrt[3]{\frac{1}{x} \cdot \frac{1}{x}}\\ \mathbf{else}:\\ \;\;\;\;\left(1 + x \cdot 0.3333333333333333\right) - \sqrt[3]{x}\\ \end{array} \end{array} \]
(FPCore (x)
 :precision binary64
 (if (or (<= x -1.0) (not (<= x 1.0)))
   (* 0.3333333333333333 (cbrt (* (/ 1.0 x) (/ 1.0 x))))
   (- (+ 1.0 (* x 0.3333333333333333)) (cbrt x))))
double code(double x) {
	double tmp;
	if ((x <= -1.0) || !(x <= 1.0)) {
		tmp = 0.3333333333333333 * cbrt(((1.0 / x) * (1.0 / x)));
	} else {
		tmp = (1.0 + (x * 0.3333333333333333)) - cbrt(x);
	}
	return tmp;
}
public static double code(double x) {
	double tmp;
	if ((x <= -1.0) || !(x <= 1.0)) {
		tmp = 0.3333333333333333 * Math.cbrt(((1.0 / x) * (1.0 / x)));
	} else {
		tmp = (1.0 + (x * 0.3333333333333333)) - Math.cbrt(x);
	}
	return tmp;
}
function code(x)
	tmp = 0.0
	if ((x <= -1.0) || !(x <= 1.0))
		tmp = Float64(0.3333333333333333 * cbrt(Float64(Float64(1.0 / x) * Float64(1.0 / x))));
	else
		tmp = Float64(Float64(1.0 + Float64(x * 0.3333333333333333)) - cbrt(x));
	end
	return tmp
end
code[x_] := If[Or[LessEqual[x, -1.0], N[Not[LessEqual[x, 1.0]], $MachinePrecision]], N[(0.3333333333333333 * N[Power[N[(N[(1.0 / x), $MachinePrecision] * N[(1.0 / x), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision], N[(N[(1.0 + N[(x * 0.3333333333333333), $MachinePrecision]), $MachinePrecision] - N[Power[x, 1/3], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -1 \lor \neg \left(x \leq 1\right):\\
\;\;\;\;0.3333333333333333 \cdot \sqrt[3]{\frac{1}{x} \cdot \frac{1}{x}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -1 or 1 < x

    1. Initial program 8.9%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Step-by-step derivation
      1. pow1/33.9%

        \[\leadsto \color{blue}{{\left(x + 1\right)}^{0.3333333333333333}} - \sqrt[3]{x} \]
      2. rem-cube-cbrt3.9%

        \[\leadsto {\color{blue}{\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}}^{0.3333333333333333} - \sqrt[3]{x} \]
      3. sqr-pow3.9%

        \[\leadsto \color{blue}{{\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}} - \sqrt[3]{x} \]
      4. pow1/35.1%

        \[\leadsto {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - \color{blue}{{x}^{0.3333333333333333}} \]
      5. sqr-pow5.3%

        \[\leadsto {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - \color{blue}{{x}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {x}^{\left(\frac{0.3333333333333333}{2}\right)}} \]
      6. difference-of-squares5.3%

        \[\leadsto \color{blue}{\left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      7. *-commutative5.3%

        \[\leadsto \color{blue}{\left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      8. rem-cube-cbrt5.4%

        \[\leadsto \left({\color{blue}{\left(x + 1\right)}}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      9. metadata-eval5.4%

        \[\leadsto \left({\left(x + 1\right)}^{\color{blue}{0.16666666666666666}} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      10. metadata-eval5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{\color{blue}{0.16666666666666666}}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      11. +-commutative5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \color{blue}{\left({x}^{\left(\frac{0.3333333333333333}{2}\right)} + {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      12. metadata-eval5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{\color{blue}{0.16666666666666666}} + {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      13. rem-cube-cbrt5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{0.16666666666666666} + {\color{blue}{\left(x + 1\right)}}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      14. metadata-eval5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{0.16666666666666666} + {\left(x + 1\right)}^{\color{blue}{0.16666666666666666}}\right) \]
    3. Applied egg-rr5.4%

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

      \[\leadsto \color{blue}{0.3333333333333333 \cdot {\left(\frac{1}{{x}^{2}}\right)}^{0.3333333333333333}} \]
    5. Step-by-step derivation
      1. unpow1/351.0%

        \[\leadsto 0.3333333333333333 \cdot \color{blue}{\sqrt[3]{\frac{1}{{x}^{2}}}} \]
      2. unpow251.0%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\frac{1}{\color{blue}{x \cdot x}}} \]
    6. Simplified51.0%

      \[\leadsto \color{blue}{0.3333333333333333 \cdot \sqrt[3]{\frac{1}{x \cdot x}}} \]
    7. Step-by-step derivation
      1. associate-/r*52.6%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\color{blue}{\frac{\frac{1}{x}}{x}}} \]
      2. div-inv52.6%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\color{blue}{\frac{1}{x} \cdot \frac{1}{x}}} \]
    8. Applied egg-rr52.6%

      \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\color{blue}{\frac{1}{x} \cdot \frac{1}{x}}} \]

    if -1 < x < 1

    1. Initial program 100.0%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Taylor expanded in x around 0 99.8%

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

        \[\leadsto \left(1 + \color{blue}{\left(0.3333333333333333 \cdot x + -0.1111111111111111 \cdot {x}^{2}\right)}\right) - \sqrt[3]{x} \]
      2. unpow299.8%

        \[\leadsto \left(1 + \left(0.3333333333333333 \cdot x + -0.1111111111111111 \cdot \color{blue}{\left(x \cdot x\right)}\right)\right) - \sqrt[3]{x} \]
      3. associate-*r*99.8%

        \[\leadsto \left(1 + \left(0.3333333333333333 \cdot x + \color{blue}{\left(-0.1111111111111111 \cdot x\right) \cdot x}\right)\right) - \sqrt[3]{x} \]
      4. distribute-rgt-out99.8%

        \[\leadsto \left(1 + \color{blue}{x \cdot \left(0.3333333333333333 + -0.1111111111111111 \cdot x\right)}\right) - \sqrt[3]{x} \]
    4. Simplified99.8%

      \[\leadsto \color{blue}{\left(1 + x \cdot \left(0.3333333333333333 + -0.1111111111111111 \cdot x\right)\right)} - \sqrt[3]{x} \]
    5. Taylor expanded in x around 0 99.6%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1 \lor \neg \left(x \leq 1\right):\\ \;\;\;\;0.3333333333333333 \cdot \sqrt[3]{\frac{1}{x} \cdot \frac{1}{x}}\\ \mathbf{else}:\\ \;\;\;\;\left(1 + x \cdot 0.3333333333333333\right) - \sqrt[3]{x}\\ \end{array} \]

Alternative 12: 75.1% accurate, 1.8× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -1 \lor \neg \left(x \leq 1\right):\\ \;\;\;\;\frac{0.3333333333333333}{\sqrt[3]{x \cdot x}}\\ \mathbf{else}:\\ \;\;\;\;\left(1 + x \cdot 0.3333333333333333\right) - \sqrt[3]{x}\\ \end{array} \end{array} \]
(FPCore (x)
 :precision binary64
 (if (or (<= x -1.0) (not (<= x 1.0)))
   (/ 0.3333333333333333 (cbrt (* x x)))
   (- (+ 1.0 (* x 0.3333333333333333)) (cbrt x))))
double code(double x) {
	double tmp;
	if ((x <= -1.0) || !(x <= 1.0)) {
		tmp = 0.3333333333333333 / cbrt((x * x));
	} else {
		tmp = (1.0 + (x * 0.3333333333333333)) - cbrt(x);
	}
	return tmp;
}
public static double code(double x) {
	double tmp;
	if ((x <= -1.0) || !(x <= 1.0)) {
		tmp = 0.3333333333333333 / Math.cbrt((x * x));
	} else {
		tmp = (1.0 + (x * 0.3333333333333333)) - Math.cbrt(x);
	}
	return tmp;
}
function code(x)
	tmp = 0.0
	if ((x <= -1.0) || !(x <= 1.0))
		tmp = Float64(0.3333333333333333 / cbrt(Float64(x * x)));
	else
		tmp = Float64(Float64(1.0 + Float64(x * 0.3333333333333333)) - cbrt(x));
	end
	return tmp
end
code[x_] := If[Or[LessEqual[x, -1.0], N[Not[LessEqual[x, 1.0]], $MachinePrecision]], N[(0.3333333333333333 / N[Power[N[(x * x), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision], N[(N[(1.0 + N[(x * 0.3333333333333333), $MachinePrecision]), $MachinePrecision] - N[Power[x, 1/3], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -1 \lor \neg \left(x \leq 1\right):\\
\;\;\;\;\frac{0.3333333333333333}{\sqrt[3]{x \cdot x}}\\

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


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -1 or 1 < x

    1. Initial program 8.9%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Step-by-step derivation
      1. pow1/33.9%

        \[\leadsto \color{blue}{{\left(x + 1\right)}^{0.3333333333333333}} - \sqrt[3]{x} \]
      2. rem-cube-cbrt3.9%

        \[\leadsto {\color{blue}{\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}}^{0.3333333333333333} - \sqrt[3]{x} \]
      3. sqr-pow3.9%

        \[\leadsto \color{blue}{{\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}} - \sqrt[3]{x} \]
      4. pow1/35.1%

        \[\leadsto {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - \color{blue}{{x}^{0.3333333333333333}} \]
      5. sqr-pow5.3%

        \[\leadsto {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - \color{blue}{{x}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {x}^{\left(\frac{0.3333333333333333}{2}\right)}} \]
      6. difference-of-squares5.3%

        \[\leadsto \color{blue}{\left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      7. *-commutative5.3%

        \[\leadsto \color{blue}{\left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      8. rem-cube-cbrt5.4%

        \[\leadsto \left({\color{blue}{\left(x + 1\right)}}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      9. metadata-eval5.4%

        \[\leadsto \left({\left(x + 1\right)}^{\color{blue}{0.16666666666666666}} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      10. metadata-eval5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{\color{blue}{0.16666666666666666}}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      11. +-commutative5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \color{blue}{\left({x}^{\left(\frac{0.3333333333333333}{2}\right)} + {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      12. metadata-eval5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{\color{blue}{0.16666666666666666}} + {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      13. rem-cube-cbrt5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{0.16666666666666666} + {\color{blue}{\left(x + 1\right)}}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      14. metadata-eval5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{0.16666666666666666} + {\left(x + 1\right)}^{\color{blue}{0.16666666666666666}}\right) \]
    3. Applied egg-rr5.4%

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

      \[\leadsto \color{blue}{0.3333333333333333 \cdot {\left(\frac{1}{{x}^{2}}\right)}^{0.3333333333333333}} \]
    5. Step-by-step derivation
      1. unpow1/351.0%

        \[\leadsto 0.3333333333333333 \cdot \color{blue}{\sqrt[3]{\frac{1}{{x}^{2}}}} \]
      2. unpow251.0%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\frac{1}{\color{blue}{x \cdot x}}} \]
    6. Simplified51.0%

      \[\leadsto \color{blue}{0.3333333333333333 \cdot \sqrt[3]{\frac{1}{x \cdot x}}} \]
    7. Step-by-step derivation
      1. frac-2neg51.0%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\color{blue}{\frac{-1}{-x \cdot x}}} \]
      2. metadata-eval51.0%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\frac{\color{blue}{-1}}{-x \cdot x}} \]
      3. cbrt-div51.1%

        \[\leadsto 0.3333333333333333 \cdot \color{blue}{\frac{\sqrt[3]{-1}}{\sqrt[3]{-x \cdot x}}} \]
      4. distribute-rgt-neg-in51.1%

        \[\leadsto 0.3333333333333333 \cdot \frac{\sqrt[3]{-1}}{\sqrt[3]{\color{blue}{x \cdot \left(-x\right)}}} \]
    8. Applied egg-rr51.1%

      \[\leadsto 0.3333333333333333 \cdot \color{blue}{\frac{\sqrt[3]{-1}}{\sqrt[3]{x \cdot \left(-x\right)}}} \]
    9. Step-by-step derivation
      1. clear-num51.1%

        \[\leadsto 0.3333333333333333 \cdot \color{blue}{\frac{1}{\frac{\sqrt[3]{x \cdot \left(-x\right)}}{\sqrt[3]{-1}}}} \]
      2. un-div-inv51.2%

        \[\leadsto \color{blue}{\frac{0.3333333333333333}{\frac{\sqrt[3]{x \cdot \left(-x\right)}}{\sqrt[3]{-1}}}} \]
      3. cbrt-undiv51.2%

        \[\leadsto \frac{0.3333333333333333}{\color{blue}{\sqrt[3]{\frac{x \cdot \left(-x\right)}{-1}}}} \]
      4. div-inv51.2%

        \[\leadsto \frac{0.3333333333333333}{\sqrt[3]{\color{blue}{\left(x \cdot \left(-x\right)\right) \cdot \frac{1}{-1}}}} \]
      5. distribute-rgt-neg-out51.2%

        \[\leadsto \frac{0.3333333333333333}{\sqrt[3]{\color{blue}{\left(-x \cdot x\right)} \cdot \frac{1}{-1}}} \]
      6. metadata-eval51.2%

        \[\leadsto \frac{0.3333333333333333}{\sqrt[3]{\left(-x \cdot x\right) \cdot \color{blue}{-1}}} \]
    10. Applied egg-rr51.2%

      \[\leadsto \color{blue}{\frac{0.3333333333333333}{\sqrt[3]{\left(-x \cdot x\right) \cdot -1}}} \]
    11. Step-by-step derivation
      1. *-commutative51.2%

        \[\leadsto \frac{0.3333333333333333}{\sqrt[3]{\color{blue}{-1 \cdot \left(-x \cdot x\right)}}} \]
      2. neg-mul-151.2%

        \[\leadsto \frac{0.3333333333333333}{\sqrt[3]{-1 \cdot \color{blue}{\left(-1 \cdot \left(x \cdot x\right)\right)}}} \]
      3. associate-*r*51.2%

        \[\leadsto \frac{0.3333333333333333}{\sqrt[3]{\color{blue}{\left(-1 \cdot -1\right) \cdot \left(x \cdot x\right)}}} \]
      4. metadata-eval51.2%

        \[\leadsto \frac{0.3333333333333333}{\sqrt[3]{\color{blue}{1} \cdot \left(x \cdot x\right)}} \]
      5. associate-*l*51.2%

        \[\leadsto \frac{0.3333333333333333}{\sqrt[3]{\color{blue}{\left(1 \cdot x\right) \cdot x}}} \]
      6. *-lft-identity51.2%

        \[\leadsto \frac{0.3333333333333333}{\sqrt[3]{\color{blue}{x} \cdot x}} \]
    12. Simplified51.2%

      \[\leadsto \color{blue}{\frac{0.3333333333333333}{\sqrt[3]{x \cdot x}}} \]

    if -1 < x < 1

    1. Initial program 100.0%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Taylor expanded in x around 0 99.8%

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

        \[\leadsto \left(1 + \color{blue}{\left(0.3333333333333333 \cdot x + -0.1111111111111111 \cdot {x}^{2}\right)}\right) - \sqrt[3]{x} \]
      2. unpow299.8%

        \[\leadsto \left(1 + \left(0.3333333333333333 \cdot x + -0.1111111111111111 \cdot \color{blue}{\left(x \cdot x\right)}\right)\right) - \sqrt[3]{x} \]
      3. associate-*r*99.8%

        \[\leadsto \left(1 + \left(0.3333333333333333 \cdot x + \color{blue}{\left(-0.1111111111111111 \cdot x\right) \cdot x}\right)\right) - \sqrt[3]{x} \]
      4. distribute-rgt-out99.8%

        \[\leadsto \left(1 + \color{blue}{x \cdot \left(0.3333333333333333 + -0.1111111111111111 \cdot x\right)}\right) - \sqrt[3]{x} \]
    4. Simplified99.8%

      \[\leadsto \color{blue}{\left(1 + x \cdot \left(0.3333333333333333 + -0.1111111111111111 \cdot x\right)\right)} - \sqrt[3]{x} \]
    5. Taylor expanded in x around 0 99.6%

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

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -1 \lor \neg \left(x \leq 1\right):\\ \;\;\;\;\frac{0.3333333333333333}{\sqrt[3]{x \cdot x}}\\ \mathbf{else}:\\ \;\;\;\;\left(1 + x \cdot 0.3333333333333333\right) - \sqrt[3]{x}\\ \end{array} \]

Alternative 13: 72.4% accurate, 1.9× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;x \leq -0.082 \lor \neg \left(x \leq 0.26\right):\\ \;\;\;\;\frac{0.3333333333333333}{\sqrt[3]{x \cdot x}}\\ \mathbf{else}:\\ \;\;\;\;1 + x \cdot -0.6666666666666666\\ \end{array} \end{array} \]
(FPCore (x)
 :precision binary64
 (if (or (<= x -0.082) (not (<= x 0.26)))
   (/ 0.3333333333333333 (cbrt (* x x)))
   (+ 1.0 (* x -0.6666666666666666))))
double code(double x) {
	double tmp;
	if ((x <= -0.082) || !(x <= 0.26)) {
		tmp = 0.3333333333333333 / cbrt((x * x));
	} else {
		tmp = 1.0 + (x * -0.6666666666666666);
	}
	return tmp;
}
public static double code(double x) {
	double tmp;
	if ((x <= -0.082) || !(x <= 0.26)) {
		tmp = 0.3333333333333333 / Math.cbrt((x * x));
	} else {
		tmp = 1.0 + (x * -0.6666666666666666);
	}
	return tmp;
}
function code(x)
	tmp = 0.0
	if ((x <= -0.082) || !(x <= 0.26))
		tmp = Float64(0.3333333333333333 / cbrt(Float64(x * x)));
	else
		tmp = Float64(1.0 + Float64(x * -0.6666666666666666));
	end
	return tmp
end
code[x_] := If[Or[LessEqual[x, -0.082], N[Not[LessEqual[x, 0.26]], $MachinePrecision]], N[(0.3333333333333333 / N[Power[N[(x * x), $MachinePrecision], 1/3], $MachinePrecision]), $MachinePrecision], N[(1.0 + N[(x * -0.6666666666666666), $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

\\
\begin{array}{l}
\mathbf{if}\;x \leq -0.082 \lor \neg \left(x \leq 0.26\right):\\
\;\;\;\;\frac{0.3333333333333333}{\sqrt[3]{x \cdot x}}\\

\mathbf{else}:\\
\;\;\;\;1 + x \cdot -0.6666666666666666\\


\end{array}
\end{array}
Derivation
  1. Split input into 2 regimes
  2. if x < -0.0820000000000000034 or 0.26000000000000001 < x

    1. Initial program 8.9%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Step-by-step derivation
      1. pow1/33.9%

        \[\leadsto \color{blue}{{\left(x + 1\right)}^{0.3333333333333333}} - \sqrt[3]{x} \]
      2. rem-cube-cbrt3.9%

        \[\leadsto {\color{blue}{\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}}^{0.3333333333333333} - \sqrt[3]{x} \]
      3. sqr-pow3.9%

        \[\leadsto \color{blue}{{\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}} - \sqrt[3]{x} \]
      4. pow1/35.1%

        \[\leadsto {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - \color{blue}{{x}^{0.3333333333333333}} \]
      5. sqr-pow5.3%

        \[\leadsto {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - \color{blue}{{x}^{\left(\frac{0.3333333333333333}{2}\right)} \cdot {x}^{\left(\frac{0.3333333333333333}{2}\right)}} \]
      6. difference-of-squares5.3%

        \[\leadsto \color{blue}{\left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      7. *-commutative5.3%

        \[\leadsto \color{blue}{\left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      8. rem-cube-cbrt5.4%

        \[\leadsto \left({\color{blue}{\left(x + 1\right)}}^{\left(\frac{0.3333333333333333}{2}\right)} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      9. metadata-eval5.4%

        \[\leadsto \left({\left(x + 1\right)}^{\color{blue}{0.16666666666666666}} - {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      10. metadata-eval5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{\color{blue}{0.16666666666666666}}\right) \cdot \left({\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)} + {x}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      11. +-commutative5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \color{blue}{\left({x}^{\left(\frac{0.3333333333333333}{2}\right)} + {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}\right)} \]
      12. metadata-eval5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{\color{blue}{0.16666666666666666}} + {\left({\left(\sqrt[3]{x + 1}\right)}^{3}\right)}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      13. rem-cube-cbrt5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{0.16666666666666666} + {\color{blue}{\left(x + 1\right)}}^{\left(\frac{0.3333333333333333}{2}\right)}\right) \]
      14. metadata-eval5.4%

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} - {x}^{0.16666666666666666}\right) \cdot \left({x}^{0.16666666666666666} + {\left(x + 1\right)}^{\color{blue}{0.16666666666666666}}\right) \]
    3. Applied egg-rr5.4%

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

      \[\leadsto \color{blue}{0.3333333333333333 \cdot {\left(\frac{1}{{x}^{2}}\right)}^{0.3333333333333333}} \]
    5. Step-by-step derivation
      1. unpow1/351.0%

        \[\leadsto 0.3333333333333333 \cdot \color{blue}{\sqrt[3]{\frac{1}{{x}^{2}}}} \]
      2. unpow251.0%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\frac{1}{\color{blue}{x \cdot x}}} \]
    6. Simplified51.0%

      \[\leadsto \color{blue}{0.3333333333333333 \cdot \sqrt[3]{\frac{1}{x \cdot x}}} \]
    7. Step-by-step derivation
      1. frac-2neg51.0%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\color{blue}{\frac{-1}{-x \cdot x}}} \]
      2. metadata-eval51.0%

        \[\leadsto 0.3333333333333333 \cdot \sqrt[3]{\frac{\color{blue}{-1}}{-x \cdot x}} \]
      3. cbrt-div51.1%

        \[\leadsto 0.3333333333333333 \cdot \color{blue}{\frac{\sqrt[3]{-1}}{\sqrt[3]{-x \cdot x}}} \]
      4. distribute-rgt-neg-in51.1%

        \[\leadsto 0.3333333333333333 \cdot \frac{\sqrt[3]{-1}}{\sqrt[3]{\color{blue}{x \cdot \left(-x\right)}}} \]
    8. Applied egg-rr51.1%

      \[\leadsto 0.3333333333333333 \cdot \color{blue}{\frac{\sqrt[3]{-1}}{\sqrt[3]{x \cdot \left(-x\right)}}} \]
    9. Step-by-step derivation
      1. clear-num51.1%

        \[\leadsto 0.3333333333333333 \cdot \color{blue}{\frac{1}{\frac{\sqrt[3]{x \cdot \left(-x\right)}}{\sqrt[3]{-1}}}} \]
      2. un-div-inv51.2%

        \[\leadsto \color{blue}{\frac{0.3333333333333333}{\frac{\sqrt[3]{x \cdot \left(-x\right)}}{\sqrt[3]{-1}}}} \]
      3. cbrt-undiv51.2%

        \[\leadsto \frac{0.3333333333333333}{\color{blue}{\sqrt[3]{\frac{x \cdot \left(-x\right)}{-1}}}} \]
      4. div-inv51.2%

        \[\leadsto \frac{0.3333333333333333}{\sqrt[3]{\color{blue}{\left(x \cdot \left(-x\right)\right) \cdot \frac{1}{-1}}}} \]
      5. distribute-rgt-neg-out51.2%

        \[\leadsto \frac{0.3333333333333333}{\sqrt[3]{\color{blue}{\left(-x \cdot x\right)} \cdot \frac{1}{-1}}} \]
      6. metadata-eval51.2%

        \[\leadsto \frac{0.3333333333333333}{\sqrt[3]{\left(-x \cdot x\right) \cdot \color{blue}{-1}}} \]
    10. Applied egg-rr51.2%

      \[\leadsto \color{blue}{\frac{0.3333333333333333}{\sqrt[3]{\left(-x \cdot x\right) \cdot -1}}} \]
    11. Step-by-step derivation
      1. *-commutative51.2%

        \[\leadsto \frac{0.3333333333333333}{\sqrt[3]{\color{blue}{-1 \cdot \left(-x \cdot x\right)}}} \]
      2. neg-mul-151.2%

        \[\leadsto \frac{0.3333333333333333}{\sqrt[3]{-1 \cdot \color{blue}{\left(-1 \cdot \left(x \cdot x\right)\right)}}} \]
      3. associate-*r*51.2%

        \[\leadsto \frac{0.3333333333333333}{\sqrt[3]{\color{blue}{\left(-1 \cdot -1\right) \cdot \left(x \cdot x\right)}}} \]
      4. metadata-eval51.2%

        \[\leadsto \frac{0.3333333333333333}{\sqrt[3]{\color{blue}{1} \cdot \left(x \cdot x\right)}} \]
      5. associate-*l*51.2%

        \[\leadsto \frac{0.3333333333333333}{\sqrt[3]{\color{blue}{\left(1 \cdot x\right) \cdot x}}} \]
      6. *-lft-identity51.2%

        \[\leadsto \frac{0.3333333333333333}{\sqrt[3]{\color{blue}{x} \cdot x}} \]
    12. Simplified51.2%

      \[\leadsto \color{blue}{\frac{0.3333333333333333}{\sqrt[3]{x \cdot x}}} \]

    if -0.0820000000000000034 < x < 0.26000000000000001

    1. Initial program 100.0%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Step-by-step derivation
      1. add-exp-log_binary64100.0%

        \[\leadsto \color{blue}{e^{\log \left(\sqrt[3]{x + 1} - \sqrt[3]{x}\right)}} \]
    3. Applied rewrite-once100.0%

      \[\leadsto \color{blue}{e^{\log \left(\sqrt[3]{x + 1} - \sqrt[3]{x}\right)}} \]
    4. Step-by-step derivation
      1. flip3--99.9%

        \[\leadsto e^{\log \color{blue}{\left(\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)}\right)}} \]
      2. log-div99.9%

        \[\leadsto e^{\color{blue}{\log \left({\left(\sqrt[3]{x + 1}\right)}^{3} - {\left(\sqrt[3]{x}\right)}^{3}\right) - \log \left(\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)\right)}} \]
      3. +-commutative99.9%

        \[\leadsto e^{\log \left({\left(\sqrt[3]{\color{blue}{1 + x}}\right)}^{3} - {\left(\sqrt[3]{x}\right)}^{3}\right) - \log \left(\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)\right)} \]
      4. rem-cube-cbrt99.9%

        \[\leadsto e^{\log \left(\color{blue}{\left(1 + x\right)} - {\left(\sqrt[3]{x}\right)}^{3}\right) - \log \left(\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)\right)} \]
      5. rem-cube-cbrt99.9%

        \[\leadsto e^{\log \left(\left(1 + x\right) - \color{blue}{x}\right) - \log \left(\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)\right)} \]
      6. +-commutative99.9%

        \[\leadsto e^{\log \left(\color{blue}{\left(x + 1\right)} - x\right) - \log \left(\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)\right)} \]
      7. +-commutative99.9%

        \[\leadsto e^{\log \left(\left(x + 1\right) - x\right) - \log \left(\sqrt[3]{\color{blue}{1 + x}} \cdot \sqrt[3]{x + 1} + \left(\sqrt[3]{x} \cdot \sqrt[3]{x} + \sqrt[3]{x + 1} \cdot \sqrt[3]{x}\right)\right)} \]
      8. +-commutative99.9%

        \[\leadsto e^{\log \left(\left(x + 1\right) - x\right) - \log \left(\sqrt[3]{1 + x} \cdot \sqrt[3]{\color{blue}{1 + x}} + \left(\sqrt[3]{x} \cdot \sqrt[3]{x} + \sqrt[3]{x + 1} \cdot \sqrt[3]{x}\right)\right)} \]
    5. Applied egg-rr99.9%

      \[\leadsto e^{\color{blue}{\log \left(\left(x + 1\right) - x\right) - \log \left(\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x + 1} + \sqrt[3]{x}, \sqrt[3]{{\left(x + 1\right)}^{2}}\right)\right)}} \]
    6. Taylor expanded in x around 0 94.3%

      \[\leadsto \color{blue}{1 + -0.6666666666666666 \cdot x} \]
    7. Step-by-step derivation
      1. *-commutative94.3%

        \[\leadsto 1 + \color{blue}{x \cdot -0.6666666666666666} \]
    8. Simplified94.3%

      \[\leadsto \color{blue}{1 + x \cdot -0.6666666666666666} \]
  3. Recombined 2 regimes into one program.
  4. Final simplification71.1%

    \[\leadsto \begin{array}{l} \mathbf{if}\;x \leq -0.082 \lor \neg \left(x \leq 0.26\right):\\ \;\;\;\;\frac{0.3333333333333333}{\sqrt[3]{x \cdot x}}\\ \mathbf{else}:\\ \;\;\;\;1 + x \cdot -0.6666666666666666\\ \end{array} \]

Alternative 14: 3.6% accurate, 205.0× speedup?

\[\begin{array}{l} \\ 0 \end{array} \]
(FPCore (x) :precision binary64 0.0)
double code(double x) {
	return 0.0;
}
real(8) function code(x)
    real(8), intent (in) :: x
    code = 0.0d0
end function
public static double code(double x) {
	return 0.0;
}
def code(x):
	return 0.0
function code(x)
	return 0.0
end
function tmp = code(x)
	tmp = 0.0;
end
code[x_] := 0.0
\begin{array}{l}

\\
0
\end{array}
Derivation
  1. Initial program 50.8%

    \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
  2. Taylor expanded in x around inf 3.7%

    \[\leadsto \color{blue}{0} \]
  3. Final simplification3.7%

    \[\leadsto 0 \]

Alternative 15: 50.0% accurate, 205.0× speedup?

\[\begin{array}{l} \\ 1 \end{array} \]
(FPCore (x) :precision binary64 1.0)
double code(double x) {
	return 1.0;
}
real(8) function code(x)
    real(8), intent (in) :: x
    code = 1.0d0
end function
public static double code(double x) {
	return 1.0;
}
def code(x):
	return 1.0
function code(x)
	return 1.0
end
function tmp = code(x)
	tmp = 1.0;
end
code[x_] := 1.0
\begin{array}{l}

\\
1
\end{array}
Derivation
  1. Initial program 50.8%

    \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
  2. Taylor expanded in x around 0 47.0%

    \[\leadsto \color{blue}{1} \]
  3. Final simplification47.0%

    \[\leadsto 1 \]

Reproduce

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