2cbrt (problem 3.3.4)

Percentage Accurate: 7.1% → 99.0%
Time: 11.1s
Alternatives: 11
Speedup: 1.0×

Specification

?
\[x > 1 \land x < 10^{+308}\]
\[\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 11 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: 7.1% 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.0% accurate, 0.3× speedup?

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

\\
\begin{array}{l}
t_0 := \sqrt[3]{1 + x}\\
t_1 := \sqrt[3]{\frac{1}{{x}^{2}}}\\
\mathbf{if}\;t\_0 - \sqrt[3]{x} \leq 0:\\
\;\;\;\;\frac{-0.1388888888888889 \cdot t\_1 + \left(t\_1 \cdot 0.027777777777777776 + \sqrt[3]{x} \cdot 0.3333333333333333\right)}{x}\\

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


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

    1. Initial program 4.2%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. add-sqr-sqrt4.2%

        \[\leadsto \color{blue}{\sqrt{\sqrt[3]{x + 1}} \cdot \sqrt{\sqrt[3]{x + 1}}} - \sqrt[3]{x} \]
      2. add-sqr-sqrt4.2%

        \[\leadsto \sqrt{\sqrt[3]{x + 1}} \cdot \sqrt{\sqrt[3]{x + 1}} - \color{blue}{\sqrt{\sqrt[3]{x}} \cdot \sqrt{\sqrt[3]{x}}} \]
      3. difference-of-squares4.2%

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

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

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

        \[\leadsto \left({\left(x + 1\right)}^{\color{blue}{0.16666666666666666}} + \sqrt{\sqrt[3]{x}}\right) \cdot \left(\sqrt{\sqrt[3]{x + 1}} - \sqrt{\sqrt[3]{x}}\right) \]
      7. pow1/34.2%

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

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

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} + {x}^{\color{blue}{0.16666666666666666}}\right) \cdot \left(\sqrt{\sqrt[3]{x + 1}} - \sqrt{\sqrt[3]{x}}\right) \]
      10. pow1/31.8%

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

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

        \[\leadsto \left({\left(x + 1\right)}^{0.16666666666666666} + {x}^{0.16666666666666666}\right) \cdot \left({\left(x + 1\right)}^{\color{blue}{0.16666666666666666}} - \sqrt{\sqrt[3]{x}}\right) \]
      13. pow1/34.3%

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

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

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

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

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

    if 0.0 < (-.f64 (cbrt.f64 (+.f64 x #s(literal 1 binary64))) (cbrt.f64 x))

    1. Initial program 62.1%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. flip3--69.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-inv69.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-cbrt66.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-cbrt99.1%

        \[\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. +-commutative99.1%

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

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

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

        \[\leadsto \left(\left(x + 1\right) - x\right) \cdot \frac{1}{\color{blue}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x + 1} + \sqrt[3]{x}, \sqrt[3]{x + 1} \cdot \sqrt[3]{x + 1}\right)}} \]
      9. add-exp-log98.5%

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{1 + \left(x - x\right)}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x} + \sqrt[3]{1 + x}, e^{\color{blue}{\log \left(1 + x\right)} \cdot 0.6666666666666666}\right)} \]
      3. exp-to-pow98.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        \[\leadsto \frac{1 + \left(x - x\right)}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x} + \sqrt[3]{1 + x}, {\left({\left(1 + x\right)}^{\color{blue}{\left(0.16666666666666666 \cdot 2\right)}}\right)}^{2}\right)} \]
      3. add-sqr-sqrt98.1%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 2: 98.5% accurate, 0.2× speedup?

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

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

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

      \[\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-inv9.6%

      \[\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-cbrt8.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-cbrt12.4%

      \[\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. +-commutative12.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      \[\leadsto \frac{1 + \left(x - x\right)}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x} + \sqrt[3]{1 + x}, {\left({\left(1 + x\right)}^{\color{blue}{\left(0.16666666666666666 \cdot 2\right)}}\right)}^{2}\right)} \]
    3. add-sqr-sqrt93.1%

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

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

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

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

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

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

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

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

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

