2cbrt (problem 3.3.4)

Percentage Accurate: 52.8% → 99.2%
Time: 11.1s
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: 52.8% 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} \\ \begin{array}{l} t_0 := \sqrt[3]{1 + x}\\ t_1 := \sqrt[3]{x} + t_0\\ \mathbf{if}\;t_0 - \sqrt[3]{x} \leq 0:\\ \;\;\;\;\frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, t_1, {\left(\sqrt[3]{x}\right)}^{2}\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(1 + x\right) - x}{\sqrt[3]{{\left(1 + x\right)}^{2}} + \sqrt[3]{x} \cdot t_1}\\ \end{array} \end{array} \]
(FPCore (x)
 :precision binary64
 (let* ((t_0 (cbrt (+ 1.0 x))) (t_1 (+ (cbrt x) t_0)))
   (if (<= (- t_0 (cbrt x)) 0.0)
     (/ 1.0 (fma (cbrt x) t_1 (pow (cbrt x) 2.0)))
     (/ (- (+ 1.0 x) x) (+ (cbrt (pow (+ 1.0 x) 2.0)) (* (cbrt x) t_1))))))
double code(double x) {
	double t_0 = cbrt((1.0 + x));
	double t_1 = cbrt(x) + t_0;
	double tmp;
	if ((t_0 - cbrt(x)) <= 0.0) {
		tmp = 1.0 / fma(cbrt(x), t_1, pow(cbrt(x), 2.0));
	} else {
		tmp = ((1.0 + x) - x) / (cbrt(pow((1.0 + x), 2.0)) + (cbrt(x) * t_1));
	}
	return tmp;
}
function code(x)
	t_0 = cbrt(Float64(1.0 + x))
	t_1 = Float64(cbrt(x) + t_0)
	tmp = 0.0
	if (Float64(t_0 - cbrt(x)) <= 0.0)
		tmp = Float64(1.0 / fma(cbrt(x), t_1, (cbrt(x) ^ 2.0)));
	else
		tmp = Float64(Float64(Float64(1.0 + x) - x) / Float64(cbrt((Float64(1.0 + x) ^ 2.0)) + Float64(cbrt(x) * t_1)));
	end
	return tmp
end
code[x_] := Block[{t$95$0 = N[Power[N[(1.0 + x), $MachinePrecision], 1/3], $MachinePrecision]}, Block[{t$95$1 = N[(N[Power[x, 1/3], $MachinePrecision] + t$95$0), $MachinePrecision]}, If[LessEqual[N[(t$95$0 - N[Power[x, 1/3], $MachinePrecision]), $MachinePrecision], 0.0], N[(1.0 / N[(N[Power[x, 1/3], $MachinePrecision] * t$95$1 + N[Power[N[Power[x, 1/3], $MachinePrecision], 2.0], $MachinePrecision]), $MachinePrecision]), $MachinePrecision], N[(N[(N[(1.0 + x), $MachinePrecision] - x), $MachinePrecision] / N[(N[Power[N[Power[N[(1.0 + x), $MachinePrecision], 2.0], $MachinePrecision], 1/3], $MachinePrecision] + N[(N[Power[x, 1/3], $MachinePrecision] * t$95$1), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := \sqrt[3]{1 + x}\\
t_1 := \sqrt[3]{x} + t_0\\
\mathbf{if}\;t_0 - \sqrt[3]{x} \leq 0:\\
\;\;\;\;\frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, t_1, {\left(\sqrt[3]{x}\right)}^{2}\right)}\\

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


\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. flip3--4.2%

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\left(\left(x + 1\right) - x\right) \cdot \frac{1}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)}} \]
    4. Step-by-step derivation
      1. associate-*r/4.2%

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

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

        \[\leadsto \frac{\color{blue}{\left(1 + x\right)} - x}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)} \]
      4. associate--l+50.9%

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{1 + x} + \sqrt[3]{x}, \color{blue}{{\left(1 + x\right)}^{0.6666666666666666}}\right)} \]
    8. Taylor expanded in x around inf 48.6%

      \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{1 + x} + \sqrt[3]{x}, \color{blue}{{\left({x}^{2}\right)}^{0.3333333333333333}}\right)} \]
    9. Step-by-step derivation
      1. expm1-log1p-u48.6%

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{e^{\mathsf{log1p}\left(\frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x} + \sqrt[3]{x + 1}, {\left(\sqrt[3]{x}\right)}^{2}\right)}\right)} - 1} \]
    11. Step-by-step derivation
      1. expm1-def98.4%

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

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

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

    if 0.0 < (-.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. flip3--98.4%

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

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

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

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

        \[\leadsto \frac{\left(x + 1\right) - x}{\sqrt[3]{\color{blue}{{\left(x + 1\right)}^{2}}} + \left(\sqrt[3]{x} \cdot \sqrt[3]{x} + \sqrt[3]{x + 1} \cdot \sqrt[3]{x}\right)} \]
      6. distribute-rgt-out99.8%

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

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

      \[\leadsto \color{blue}{\frac{\left(x + 1\right) - x}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)}} \]
  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:\\ \;\;\;\;\frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x} + \sqrt[3]{1 + x}, {\left(\sqrt[3]{x}\right)}^{2}\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(1 + x\right) - x}{\sqrt[3]{{\left(1 + x\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x} + \sqrt[3]{1 + x}\right)}\\ \end{array} \]

Alternative 2: 99.1% accurate, 0.2× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := \sqrt[3]{1 + x}\\ \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{\sqrt[3]{x}} \cdot \sqrt[3]{{\left(\sqrt[3]{x}\right)}^{2}} + t_0, {t_0}^{2}\right)} \end{array} \end{array} \]
(FPCore (x)
 :precision binary64
 (let* ((t_0 (cbrt (+ 1.0 x))))
   (/
    1.0
    (fma
     (cbrt x)
     (+ (* (cbrt (cbrt x)) (cbrt (pow (cbrt x) 2.0))) t_0)
     (pow t_0 2.0)))))
double code(double x) {
	double t_0 = cbrt((1.0 + x));
	return 1.0 / fma(cbrt(x), ((cbrt(cbrt(x)) * cbrt(pow(cbrt(x), 2.0))) + t_0), pow(t_0, 2.0));
}
function code(x)
	t_0 = cbrt(Float64(1.0 + x))
	return Float64(1.0 / fma(cbrt(x), Float64(Float64(cbrt(cbrt(x)) * cbrt((cbrt(x) ^ 2.0))) + t_0), (t_0 ^ 2.0)))
end
code[x_] := Block[{t$95$0 = N[Power[N[(1.0 + x), $MachinePrecision], 1/3], $MachinePrecision]}, N[(1.0 / N[(N[Power[x, 1/3], $MachinePrecision] * N[(N[(N[Power[N[Power[x, 1/3], $MachinePrecision], 1/3], $MachinePrecision] * N[Power[N[Power[N[Power[x, 1/3], $MachinePrecision], 2.0], $MachinePrecision], 1/3], $MachinePrecision]), $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]{1 + x}\\
\frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{\sqrt[3]{x}} \cdot \sqrt[3]{{\left(\sqrt[3]{x}\right)}^{2}} + t_0, {t_0}^{2}\right)}
\end{array}
\end{array}
Derivation
  1. Initial program 56.4%

    \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
  2. Step-by-step derivation
    1. flip3--56.4%

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

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

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

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

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

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

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

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

    \[\leadsto \color{blue}{\left(\left(x + 1\right) - x\right) \cdot \frac{1}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)}} \]
  4. Step-by-step derivation
    1. associate-*r/57.2%

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

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

      \[\leadsto \frac{\color{blue}{\left(1 + x\right)} - x}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)} \]
    4. associate--l+78.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{1 + x} + \color{blue}{{x}^{0.3333333333333333}}, {\left(\sqrt[3]{1 + x}\right)}^{2}\right)} \]
    2. add-cube-cbrt50.0%

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

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

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

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

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

      \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{1 + x} + \color{blue}{\sqrt[3]{\sqrt[3]{x}} \cdot {\left({\left(\sqrt[3]{x}\right)}^{2}\right)}^{0.3333333333333333}}, {\left(\sqrt[3]{1 + x}\right)}^{2}\right)} \]
    2. unpow1/399.2%

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

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

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

Alternative 3: 99.2% accurate, 0.3× speedup?

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

\\
\begin{array}{l}
t_0 := \sqrt[3]{1 + x}\\
t_1 := \sqrt[3]{x} + t_0\\
\mathbf{if}\;t_0 - \sqrt[3]{x} \leq 0:\\
\;\;\;\;\frac{1}{\sqrt[3]{x} \cdot \left(\sqrt[3]{x} + t_1\right)}\\

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


\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. flip3--4.2%

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\left(\left(x + 1\right) - x\right) \cdot \frac{1}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)}} \]
    4. Step-by-step derivation
      1. associate-*r/4.2%

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

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

        \[\leadsto \frac{\color{blue}{\left(1 + x\right)} - x}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)} \]
      4. associate--l+50.9%

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{1 + x} + \sqrt[3]{x}, \color{blue}{{\left(1 + x\right)}^{0.6666666666666666}}\right)} \]
    8. Taylor expanded in x around inf 48.6%

      \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{1 + x} + \sqrt[3]{x}, \color{blue}{{\left({x}^{2}\right)}^{0.3333333333333333}}\right)} \]
    9. Step-by-step derivation
      1. expm1-log1p-u48.6%

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{e^{\mathsf{log1p}\left(\frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x} + \sqrt[3]{x + 1}, {\left(\sqrt[3]{x}\right)}^{2}\right)}\right)} - 1} \]
    11. Step-by-step derivation
      1. expm1-def98.4%

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

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

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

        \[\leadsto \frac{1}{\sqrt[3]{x} \cdot \left(\sqrt[3]{x} + \sqrt[3]{x + 1}\right) + \color{blue}{\sqrt[3]{x} \cdot \sqrt[3]{x}}} \]
      5. distribute-lft-out98.4%

        \[\leadsto \frac{1}{\color{blue}{\sqrt[3]{x} \cdot \left(\left(\sqrt[3]{x} + \sqrt[3]{x + 1}\right) + \sqrt[3]{x}\right)}} \]
    12. Simplified98.4%

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

    if 0.0 < (-.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. flip3--98.4%

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

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

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

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

        \[\leadsto \frac{\left(x + 1\right) - x}{\sqrt[3]{\color{blue}{{\left(x + 1\right)}^{2}}} + \left(\sqrt[3]{x} \cdot \sqrt[3]{x} + \sqrt[3]{x + 1} \cdot \sqrt[3]{x}\right)} \]
      6. distribute-rgt-out99.8%

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

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

      \[\leadsto \color{blue}{\frac{\left(x + 1\right) - x}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)}} \]
  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:\\ \;\;\;\;\frac{1}{\sqrt[3]{x} \cdot \left(\sqrt[3]{x} + \left(\sqrt[3]{x} + \sqrt[3]{1 + x}\right)\right)}\\ \mathbf{else}:\\ \;\;\;\;\frac{\left(1 + x\right) - x}{\sqrt[3]{{\left(1 + x\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x} + \sqrt[3]{1 + x}\right)}\\ \end{array} \]