Alternative 3: 98.5% 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 9.0%

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

      \[\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-inv9.6%

      \[\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-cbrt8.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-cbrt12.4%

      \[\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. +-commutative12.4%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Alternative 4: 98.6% accurate, 0.4× speedup?

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

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

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


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

    1. Initial program 13.2%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. flip3--14.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-inv14.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-cbrt14.3%

        \[\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-cbrt20.0%

        \[\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. +-commutative20.0%

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 1.4e154 < x

    1. Initial program 4.8%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. add-sqr-sqrt4.8%

        \[\leadsto \color{blue}{\sqrt{\sqrt[3]{x + 1} - \sqrt[3]{x}} \cdot \sqrt{\sqrt[3]{x + 1} - \sqrt[3]{x}}} \]
      2. pow24.8%

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

      \[\leadsto \color{blue}{{\left(\sqrt{\sqrt[3]{x + 1} - \sqrt[3]{x}}\right)}^{2}} \]
    5. Taylor expanded in x around inf 97.6%

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\frac{1}{\sqrt[3]{x}} \cdot \left(\sqrt{0.3333333333333333} \cdot \frac{\sqrt{0.3333333333333333}}{\sqrt[3]{x}}\right)} \]
    8. Step-by-step derivation
      1. associate-*r/98.4%

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

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

      \[\leadsto \color{blue}{\frac{1}{\sqrt[3]{x}} \cdot \frac{{\left(\sqrt{0.3333333333333333}\right)}^{2}}{\sqrt[3]{x}}} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 5: 98.4% accurate, 0.4× speedup?

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

\\
\begin{array}{l}
\mathbf{if}\;x \leq 2 \cdot 10^{+14}:\\
\;\;\;\;\frac{1 + \left(x - x\right)}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x} + \sqrt[3]{1 + x}, {\left(1 + x\right)}^{0.6666666666666666}\right)}\\

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


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

    1. Initial program 66.8%

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

        \[\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-inv74.6%

        \[\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-cbrt71.9%

        \[\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-cbrt99.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. +-commutative99.2%

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

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

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

        \[\leadsto \left(\left(x + 1\right) - x\right) \cdot \frac{1}{\color{blue}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x + 1} + \sqrt[3]{x}, \sqrt[3]{x + 1} \cdot \sqrt[3]{x + 1}\right)}} \]
      9. add-exp-log98.6%

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

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

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

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

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

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

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

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

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

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

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

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

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

    if 2e14 < x

    1. Initial program 4.3%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. add-sqr-sqrt4.3%

        \[\leadsto \color{blue}{\sqrt{\sqrt[3]{x + 1} - \sqrt[3]{x}} \cdot \sqrt{\sqrt[3]{x + 1} - \sqrt[3]{x}}} \]
      2. pow24.3%

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

      \[\leadsto \color{blue}{{\left(\sqrt{\sqrt[3]{x + 1} - \sqrt[3]{x}}\right)}^{2}} \]
    5. Taylor expanded in x around inf 97.7%

      \[\leadsto {\color{blue}{\left(\sqrt[3]{\frac{1}{x}} \cdot \sqrt{0.3333333333333333}\right)}}^{2} \]
    6. Step-by-step derivation
      1. unpow297.7%

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\frac{1}{\sqrt[3]{x}} \cdot \left(\sqrt{0.3333333333333333} \cdot \frac{\sqrt{0.3333333333333333}}{\sqrt[3]{x}}\right)} \]
    8. Step-by-step derivation
      1. associate-*r/98.4%

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

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

      \[\leadsto \color{blue}{\frac{1}{\sqrt[3]{x}} \cdot \frac{{\left(\sqrt{0.3333333333333333}\right)}^{2}}{\sqrt[3]{x}}} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 6: 97.4% accurate, 0.5× speedup?

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

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

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


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

    1. Initial program 82.3%

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

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

    if 2.4e7 < x

    1. Initial program 5.7%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. add-sqr-sqrt5.7%

        \[\leadsto \color{blue}{\sqrt{\sqrt[3]{x + 1} - \sqrt[3]{x}} \cdot \sqrt{\sqrt[3]{x + 1} - \sqrt[3]{x}}} \]
      2. pow25.7%

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

      \[\leadsto \color{blue}{{\left(\sqrt{\sqrt[3]{x + 1} - \sqrt[3]{x}}\right)}^{2}} \]
    5. Taylor expanded in x around inf 96.9%

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

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\frac{1}{\sqrt[3]{x}} \cdot \left(\sqrt{0.3333333333333333} \cdot \frac{\sqrt{0.3333333333333333}}{\sqrt[3]{x}}\right)} \]
    8. Step-by-step derivation
      1. associate-*r/97.6%

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

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

      \[\leadsto \color{blue}{\frac{1}{\sqrt[3]{x}} \cdot \frac{{\left(\sqrt{0.3333333333333333}\right)}^{2}}{\sqrt[3]{x}}} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 7: 97.4% accurate, 1.0× speedup?

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

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

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


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

    1. Initial program 82.3%

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

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

    if 2.4e7 < x

    1. Initial program 5.7%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. add-sqr-sqrt5.7%

        \[\leadsto \color{blue}{\sqrt{\sqrt[3]{x + 1} - \sqrt[3]{x}} \cdot \sqrt{\sqrt[3]{x + 1} - \sqrt[3]{x}}} \]
      2. pow25.7%

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

      \[\leadsto \color{blue}{{\left(\sqrt{\sqrt[3]{x + 1} - \sqrt[3]{x}}\right)}^{2}} \]
    5. Taylor expanded in x around inf 96.9%

      \[\leadsto {\color{blue}{\left(\sqrt[3]{\frac{1}{x}} \cdot \sqrt{0.3333333333333333}\right)}}^{2} \]
    6. Step-by-step derivation
      1. add-sqr-sqrt96.9%

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\sqrt{{\left(\frac{\sqrt{0.3333333333333333}}{\sqrt[3]{x}}\right)}^{4}}} \]
    8. Step-by-step derivation
      1. *-un-lft-identity72.8%

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

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

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

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

        \[\leadsto 1 \cdot \color{blue}{\frac{\sqrt{0.3333333333333333} \cdot \sqrt{0.3333333333333333}}{\sqrt[3]{x} \cdot \sqrt[3]{x}}} \]
      6. rem-square-sqrt97.6%

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

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

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

        \[\leadsto \color{blue}{\frac{0.3333333333333333}{{\left(\sqrt[3]{x}\right)}^{2}}} \]
      2. rem-square-sqrt97.6%

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

        \[\leadsto \frac{\sqrt{0.3333333333333333} \cdot \sqrt{0.3333333333333333}}{\color{blue}{\sqrt[3]{x} \cdot \sqrt[3]{x}}} \]
      4. times-frac97.4%

        \[\leadsto \color{blue}{\frac{\sqrt{0.3333333333333333}}{\sqrt[3]{x}} \cdot \frac{\sqrt{0.3333333333333333}}{\sqrt[3]{x}}} \]
      5. *-rgt-identity97.4%

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

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

        \[\leadsto \frac{\sqrt{0.3333333333333333}}{\sqrt[3]{x}} \cdot \color{blue}{\left(\sqrt{0.3333333333333333} \cdot \frac{1}{\sqrt[3]{x}}\right)} \]
      8. *-rgt-identity97.4%

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

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

        \[\leadsto \color{blue}{\left(\sqrt{0.3333333333333333} \cdot \frac{1}{\sqrt[3]{x}}\right)} \cdot \left(\sqrt{0.3333333333333333} \cdot \frac{1}{\sqrt[3]{x}}\right) \]
      11. swap-sqr97.5%

        \[\leadsto \color{blue}{\left(\sqrt{0.3333333333333333} \cdot \sqrt{0.3333333333333333}\right) \cdot \left(\frac{1}{\sqrt[3]{x}} \cdot \frac{1}{\sqrt[3]{x}}\right)} \]
      12. rem-square-sqrt97.5%

        \[\leadsto \color{blue}{0.3333333333333333} \cdot \left(\frac{1}{\sqrt[3]{x}} \cdot \frac{1}{\sqrt[3]{x}}\right) \]
      13. unpow-197.5%

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

        \[\leadsto 0.3333333333333333 \cdot \left({\left(\sqrt[3]{x}\right)}^{-1} \cdot \color{blue}{{\left(\sqrt[3]{x}\right)}^{-1}}\right) \]
      15. pow-sqr97.6%

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

        \[\leadsto 0.3333333333333333 \cdot {\left(\sqrt[3]{x}\right)}^{\color{blue}{-2}} \]
    11. Simplified97.6%

      \[\leadsto \color{blue}{0.3333333333333333 \cdot {\left(\sqrt[3]{x}\right)}^{-2}} \]
  3. Recombined 2 regimes into one program.
  4. Add Preprocessing