Alternative 4: 98.8% accurate, 0.3× speedup?

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

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

\mathbf{else}:\\
\;\;\;\;\sqrt[3]{\frac{1}{\frac{1 - x}{1 - x \cdot x}}} - \sqrt[3]{x}\\


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

    1. Initial program 4.8%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Step-by-step derivation
      1. flip3--4.8%

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

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

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

        \[\leadsto \left(\left(x + 1\right) - \color{blue}{x}\right) \cdot \frac{1}{\sqrt[3]{x + 1} \cdot \sqrt[3]{x + 1} + \left(\sqrt[3]{x} \cdot \sqrt[3]{x} + \sqrt[3]{x + 1} \cdot \sqrt[3]{x}\right)} \]
      5. cbrt-unprod5.8%

        \[\leadsto \left(\left(x + 1\right) - x\right) \cdot \frac{1}{\color{blue}{\sqrt[3]{\left(x + 1\right) \cdot \left(x + 1\right)}} + \left(\sqrt[3]{x} \cdot \sqrt[3]{x} + \sqrt[3]{x + 1} \cdot \sqrt[3]{x}\right)} \]
      6. pow25.8%

        \[\leadsto \left(\left(x + 1\right) - x\right) \cdot \frac{1}{\sqrt[3]{\color{blue}{{\left(x + 1\right)}^{2}}} + \left(\sqrt[3]{x} \cdot \sqrt[3]{x} + \sqrt[3]{x + 1} \cdot \sqrt[3]{x}\right)} \]
      7. distribute-rgt-out5.8%

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

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

      \[\leadsto \color{blue}{\left(\left(x + 1\right) - x\right) \cdot \frac{1}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)}} \]
    4. Step-by-step derivation
      1. associate-*r/5.8%

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

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

        \[\leadsto \frac{\color{blue}{\left(1 + x\right)} - x}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)} \]
      4. associate--l+51.7%

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{1 + x} + \sqrt[3]{x}, \color{blue}{{\left(1 + x\right)}^{0.6666666666666666}}\right)} \]
    8. Taylor expanded in x around inf 49.2%

      \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{1 + x} + \sqrt[3]{x}, \color{blue}{{\left({x}^{2}\right)}^{0.3333333333333333}}\right)} \]
    9. Step-by-step derivation
      1. expm1-log1p-u49.2%

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{e^{\mathsf{log1p}\left(\frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x} + \sqrt[3]{x + 1}, {\left(\sqrt[3]{x}\right)}^{2}\right)}\right)} - 1} \]
    11. Step-by-step derivation
      1. expm1-def98.1%

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

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

        \[\leadsto \frac{1}{\color{blue}{\sqrt[3]{x} \cdot \left(\sqrt[3]{x} + \sqrt[3]{x + 1}\right) + {\left(\sqrt[3]{x}\right)}^{2}}} \]
      4. unpow298.0%

        \[\leadsto \frac{1}{\sqrt[3]{x} \cdot \left(\sqrt[3]{x} + \sqrt[3]{x + 1}\right) + \color{blue}{\sqrt[3]{x} \cdot \sqrt[3]{x}}} \]
      5. distribute-lft-out98.1%

        \[\leadsto \frac{1}{\color{blue}{\sqrt[3]{x} \cdot \left(\left(\sqrt[3]{x} + \sqrt[3]{x + 1}\right) + \sqrt[3]{x}\right)}} \]
    12. Simplified98.1%

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

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

    1. Initial program 99.1%

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

        \[\leadsto \color{blue}{e^{\log \left(\sqrt[3]{x + 1}\right)}} - \sqrt[3]{x} \]
      2. pow1/397.6%

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

        \[\leadsto e^{\color{blue}{0.3333333333333333 \cdot \log \left(x + 1\right)}} - \sqrt[3]{x} \]
      4. +-commutative97.6%

        \[\leadsto e^{0.3333333333333333 \cdot \log \color{blue}{\left(1 + x\right)}} - \sqrt[3]{x} \]
      5. log1p-udef97.6%

        \[\leadsto e^{0.3333333333333333 \cdot \color{blue}{\mathsf{log1p}\left(x\right)}} - \sqrt[3]{x} \]
    3. Applied egg-rr97.6%

      \[\leadsto \color{blue}{e^{0.3333333333333333 \cdot \mathsf{log1p}\left(x\right)}} - \sqrt[3]{x} \]
    4. Step-by-step derivation
      1. *-commutative97.6%

        \[\leadsto e^{\color{blue}{\mathsf{log1p}\left(x\right) \cdot 0.3333333333333333}} - \sqrt[3]{x} \]
      2. exp-prod97.6%

        \[\leadsto \color{blue}{{\left(e^{\mathsf{log1p}\left(x\right)}\right)}^{0.3333333333333333}} - \sqrt[3]{x} \]
      3. unpow1/397.6%

        \[\leadsto \color{blue}{\sqrt[3]{e^{\mathsf{log1p}\left(x\right)}}} - \sqrt[3]{x} \]
    5. Simplified97.6%

      \[\leadsto \color{blue}{\sqrt[3]{e^{\mathsf{log1p}\left(x\right)}}} - \sqrt[3]{x} \]
    6. Step-by-step derivation
      1. log1p-udef97.6%

        \[\leadsto \sqrt[3]{e^{\color{blue}{\log \left(1 + x\right)}}} - \sqrt[3]{x} \]
      2. add-exp-log99.1%

        \[\leadsto \sqrt[3]{\color{blue}{1 + x}} - \sqrt[3]{x} \]
      3. flip-+99.1%

        \[\leadsto \sqrt[3]{\color{blue}{\frac{1 \cdot 1 - x \cdot x}{1 - x}}} - \sqrt[3]{x} \]
      4. clear-num99.1%

        \[\leadsto \sqrt[3]{\color{blue}{\frac{1}{\frac{1 - x}{1 \cdot 1 - x \cdot x}}}} - \sqrt[3]{x} \]
      5. metadata-eval99.1%

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

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

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