Alternative 8: 97.4% accurate, 1.0× speedup?

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

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

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


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

    1. Initial program 82.3%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Add Preprocessing

    if 8.5e7 < x

    1. Initial program 5.7%

      \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
    2. Add Preprocessing
    3. Step-by-step derivation
      1. add-sqr-sqrt5.7%

        \[\leadsto \color{blue}{\sqrt{\sqrt[3]{x + 1} - \sqrt[3]{x}} \cdot \sqrt{\sqrt[3]{x + 1} - \sqrt[3]{x}}} \]
      2. pow25.7%

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

      \[\leadsto \color{blue}{{\left(\sqrt{\sqrt[3]{x + 1} - \sqrt[3]{x}}\right)}^{2}} \]
    5. Taylor expanded in x around inf 96.9%

      \[\leadsto {\color{blue}{\left(\sqrt[3]{\frac{1}{x}} \cdot \sqrt{0.3333333333333333}\right)}}^{2} \]
    6. Step-by-step derivation
      1. add-sqr-sqrt96.9%

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

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

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

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

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

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

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

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

      \[\leadsto \color{blue}{\sqrt{{\left(\frac{\sqrt{0.3333333333333333}}{\sqrt[3]{x}}\right)}^{4}}} \]
    8. Step-by-step derivation
      1. *-un-lft-identity72.8%

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

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

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

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

        \[\leadsto 1 \cdot \color{blue}{\frac{\sqrt{0.3333333333333333} \cdot \sqrt{0.3333333333333333}}{\sqrt[3]{x} \cdot \sqrt[3]{x}}} \]
      6. rem-square-sqrt97.6%

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

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

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

        \[\leadsto \color{blue}{\frac{0.3333333333333333}{{\left(\sqrt[3]{x}\right)}^{2}}} \]
      2. rem-square-sqrt97.6%

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

        \[\leadsto \frac{\sqrt{0.3333333333333333} \cdot \sqrt{0.3333333333333333}}{\color{blue}{\sqrt[3]{x} \cdot \sqrt[3]{x}}} \]
      4. times-frac97.4%

        \[\leadsto \color{blue}{\frac{\sqrt{0.3333333333333333}}{\sqrt[3]{x}} \cdot \frac{\sqrt{0.3333333333333333}}{\sqrt[3]{x}}} \]
      5. *-rgt-identity97.4%

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

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

        \[\leadsto \frac{\sqrt{0.3333333333333333}}{\sqrt[3]{x}} \cdot \color{blue}{\left(\sqrt{0.3333333333333333} \cdot \frac{1}{\sqrt[3]{x}}\right)} \]
      8. *-rgt-identity97.4%

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

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

        \[\leadsto \color{blue}{\left(\sqrt{0.3333333333333333} \cdot \frac{1}{\sqrt[3]{x}}\right)} \cdot \left(\sqrt{0.3333333333333333} \cdot \frac{1}{\sqrt[3]{x}}\right) \]
      11. swap-sqr97.5%

        \[\leadsto \color{blue}{\left(\sqrt{0.3333333333333333} \cdot \sqrt{0.3333333333333333}\right) \cdot \left(\frac{1}{\sqrt[3]{x}} \cdot \frac{1}{\sqrt[3]{x}}\right)} \]
      12. rem-square-sqrt97.5%

        \[\leadsto \color{blue}{0.3333333333333333} \cdot \left(\frac{1}{\sqrt[3]{x}} \cdot \frac{1}{\sqrt[3]{x}}\right) \]
      13. unpow-197.5%

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

        \[\leadsto 0.3333333333333333 \cdot \left({\left(\sqrt[3]{x}\right)}^{-1} \cdot \color{blue}{{\left(\sqrt[3]{x}\right)}^{-1}}\right) \]
      15. pow-sqr97.6%

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

        \[\leadsto 0.3333333333333333 \cdot {\left(\sqrt[3]{x}\right)}^{\color{blue}{-2}} \]
    11. Simplified97.6%

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

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