Alternative 5: 60.4% accurate, 0.3× speedup?

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

\\
\begin{array}{l}
t_0 := \sqrt[3]{1 + x}\\
\mathbf{if}\;t_0 - \sqrt[3]{x} \leq 0:\\
\;\;\;\;\frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x} + t_0, 1\right)}\\

\mathbf{else}:\\
\;\;\;\;\sqrt[3]{\frac{1}{\frac{1 - x}{1 - x \cdot x}}} - \sqrt[3]{x}\\


\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. flip3--4.2%

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\left(\left(x + 1\right) - x\right) \cdot \frac{1}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)}} \]
    4. Step-by-step derivation
      1. associate-*r/4.2%

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

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

        \[\leadsto \frac{\color{blue}{\left(1 + x\right)} - x}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)} \]
      4. associate--l+50.9%

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

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

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

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

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

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

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

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

      \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{1 + x} + \sqrt[3]{x}, \color{blue}{1}\right)} \]

    if 0.0 < (-.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. add-exp-log96.6%

        \[\leadsto \color{blue}{e^{\log \left(\sqrt[3]{x + 1}\right)}} - \sqrt[3]{x} \]
      2. pow1/396.7%

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

        \[\leadsto e^{\color{blue}{0.3333333333333333 \cdot \log \left(x + 1\right)}} - \sqrt[3]{x} \]
      4. +-commutative96.6%

        \[\leadsto e^{0.3333333333333333 \cdot \log \color{blue}{\left(1 + x\right)}} - \sqrt[3]{x} \]
      5. log1p-udef96.6%

        \[\leadsto e^{0.3333333333333333 \cdot \color{blue}{\mathsf{log1p}\left(x\right)}} - \sqrt[3]{x} \]
    3. Applied egg-rr96.6%

      \[\leadsto \color{blue}{e^{0.3333333333333333 \cdot \mathsf{log1p}\left(x\right)}} - \sqrt[3]{x} \]
    4. Step-by-step derivation
      1. *-commutative96.6%

        \[\leadsto e^{\color{blue}{\mathsf{log1p}\left(x\right) \cdot 0.3333333333333333}} - \sqrt[3]{x} \]
      2. exp-prod96.7%

        \[\leadsto \color{blue}{{\left(e^{\mathsf{log1p}\left(x\right)}\right)}^{0.3333333333333333}} - \sqrt[3]{x} \]
      3. unpow1/396.6%

        \[\leadsto \color{blue}{\sqrt[3]{e^{\mathsf{log1p}\left(x\right)}}} - \sqrt[3]{x} \]
    5. Simplified96.6%

      \[\leadsto \color{blue}{\sqrt[3]{e^{\mathsf{log1p}\left(x\right)}}} - \sqrt[3]{x} \]
    6. Step-by-step derivation
      1. log1p-udef96.6%

        \[\leadsto \sqrt[3]{e^{\color{blue}{\log \left(1 + x\right)}}} - \sqrt[3]{x} \]
      2. add-exp-log98.2%

        \[\leadsto \sqrt[3]{\color{blue}{1 + x}} - \sqrt[3]{x} \]
      3. flip-+98.2%

        \[\leadsto \sqrt[3]{\color{blue}{\frac{1 \cdot 1 - x \cdot x}{1 - x}}} - \sqrt[3]{x} \]
      4. clear-num98.3%

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

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

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

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

Alternative 6: 99.2% accurate, 0.3× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := \sqrt[3]{1 + x}\\ \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x} + t_0, {t_0}^{2}\right)} \end{array} \end{array} \]
(FPCore (x)
 :precision binary64
 (let* ((t_0 (cbrt (+ 1.0 x))))
   (/ 1.0 (fma (cbrt x) (+ (cbrt x) t_0) (pow t_0 2.0)))))
double code(double x) {
	double t_0 = cbrt((1.0 + x));
	return 1.0 / fma(cbrt(x), (cbrt(x) + t_0), pow(t_0, 2.0));
}
function code(x)
	t_0 = cbrt(Float64(1.0 + x))
	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[(1.0 + x), $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]{1 + x}\\
\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 56.4%

    \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
  2. Step-by-step derivation
    1. flip3--56.4%

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

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

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

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

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

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

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

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

    \[\leadsto \color{blue}{\left(\left(x + 1\right) - x\right) \cdot \frac{1}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)}} \]
  4. Step-by-step derivation
    1. associate-*r/57.2%

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

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

      \[\leadsto \frac{\color{blue}{\left(1 + x\right)} - x}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)} \]
    4. associate--l+78.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 7: 56.2% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} \mathbf{if}\;\sqrt[3]{1 + x} - \sqrt[3]{x} \leq 0:\\ \;\;\;\;\sqrt[3]{\frac{\frac{1}{x}}{x}}\\ \mathbf{else}:\\ \;\;\;\;\sqrt[3]{\frac{1}{\frac{1 - x}{1 - x \cdot x}}} - \sqrt[3]{x}\\ \end{array} \end{array} \]
(FPCore (x)
 :precision binary64
 (if (<= (- (cbrt (+ 1.0 x)) (cbrt x)) 0.0)
   (cbrt (/ (/ 1.0 x) x))
   (- (cbrt (/ 1.0 (/ (- 1.0 x) (- 1.0 (* x x))))) (cbrt x))))
double code(double x) {
	double tmp;
	if ((cbrt((1.0 + x)) - cbrt(x)) <= 0.0) {
		tmp = cbrt(((1.0 / x) / x));
	} else {
		tmp = cbrt((1.0 / ((1.0 - x) / (1.0 - (x * x))))) - cbrt(x);
	}
	return tmp;
}
public static double code(double x) {
	double tmp;
	if ((Math.cbrt((1.0 + x)) - Math.cbrt(x)) <= 0.0) {
		tmp = Math.cbrt(((1.0 / x) / x));
	} else {
		tmp = Math.cbrt((1.0 / ((1.0 - x) / (1.0 - (x * x))))) - Math.cbrt(x);
	}
	return tmp;
}
function code(x)
	tmp = 0.0
	if (Float64(cbrt(Float64(1.0 + x)) - cbrt(x)) <= 0.0)
		tmp = cbrt(Float64(Float64(1.0 / x) / x));
	else
		tmp = Float64(cbrt(Float64(1.0 / Float64(Float64(1.0 - x) / Float64(1.0 - Float64(x * x))))) - cbrt(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], 0.0], N[Power[N[(N[(1.0 / x), $MachinePrecision] / x), $MachinePrecision], 1/3], $MachinePrecision], N[(N[Power[N[(1.0 / N[(N[(1.0 - x), $MachinePrecision] / N[(1.0 - N[(x * x), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision], 1/3], $MachinePrecision] - N[Power[x, 1/3], $MachinePrecision]), $MachinePrecision]]
\begin{array}{l}

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

\mathbf{else}:\\
\;\;\;\;\sqrt[3]{\frac{1}{\frac{1 - x}{1 - x \cdot x}}} - \sqrt[3]{x}\\


\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. flip3--4.2%

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\left(\left(x + 1\right) - x\right) \cdot \frac{1}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)}} \]
    4. Step-by-step derivation
      1. associate-*r/4.2%

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

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

        \[\leadsto \frac{\color{blue}{\left(1 + x\right)} - x}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)} \]
      4. associate--l+50.9%

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{1 + x} + \sqrt[3]{x}, \color{blue}{{\left(1 + x\right)}^{0.6666666666666666}}\right)} \]
    8. Taylor expanded in x around inf 11.1%

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

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

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

        \[\leadsto \sqrt[3]{\color{blue}{\frac{\frac{1}{x}}{x}}} \]
    10. Simplified11.6%

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

    if 0.0 < (-.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. add-exp-log96.6%

        \[\leadsto \color{blue}{e^{\log \left(\sqrt[3]{x + 1}\right)}} - \sqrt[3]{x} \]
      2. pow1/396.7%

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

        \[\leadsto e^{\color{blue}{0.3333333333333333 \cdot \log \left(x + 1\right)}} - \sqrt[3]{x} \]
      4. +-commutative96.6%

        \[\leadsto e^{0.3333333333333333 \cdot \log \color{blue}{\left(1 + x\right)}} - \sqrt[3]{x} \]
      5. log1p-udef96.6%

        \[\leadsto e^{0.3333333333333333 \cdot \color{blue}{\mathsf{log1p}\left(x\right)}} - \sqrt[3]{x} \]
    3. Applied egg-rr96.6%

      \[\leadsto \color{blue}{e^{0.3333333333333333 \cdot \mathsf{log1p}\left(x\right)}} - \sqrt[3]{x} \]
    4. Step-by-step derivation
      1. *-commutative96.6%

        \[\leadsto e^{\color{blue}{\mathsf{log1p}\left(x\right) \cdot 0.3333333333333333}} - \sqrt[3]{x} \]
      2. exp-prod96.7%

        \[\leadsto \color{blue}{{\left(e^{\mathsf{log1p}\left(x\right)}\right)}^{0.3333333333333333}} - \sqrt[3]{x} \]
      3. unpow1/396.6%

        \[\leadsto \color{blue}{\sqrt[3]{e^{\mathsf{log1p}\left(x\right)}}} - \sqrt[3]{x} \]
    5. Simplified96.6%

      \[\leadsto \color{blue}{\sqrt[3]{e^{\mathsf{log1p}\left(x\right)}}} - \sqrt[3]{x} \]
    6. Step-by-step derivation
      1. log1p-udef96.6%

        \[\leadsto \sqrt[3]{e^{\color{blue}{\log \left(1 + x\right)}}} - \sqrt[3]{x} \]
      2. add-exp-log98.2%

        \[\leadsto \sqrt[3]{\color{blue}{1 + x}} - \sqrt[3]{x} \]
      3. flip-+98.2%

        \[\leadsto \sqrt[3]{\color{blue}{\frac{1 \cdot 1 - x \cdot x}{1 - x}}} - \sqrt[3]{x} \]
      4. clear-num98.3%

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

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

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

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

Alternative 8: 56.2% accurate, 0.5× speedup?

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

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

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


\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. flip3--4.2%

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\left(\left(x + 1\right) - x\right) \cdot \frac{1}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)}} \]
    4. Step-by-step derivation
      1. associate-*r/4.2%

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

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

        \[\leadsto \frac{\color{blue}{\left(1 + x\right)} - x}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)} \]
      4. associate--l+50.9%

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{1 + x} + \sqrt[3]{x}, \color{blue}{{\left(1 + x\right)}^{0.6666666666666666}}\right)} \]
    8. Taylor expanded in x around inf 11.1%

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

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

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

        \[\leadsto \sqrt[3]{\color{blue}{\frac{\frac{1}{x}}{x}}} \]
    10. Simplified11.6%

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

    if 0.0 < (-.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. expm1-log1p-u96.6%

        \[\leadsto \color{blue}{\mathsf{expm1}\left(\mathsf{log1p}\left(\sqrt[3]{x + 1}\right)\right)} - \sqrt[3]{x} \]
      2. expm1-udef96.6%

        \[\leadsto \color{blue}{\left(e^{\mathsf{log1p}\left(\sqrt[3]{x + 1}\right)} - 1\right)} - \sqrt[3]{x} \]
      3. log1p-udef96.6%

        \[\leadsto \left(e^{\color{blue}{\log \left(1 + \sqrt[3]{x + 1}\right)}} - 1\right) - \sqrt[3]{x} \]
      4. add-exp-log98.2%

        \[\leadsto \left(\color{blue}{\left(1 + \sqrt[3]{x + 1}\right)} - 1\right) - \sqrt[3]{x} \]
    3. Applied egg-rr98.2%

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

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

Alternative 9: 56.2% accurate, 0.5× speedup?

\[\begin{array}{l} \\ \begin{array}{l} t_0 := \sqrt[3]{1 + x} - \sqrt[3]{x}\\ \mathbf{if}\;t_0 \leq 0:\\ \;\;\;\;\sqrt[3]{\frac{\frac{1}{x}}{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 0.0) (cbrt (/ (/ 1.0 x) x)) t_0)))
double code(double x) {
	double t_0 = cbrt((1.0 + x)) - cbrt(x);
	double tmp;
	if (t_0 <= 0.0) {
		tmp = cbrt(((1.0 / x) / 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 <= 0.0) {
		tmp = Math.cbrt(((1.0 / x) / 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 <= 0.0)
		tmp = cbrt(Float64(Float64(1.0 / x) / 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, 0.0], N[Power[N[(N[(1.0 / x), $MachinePrecision] / x), $MachinePrecision], 1/3], $MachinePrecision], t$95$0]]
\begin{array}{l}

\\
\begin{array}{l}
t_0 := \sqrt[3]{1 + x} - \sqrt[3]{x}\\
\mathbf{if}\;t_0 \leq 0:\\
\;\;\;\;\sqrt[3]{\frac{\frac{1}{x}}{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)) < 0.0

    1. Initial program 4.2%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Step-by-step derivation
      1. flip3--4.2%

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\left(\left(x + 1\right) - x\right) \cdot \frac{1}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)}} \]
    4. Step-by-step derivation
      1. associate-*r/4.2%

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

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

        \[\leadsto \frac{\color{blue}{\left(1 + x\right)} - x}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)} \]
      4. associate--l+50.9%

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{1 + x} + \sqrt[3]{x}, \color{blue}{{\left(1 + x\right)}^{0.6666666666666666}}\right)} \]
    8. Taylor expanded in x around inf 11.1%

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

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

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

        \[\leadsto \sqrt[3]{\color{blue}{\frac{\frac{1}{x}}{x}}} \]
    10. Simplified11.6%

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

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

    1. Initial program 98.2%

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

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