Alternative 9: 96.4% accurate, 1.0× speedup?

\[\begin{array}{l} \\ 0.3333333333333333 \cdot {\left(\sqrt[3]{x}\right)}^{-2} \end{array} \]
(FPCore (x) :precision binary64 (* 0.3333333333333333 (pow (cbrt x) -2.0)))
double code(double x) {
	return 0.3333333333333333 * pow(cbrt(x), -2.0);
}
public static double code(double x) {
	return 0.3333333333333333 * Math.pow(Math.cbrt(x), -2.0);
}
function code(x)
	return Float64(0.3333333333333333 * (cbrt(x) ^ -2.0))
end
code[x_] := N[(0.3333333333333333 * N[Power[N[Power[x, 1/3], $MachinePrecision], -2.0], $MachinePrecision]), $MachinePrecision]
\begin{array}{l}

\\
0.3333333333333333 \cdot {\left(\sqrt[3]{x}\right)}^{-2}
\end{array}
Derivation
  1. Initial program 9.0%

    \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
  2. Add Preprocessing
  3. Step-by-step derivation
    1. add-sqr-sqrt9.0%

      \[\leadsto \color{blue}{\sqrt{\sqrt[3]{x + 1} - \sqrt[3]{x}} \cdot \sqrt{\sqrt[3]{x + 1} - \sqrt[3]{x}}} \]
    2. pow29.0%

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

    \[\leadsto \color{blue}{{\left(\sqrt{\sqrt[3]{x + 1} - \sqrt[3]{x}}\right)}^{2}} \]
  5. Taylor expanded in x around inf 94.4%

    \[\leadsto {\color{blue}{\left(\sqrt[3]{\frac{1}{x}} \cdot \sqrt{0.3333333333333333}\right)}}^{2} \]
  6. Step-by-step derivation
    1. add-sqr-sqrt94.4%

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

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

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

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

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

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

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

      \[\leadsto \sqrt{{\left(\frac{\sqrt{0.3333333333333333}}{\sqrt[3]{x}}\right)}^{\color{blue}{4}}} \]
  7. Applied egg-rr71.3%

    \[\leadsto \color{blue}{\sqrt{{\left(\frac{\sqrt{0.3333333333333333}}{\sqrt[3]{x}}\right)}^{4}}} \]
  8. Step-by-step derivation
    1. *-un-lft-identity71.3%

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

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

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

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

      \[\leadsto 1 \cdot \color{blue}{\frac{\sqrt{0.3333333333333333} \cdot \sqrt{0.3333333333333333}}{\sqrt[3]{x} \cdot \sqrt[3]{x}}} \]
    6. rem-square-sqrt95.0%

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

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

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

      \[\leadsto \color{blue}{\frac{0.3333333333333333}{{\left(\sqrt[3]{x}\right)}^{2}}} \]
    2. rem-square-sqrt95.0%

      \[\leadsto \frac{\color{blue}{\sqrt{0.3333333333333333} \cdot \sqrt{0.3333333333333333}}}{{\left(\sqrt[3]{x}\right)}^{2}} \]
    3. unpow295.0%

      \[\leadsto \frac{\sqrt{0.3333333333333333} \cdot \sqrt{0.3333333333333333}}{\color{blue}{\sqrt[3]{x} \cdot \sqrt[3]{x}}} \]
    4. times-frac94.8%

      \[\leadsto \color{blue}{\frac{\sqrt{0.3333333333333333}}{\sqrt[3]{x}} \cdot \frac{\sqrt{0.3333333333333333}}{\sqrt[3]{x}}} \]
    5. *-rgt-identity94.8%

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

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

      \[\leadsto \frac{\sqrt{0.3333333333333333}}{\sqrt[3]{x}} \cdot \color{blue}{\left(\sqrt{0.3333333333333333} \cdot \frac{1}{\sqrt[3]{x}}\right)} \]
    8. *-rgt-identity94.9%

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

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

      \[\leadsto \color{blue}{\left(\sqrt{0.3333333333333333} \cdot \frac{1}{\sqrt[3]{x}}\right)} \cdot \left(\sqrt{0.3333333333333333} \cdot \frac{1}{\sqrt[3]{x}}\right) \]
    11. swap-sqr95.0%

      \[\leadsto \color{blue}{\left(\sqrt{0.3333333333333333} \cdot \sqrt{0.3333333333333333}\right) \cdot \left(\frac{1}{\sqrt[3]{x}} \cdot \frac{1}{\sqrt[3]{x}}\right)} \]
    12. rem-square-sqrt95.0%

      \[\leadsto \color{blue}{0.3333333333333333} \cdot \left(\frac{1}{\sqrt[3]{x}} \cdot \frac{1}{\sqrt[3]{x}}\right) \]
    13. unpow-195.0%

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

      \[\leadsto 0.3333333333333333 \cdot \left({\left(\sqrt[3]{x}\right)}^{-1} \cdot \color{blue}{{\left(\sqrt[3]{x}\right)}^{-1}}\right) \]
    15. pow-sqr95.0%

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

      \[\leadsto 0.3333333333333333 \cdot {\left(\sqrt[3]{x}\right)}^{\color{blue}{-2}} \]
  11. Simplified95.0%

    \[\leadsto \color{blue}{0.3333333333333333 \cdot {\left(\sqrt[3]{x}\right)}^{-2}} \]
  12. Add Preprocessing