Alternative 10: 54.8% accurate, 1.8× speedup?

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

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

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


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

    1. Initial program 7.0%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Step-by-step derivation
      1. flip3--7.2%

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

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

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

        \[\leadsto \left(\left(x + 1\right) - \color{blue}{x}\right) \cdot \frac{1}{\sqrt[3]{x + 1} \cdot \sqrt[3]{x + 1} + \left(\sqrt[3]{x} \cdot \sqrt[3]{x} + \sqrt[3]{x + 1} \cdot \sqrt[3]{x}\right)} \]
      5. cbrt-unprod8.9%

        \[\leadsto \left(\left(x + 1\right) - x\right) \cdot \frac{1}{\color{blue}{\sqrt[3]{\left(x + 1\right) \cdot \left(x + 1\right)}} + \left(\sqrt[3]{x} \cdot \sqrt[3]{x} + \sqrt[3]{x + 1} \cdot \sqrt[3]{x}\right)} \]
      6. pow28.9%

        \[\leadsto \left(\left(x + 1\right) - x\right) \cdot \frac{1}{\sqrt[3]{\color{blue}{{\left(x + 1\right)}^{2}}} + \left(\sqrt[3]{x} \cdot \sqrt[3]{x} + \sqrt[3]{x + 1} \cdot \sqrt[3]{x}\right)} \]
      7. distribute-rgt-out8.9%

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

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

      \[\leadsto \color{blue}{\left(\left(x + 1\right) - x\right) \cdot \frac{1}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)}} \]
    4. Step-by-step derivation
      1. associate-*r/8.9%

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

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

        \[\leadsto \frac{\color{blue}{\left(1 + x\right)} - x}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)} \]
      4. associate--l+53.3%

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{1 + x} + \sqrt[3]{x}, \color{blue}{{\left(1 + x\right)}^{0.6666666666666666}}\right)} \]
    8. Taylor expanded in x around inf 11.5%

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

        \[\leadsto \color{blue}{\sqrt[3]{\frac{1}{{x}^{2}}}} \]
      2. unpow211.5%

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

        \[\leadsto \sqrt[3]{\color{blue}{\frac{\frac{1}{x}}{x}}} \]
    10. Simplified11.9%

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

    if -0.94999999999999996 < x < 2.7000000000000002

    1. Initial program 99.9%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Step-by-step derivation
      1. add-cube-cbrt99.9%

        \[\leadsto \sqrt[3]{x + 1} - \color{blue}{\left(\sqrt[3]{\sqrt[3]{x}} \cdot \sqrt[3]{\sqrt[3]{x}}\right) \cdot \sqrt[3]{\sqrt[3]{x}}} \]
      2. pow399.9%

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

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

      \[\leadsto \color{blue}{\left(1 + 0.3333333333333333 \cdot x\right) - {\left({1}^{4}\right)}^{0.1111111111111111} \cdot {x}^{0.3333333333333333}} \]
    5. Step-by-step derivation
      1. associate--l+56.6%

        \[\leadsto \color{blue}{1 + \left(0.3333333333333333 \cdot x - {\left({1}^{4}\right)}^{0.1111111111111111} \cdot {x}^{0.3333333333333333}\right)} \]
      2. *-commutative56.6%

        \[\leadsto 1 + \left(\color{blue}{x \cdot 0.3333333333333333} - {\left({1}^{4}\right)}^{0.1111111111111111} \cdot {x}^{0.3333333333333333}\right) \]
      3. metadata-eval56.6%

        \[\leadsto 1 + \left(x \cdot 0.3333333333333333 - {\color{blue}{1}}^{0.1111111111111111} \cdot {x}^{0.3333333333333333}\right) \]
      4. pow-base-156.6%

        \[\leadsto 1 + \left(x \cdot 0.3333333333333333 - \color{blue}{1} \cdot {x}^{0.3333333333333333}\right) \]
      5. unpow1/398.7%

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

        \[\leadsto 1 + \left(x \cdot 0.3333333333333333 - \color{blue}{\sqrt[3]{x}}\right) \]
    6. Simplified98.7%

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

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

Alternative 11: 54.1% accurate, 1.9× speedup?

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

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

\mathbf{else}:\\
\;\;\;\;1 - \sqrt[3]{x}\\


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

    1. Initial program 7.8%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Step-by-step derivation
      1. flip3--8.0%

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

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

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

        \[\leadsto \left(\left(x + 1\right) - \color{blue}{x}\right) \cdot \frac{1}{\sqrt[3]{x + 1} \cdot \sqrt[3]{x + 1} + \left(\sqrt[3]{x} \cdot \sqrt[3]{x} + \sqrt[3]{x + 1} \cdot \sqrt[3]{x}\right)} \]
      5. cbrt-unprod9.6%

        \[\leadsto \left(\left(x + 1\right) - x\right) \cdot \frac{1}{\color{blue}{\sqrt[3]{\left(x + 1\right) \cdot \left(x + 1\right)}} + \left(\sqrt[3]{x} \cdot \sqrt[3]{x} + \sqrt[3]{x + 1} \cdot \sqrt[3]{x}\right)} \]
      6. pow29.6%

        \[\leadsto \left(\left(x + 1\right) - x\right) \cdot \frac{1}{\sqrt[3]{\color{blue}{{\left(x + 1\right)}^{2}}} + \left(\sqrt[3]{x} \cdot \sqrt[3]{x} + \sqrt[3]{x + 1} \cdot \sqrt[3]{x}\right)} \]
      7. distribute-rgt-out9.6%

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

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

      \[\leadsto \color{blue}{\left(\left(x + 1\right) - x\right) \cdot \frac{1}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)}} \]
    4. Step-by-step derivation
      1. associate-*r/9.6%

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

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

        \[\leadsto \frac{\color{blue}{\left(1 + x\right)} - x}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)} \]
      4. associate--l+53.6%

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{1 + x} + \sqrt[3]{x}, \color{blue}{{\left(1 + x\right)}^{0.6666666666666666}}\right)} \]
    8. Taylor expanded in x around inf 11.5%

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

        \[\leadsto \color{blue}{\sqrt[3]{\frac{1}{{x}^{2}}}} \]
      2. unpow211.5%

        \[\leadsto \sqrt[3]{\frac{1}{\color{blue}{x \cdot x}}} \]
    10. Simplified11.5%

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

    if -0.429999999999999993 < x < 0.80000000000000004

    1. Initial program 99.9%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Step-by-step derivation
      1. add-cube-cbrt99.9%

        \[\leadsto \sqrt[3]{x + 1} - \color{blue}{\left(\sqrt[3]{\sqrt[3]{x}} \cdot \sqrt[3]{\sqrt[3]{x}}\right) \cdot \sqrt[3]{\sqrt[3]{x}}} \]
      2. pow399.9%

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

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

      \[\leadsto \color{blue}{1 - {\left({1}^{4}\right)}^{0.1111111111111111} \cdot {x}^{0.3333333333333333}} \]
    5. Step-by-step derivation
      1. metadata-eval55.8%

        \[\leadsto 1 - {\color{blue}{1}}^{0.1111111111111111} \cdot {x}^{0.3333333333333333} \]
      2. pow-base-155.8%

        \[\leadsto 1 - \color{blue}{1} \cdot {x}^{0.3333333333333333} \]
      3. unpow1/397.8%

        \[\leadsto 1 - 1 \cdot \color{blue}{\sqrt[3]{x}} \]
      4. *-lft-identity97.8%

        \[\leadsto 1 - \color{blue}{\sqrt[3]{x}} \]
    6. Simplified97.8%

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

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