Alternative 10: 50.5% accurate, 1.0× speedup?

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

\\
\sqrt[3]{{x}^{-2} \cdot 0.037037037037037035}
\end{array}
Derivation
  1. Initial program 9.0%

    \[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
  2. Add Preprocessing
  3. Step-by-step derivation
    1. add-sqr-sqrt9.0%

      \[\leadsto \color{blue}{\sqrt{\sqrt[3]{x + 1} - \sqrt[3]{x}} \cdot \sqrt{\sqrt[3]{x + 1} - \sqrt[3]{x}}} \]
    2. pow29.0%

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

    \[\leadsto \color{blue}{{\left(\sqrt{\sqrt[3]{x + 1} - \sqrt[3]{x}}\right)}^{2}} \]
  5. Taylor expanded in x around inf 94.4%

    \[\leadsto {\color{blue}{\left(\sqrt[3]{\frac{1}{x}} \cdot \sqrt{0.3333333333333333}\right)}}^{2} \]
  6. Step-by-step derivation
    1. *-un-lft-identity94.4%

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

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

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

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

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

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

      \[\leadsto 1 \cdot \left(0.3333333333333333 \cdot \color{blue}{\sqrt[3]{\frac{1}{x} \cdot \frac{1}{x}}}\right) \]
    8. inv-pow49.9%

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

      \[\leadsto 1 \cdot \left(0.3333333333333333 \cdot \sqrt[3]{{x}^{-1} \cdot \color{blue}{{x}^{-1}}}\right) \]
    10. pow-prod-up49.9%

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

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

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

      \[\leadsto \color{blue}{0.3333333333333333 \cdot \sqrt[3]{{x}^{-2}}} \]
    2. rem-cbrt-cube49.5%

      \[\leadsto \color{blue}{\sqrt[3]{{\left(0.3333333333333333 \cdot \sqrt[3]{{x}^{-2}}\right)}^{3}}} \]
    3. *-commutative49.5%

      \[\leadsto \sqrt[3]{{\color{blue}{\left(\sqrt[3]{{x}^{-2}} \cdot 0.3333333333333333\right)}}^{3}} \]
    4. cube-prod49.4%

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

      \[\leadsto \sqrt[3]{\color{blue}{{x}^{-2}} \cdot {0.3333333333333333}^{3}} \]
    6. metadata-eval49.8%

      \[\leadsto \sqrt[3]{{x}^{-2} \cdot \color{blue}{0.037037037037037035}} \]
  9. Simplified49.8%

    \[\leadsto \color{blue}{\sqrt[3]{{x}^{-2} \cdot 0.037037037037037035}} \]
  10. Add Preprocessing

Alternative 11: 5.3% accurate, 2.0× speedup?

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

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

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

    \[\leadsto \color{blue}{1 - \sqrt[3]{x}} \]
  4. Step-by-step derivation
    1. sub-neg1.8%

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

      \[\leadsto 1 + \color{blue}{\sqrt{-\sqrt[3]{x}} \cdot \sqrt{-\sqrt[3]{x}}} \]
    3. fabs-sqr0.0%

      \[\leadsto 1 + \color{blue}{\left|\sqrt{-\sqrt[3]{x}} \cdot \sqrt{-\sqrt[3]{x}}\right|} \]
    4. rem-square-sqrt5.5%

      \[\leadsto 1 + \left|\color{blue}{-\sqrt[3]{x}}\right| \]
    5. fabs-neg5.5%

      \[\leadsto 1 + \color{blue}{\left|\sqrt[3]{x}\right|} \]
    6. unpow1/35.5%

      \[\leadsto 1 + \left|\color{blue}{{x}^{0.3333333333333333}}\right| \]
    7. metadata-eval5.5%

      \[\leadsto 1 + \left|{x}^{\color{blue}{\left(2 \cdot 0.16666666666666666\right)}}\right| \]
    8. pow-sqr5.5%

      \[\leadsto 1 + \left|\color{blue}{{x}^{0.16666666666666666} \cdot {x}^{0.16666666666666666}}\right| \]
    9. fabs-sqr5.5%

      \[\leadsto 1 + \color{blue}{{x}^{0.16666666666666666} \cdot {x}^{0.16666666666666666}} \]
    10. pow-sqr5.5%

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

      \[\leadsto 1 + {x}^{\color{blue}{0.3333333333333333}} \]
    12. unpow1/35.5%

      \[\leadsto 1 + \color{blue}{\sqrt[3]{x}} \]
  5. Simplified5.5%

    \[\leadsto \color{blue}{1 + \sqrt[3]{x}} \]
  6. Taylor expanded in x around inf 5.5%

    \[\leadsto \color{blue}{\sqrt[3]{x}} \]
  7. Add Preprocessing

Developer Target 1: 98.5% accurate, 0.3× speedup?

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

\\
\begin{array}{l}
t_0 := \sqrt[3]{x + 1}\\
\frac{1}{\left(t\_0 \cdot t\_0 + \sqrt[3]{x} \cdot t\_0\right) + \sqrt[3]{x} \cdot \sqrt[3]{x}}
\end{array}
\end{array}

Reproduce

?
herbie shell --seed 2024152 
(FPCore (x)
  :name "2cbrt (problem 3.3.4)"
  :precision binary64
  :pre (and (> x 1.0) (< x 1e+308))

  :alt
  (! :herbie-platform default (/ 1 (+ (* (cbrt (+ x 1)) (cbrt (+ x 1))) (* (cbrt x) (cbrt (+ x 1))) (* (cbrt x) (cbrt x)))))

  (- (cbrt (+ x 1.0)) (cbrt x)))