Alternative 12: 54.3% accurate, 1.9× speedup?

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

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

\mathbf{else}:\\
\;\;\;\;1 - \sqrt[3]{x}\\


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

    1. Initial program 7.8%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Step-by-step derivation
      1. flip3--8.0%

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

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

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

        \[\leadsto \left(\left(x + 1\right) - \color{blue}{x}\right) \cdot \frac{1}{\sqrt[3]{x + 1} \cdot \sqrt[3]{x + 1} + \left(\sqrt[3]{x} \cdot \sqrt[3]{x} + \sqrt[3]{x + 1} \cdot \sqrt[3]{x}\right)} \]
      5. cbrt-unprod9.6%

        \[\leadsto \left(\left(x + 1\right) - x\right) \cdot \frac{1}{\color{blue}{\sqrt[3]{\left(x + 1\right) \cdot \left(x + 1\right)}} + \left(\sqrt[3]{x} \cdot \sqrt[3]{x} + \sqrt[3]{x + 1} \cdot \sqrt[3]{x}\right)} \]
      6. pow29.6%

        \[\leadsto \left(\left(x + 1\right) - x\right) \cdot \frac{1}{\sqrt[3]{\color{blue}{{\left(x + 1\right)}^{2}}} + \left(\sqrt[3]{x} \cdot \sqrt[3]{x} + \sqrt[3]{x + 1} \cdot \sqrt[3]{x}\right)} \]
      7. distribute-rgt-out9.6%

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

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

      \[\leadsto \color{blue}{\left(\left(x + 1\right) - x\right) \cdot \frac{1}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)}} \]
    4. Step-by-step derivation
      1. associate-*r/9.6%

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

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

        \[\leadsto \frac{\color{blue}{\left(1 + x\right)} - x}{\sqrt[3]{{\left(x + 1\right)}^{2}} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)} \]
      4. associate--l+53.6%

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{1 + x} + \sqrt[3]{x}, \color{blue}{{\left(1 + x\right)}^{0.6666666666666666}}\right)} \]
    8. Taylor expanded in x around inf 11.5%

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

        \[\leadsto \color{blue}{\sqrt[3]{\frac{1}{{x}^{2}}}} \]
      2. unpow211.5%

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

        \[\leadsto \sqrt[3]{\color{blue}{\frac{\frac{1}{x}}{x}}} \]
    10. Simplified11.9%

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

    if -0.429999999999999993 < x < 0.80000000000000004

    1. Initial program 99.9%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Step-by-step derivation
      1. add-cube-cbrt99.9%

        \[\leadsto \sqrt[3]{x + 1} - \color{blue}{\left(\sqrt[3]{\sqrt[3]{x}} \cdot \sqrt[3]{\sqrt[3]{x}}\right) \cdot \sqrt[3]{\sqrt[3]{x}}} \]
      2. pow399.9%

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

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

      \[\leadsto \color{blue}{1 - {\left({1}^{4}\right)}^{0.1111111111111111} \cdot {x}^{0.3333333333333333}} \]
    5. Step-by-step derivation
      1. metadata-eval55.8%

        \[\leadsto 1 - {\color{blue}{1}}^{0.1111111111111111} \cdot {x}^{0.3333333333333333} \]
      2. pow-base-155.8%

        \[\leadsto 1 - \color{blue}{1} \cdot {x}^{0.3333333333333333} \]
      3. unpow1/397.8%

        \[\leadsto 1 - 1 \cdot \color{blue}{\sqrt[3]{x}} \]
      4. *-lft-identity97.8%

        \[\leadsto 1 - \color{blue}{\sqrt[3]{x}} \]
    6. Simplified97.8%

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

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

Alternative 13: 50.2% accurate, 2.0× speedup?

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

\\
1 - \sqrt[3]{x}
\end{array}
Derivation
  1. Initial program 56.4%

    \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
  2. Step-by-step derivation
    1. add-cube-cbrt56.1%

      \[\leadsto \sqrt[3]{x + 1} - \color{blue}{\left(\sqrt[3]{\sqrt[3]{x}} \cdot \sqrt[3]{\sqrt[3]{x}}\right) \cdot \sqrt[3]{\sqrt[3]{x}}} \]
    2. pow356.0%

      \[\leadsto \sqrt[3]{x + 1} - \color{blue}{{\left(\sqrt[3]{\sqrt[3]{x}}\right)}^{3}} \]
  3. Applied egg-rr56.0%

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

    \[\leadsto \color{blue}{1 - {\left({1}^{4}\right)}^{0.1111111111111111} \cdot {x}^{0.3333333333333333}} \]
  5. Step-by-step derivation
    1. metadata-eval29.8%

      \[\leadsto 1 - {\color{blue}{1}}^{0.1111111111111111} \cdot {x}^{0.3333333333333333} \]
    2. pow-base-129.8%

      \[\leadsto 1 - \color{blue}{1} \cdot {x}^{0.3333333333333333} \]
    3. unpow1/353.4%

      \[\leadsto 1 - 1 \cdot \color{blue}{\sqrt[3]{x}} \]
    4. *-lft-identity53.4%

      \[\leadsto 1 - \color{blue}{\sqrt[3]{x}} \]
  6. Simplified53.4%

    \[\leadsto \color{blue}{1 - \sqrt[3]{x}} \]
  7. Final simplification53.4%

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

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 56.4%

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

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

    \[\leadsto 0 \]

Alternative 15: 49.5% 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 56.4%

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

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

    \[\leadsto 1 \]

Reproduce

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