| Alternative 1 | |
|---|---|
| Error | 24.7 |
| Cost | 39364 |
(FPCore (x) :precision binary64 (- (cbrt (+ x 1.0)) (cbrt x)))
(FPCore (x)
:precision binary64
(let* ((t_0 (pow (cbrt x) 2.0)) (t_1 (cbrt (+ 1.0 x))))
(/
1.0
(+ t_0 (* (/ t_1 (- (* t_1 (- (cbrt x) t_1)) t_0)) (+ -1.0 (* x -2.0)))))))double code(double x) {
return cbrt((x + 1.0)) - cbrt(x);
}
double code(double x) {
double t_0 = pow(cbrt(x), 2.0);
double t_1 = cbrt((1.0 + x));
return 1.0 / (t_0 + ((t_1 / ((t_1 * (cbrt(x) - t_1)) - t_0)) * (-1.0 + (x * -2.0))));
}
public static double code(double x) {
return Math.cbrt((x + 1.0)) - Math.cbrt(x);
}
public static double code(double x) {
double t_0 = Math.pow(Math.cbrt(x), 2.0);
double t_1 = Math.cbrt((1.0 + x));
return 1.0 / (t_0 + ((t_1 / ((t_1 * (Math.cbrt(x) - t_1)) - t_0)) * (-1.0 + (x * -2.0))));
}
function code(x) return Float64(cbrt(Float64(x + 1.0)) - cbrt(x)) end
function code(x) t_0 = cbrt(x) ^ 2.0 t_1 = cbrt(Float64(1.0 + x)) return Float64(1.0 / Float64(t_0 + Float64(Float64(t_1 / Float64(Float64(t_1 * Float64(cbrt(x) - t_1)) - t_0)) * Float64(-1.0 + Float64(x * -2.0))))) end
code[x_] := N[(N[Power[N[(x + 1.0), $MachinePrecision], 1/3], $MachinePrecision] - N[Power[x, 1/3], $MachinePrecision]), $MachinePrecision]
code[x_] := Block[{t$95$0 = N[Power[N[Power[x, 1/3], $MachinePrecision], 2.0], $MachinePrecision]}, Block[{t$95$1 = N[Power[N[(1.0 + x), $MachinePrecision], 1/3], $MachinePrecision]}, N[(1.0 / N[(t$95$0 + N[(N[(t$95$1 / N[(N[(t$95$1 * N[(N[Power[x, 1/3], $MachinePrecision] - t$95$1), $MachinePrecision]), $MachinePrecision] - t$95$0), $MachinePrecision]), $MachinePrecision] * N[(-1.0 + N[(x * -2.0), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]), $MachinePrecision]]]
\sqrt[3]{x + 1} - \sqrt[3]{x}
\begin{array}{l}
t_0 := {\left(\sqrt[3]{x}\right)}^{2}\\
t_1 := \sqrt[3]{1 + x}\\
\frac{1}{t_0 + \frac{t_1}{t_1 \cdot \left(\sqrt[3]{x} - t_1\right) - t_0} \cdot \left(-1 + x \cdot -2\right)}
\end{array}
Results
Initial program 29.3
Applied egg-rr28.6
Simplified0.5
[Start]28.6 | \[ \left(\left(x + 1\right) - x\right) \cdot \frac{1}{{\left(\sqrt[3]{x + 1}\right)}^{2} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)}
\] |
|---|---|
associate-*r/ [=>]28.6 | \[ \color{blue}{\frac{\left(\left(x + 1\right) - x\right) \cdot 1}{{\left(\sqrt[3]{x + 1}\right)}^{2} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)}}
\] |
*-rgt-identity [=>]28.6 | \[ \frac{\color{blue}{\left(x + 1\right) - x}}{{\left(\sqrt[3]{x + 1}\right)}^{2} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)}
\] |
+-commutative [=>]28.6 | \[ \frac{\color{blue}{\left(1 + x\right)} - x}{{\left(\sqrt[3]{x + 1}\right)}^{2} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)}
\] |
associate--l+ [=>]0.5 | \[ \frac{\color{blue}{1 + \left(x - x\right)}}{{\left(\sqrt[3]{x + 1}\right)}^{2} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)}
\] |
+-inverses [=>]0.5 | \[ \frac{1 + \color{blue}{0}}{{\left(\sqrt[3]{x + 1}\right)}^{2} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)}
\] |
metadata-eval [=>]0.5 | \[ \frac{\color{blue}{1}}{{\left(\sqrt[3]{x + 1}\right)}^{2} + \sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right)}
\] |
+-commutative [=>]0.5 | \[ \frac{1}{\color{blue}{\sqrt[3]{x} \cdot \left(\sqrt[3]{x + 1} + \sqrt[3]{x}\right) + {\left(\sqrt[3]{x + 1}\right)}^{2}}}
\] |
fma-def [=>]0.5 | \[ \frac{1}{\color{blue}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{x + 1} + \sqrt[3]{x}, {\left(\sqrt[3]{x + 1}\right)}^{2}\right)}}
\] |
+-commutative [=>]0.5 | \[ \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{\color{blue}{1 + x}} + \sqrt[3]{x}, {\left(\sqrt[3]{x + 1}\right)}^{2}\right)}
\] |
+-commutative [=>]0.5 | \[ \frac{1}{\mathsf{fma}\left(\sqrt[3]{x}, \sqrt[3]{1 + x} + \sqrt[3]{x}, {\left(\sqrt[3]{\color{blue}{1 + x}}\right)}^{2}\right)}
\] |
Applied egg-rr0.5
Applied egg-rr15.4
Applied egg-rr7.5
Simplified0.3
[Start]7.5 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{x + 1} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}{-\left({\left(\sqrt[3]{x}\right)}^{2} + \sqrt[3]{x + 1} \cdot \left(\sqrt[3]{x + 1} - \sqrt[3]{x}\right)\right)}}
\] |
|---|---|
associate-/l* [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \color{blue}{\frac{\sqrt[3]{x + 1}}{\frac{-\left({\left(\sqrt[3]{x}\right)}^{2} + \sqrt[3]{x + 1} \cdot \left(\sqrt[3]{x + 1} - \sqrt[3]{x}\right)\right)}{-\left(x + \left(x + 1\right)\right)}}}}
\] |
associate-/r/ [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \color{blue}{\frac{\sqrt[3]{x + 1}}{-\left({\left(\sqrt[3]{x}\right)}^{2} + \sqrt[3]{x + 1} \cdot \left(\sqrt[3]{x + 1} - \sqrt[3]{x}\right)\right)} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}}
\] |
+-commutative [<=]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{\color{blue}{1 + x}}}{-\left({\left(\sqrt[3]{x}\right)}^{2} + \sqrt[3]{x + 1} \cdot \left(\sqrt[3]{x + 1} - \sqrt[3]{x}\right)\right)} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
neg-sub0 [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\color{blue}{0 - \left({\left(\sqrt[3]{x}\right)}^{2} + \sqrt[3]{x + 1} \cdot \left(\sqrt[3]{x + 1} - \sqrt[3]{x}\right)\right)}} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
+-inverses [<=]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\color{blue}{\left(x - x\right)} - \left({\left(\sqrt[3]{x}\right)}^{2} + \sqrt[3]{x + 1} \cdot \left(\sqrt[3]{x + 1} - \sqrt[3]{x}\right)\right)} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
+-commutative [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\left(x - x\right) - \color{blue}{\left(\sqrt[3]{x + 1} \cdot \left(\sqrt[3]{x + 1} - \sqrt[3]{x}\right) + {\left(\sqrt[3]{x}\right)}^{2}\right)}} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
associate--r+ [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\color{blue}{\left(\left(x - x\right) - \sqrt[3]{x + 1} \cdot \left(\sqrt[3]{x + 1} - \sqrt[3]{x}\right)\right) - {\left(\sqrt[3]{x}\right)}^{2}}} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
+-inverses [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\left(\color{blue}{0} - \sqrt[3]{x + 1} \cdot \left(\sqrt[3]{x + 1} - \sqrt[3]{x}\right)\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
neg-sub0 [<=]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\color{blue}{\left(-\sqrt[3]{x + 1} \cdot \left(\sqrt[3]{x + 1} - \sqrt[3]{x}\right)\right)} - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
distribute-rgt-neg-in [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\color{blue}{\sqrt[3]{x + 1} \cdot \left(-\left(\sqrt[3]{x + 1} - \sqrt[3]{x}\right)\right)} - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
+-commutative [<=]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{\color{blue}{1 + x}} \cdot \left(-\left(\sqrt[3]{x + 1} - \sqrt[3]{x}\right)\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
sub-neg [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(-\color{blue}{\left(\sqrt[3]{x + 1} + \left(-\sqrt[3]{x}\right)\right)}\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
+-commutative [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(-\color{blue}{\left(\left(-\sqrt[3]{x}\right) + \sqrt[3]{x + 1}\right)}\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
neg-sub0 [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(-\left(\color{blue}{\left(0 - \sqrt[3]{x}\right)} + \sqrt[3]{x + 1}\right)\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
+-inverses [<=]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(-\left(\left(\color{blue}{\left(x - x\right)} - \sqrt[3]{x}\right) + \sqrt[3]{x + 1}\right)\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
associate--r- [<=]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(-\color{blue}{\left(\left(x - x\right) - \left(\sqrt[3]{x} - \sqrt[3]{x + 1}\right)\right)}\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
+-inverses [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(-\left(\color{blue}{0} - \left(\sqrt[3]{x} - \sqrt[3]{x + 1}\right)\right)\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
neg-sub0 [<=]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(-\color{blue}{\left(-\left(\sqrt[3]{x} - \sqrt[3]{x + 1}\right)\right)}\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
neg-mul-1 [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(-\color{blue}{-1 \cdot \left(\sqrt[3]{x} - \sqrt[3]{x + 1}\right)}\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
metadata-eval [<=]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(-\color{blue}{\left(0 + -1\right)} \cdot \left(\sqrt[3]{x} - \sqrt[3]{x + 1}\right)\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
+-inverses [<=]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(-\left(\color{blue}{\left(x - x\right)} + -1\right) \cdot \left(\sqrt[3]{x} - \sqrt[3]{x + 1}\right)\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
metadata-eval [<=]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(-\left(\left(x - x\right) + \color{blue}{\left(-1\right)}\right) \cdot \left(\sqrt[3]{x} - \sqrt[3]{x + 1}\right)\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
sub-neg [<=]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(-\color{blue}{\left(\left(x - x\right) - 1\right)} \cdot \left(\sqrt[3]{x} - \sqrt[3]{x + 1}\right)\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
*-commutative [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(-\color{blue}{\left(\sqrt[3]{x} - \sqrt[3]{x + 1}\right) \cdot \left(\left(x - x\right) - 1\right)}\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
distribute-rgt-neg-in [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \color{blue}{\left(\left(\sqrt[3]{x} - \sqrt[3]{x + 1}\right) \cdot \left(-\left(\left(x - x\right) - 1\right)\right)\right)} - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
sub-neg [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(\left(\sqrt[3]{x} - \sqrt[3]{x + 1}\right) \cdot \left(-\color{blue}{\left(\left(x - x\right) + \left(-1\right)\right)}\right)\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
+-inverses [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(\left(\sqrt[3]{x} - \sqrt[3]{x + 1}\right) \cdot \left(-\left(\color{blue}{0} + \left(-1\right)\right)\right)\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
metadata-eval [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(\left(\sqrt[3]{x} - \sqrt[3]{x + 1}\right) \cdot \left(-\left(0 + \color{blue}{-1}\right)\right)\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
metadata-eval [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(\left(\sqrt[3]{x} - \sqrt[3]{x + 1}\right) \cdot \left(-\color{blue}{-1}\right)\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
metadata-eval [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(\left(\sqrt[3]{x} - \sqrt[3]{x + 1}\right) \cdot \color{blue}{1}\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
*-rgt-identity [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \color{blue}{\left(\sqrt[3]{x} - \sqrt[3]{x + 1}\right)} - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
+-commutative [<=]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(\sqrt[3]{x} - \sqrt[3]{\color{blue}{1 + x}}\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-\left(x + \left(x + 1\right)\right)\right)}
\] |
associate-+r+ [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(\sqrt[3]{x} - \sqrt[3]{1 + x}\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-\color{blue}{\left(\left(x + x\right) + 1\right)}\right)}
\] |
distribute-neg-in [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(\sqrt[3]{x} - \sqrt[3]{1 + x}\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \color{blue}{\left(\left(-\left(x + x\right)\right) + \left(-1\right)\right)}}
\] |
metadata-eval [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(\sqrt[3]{x} - \sqrt[3]{1 + x}\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(\left(-\left(x + x\right)\right) + \color{blue}{-1}\right)}
\] |
metadata-eval [<=]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(\sqrt[3]{x} - \sqrt[3]{1 + x}\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(\left(-\left(x + x\right)\right) + \color{blue}{\left(0 + -1\right)}\right)}
\] |
+-inverses [<=]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(\sqrt[3]{x} - \sqrt[3]{1 + x}\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(\left(-\left(x + x\right)\right) + \left(\color{blue}{\left(x - x\right)} + -1\right)\right)}
\] |
metadata-eval [<=]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(\sqrt[3]{x} - \sqrt[3]{1 + x}\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(\left(-\left(x + x\right)\right) + \left(\left(x - x\right) + \color{blue}{\left(-1\right)}\right)\right)}
\] |
sub-neg [<=]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(\sqrt[3]{x} - \sqrt[3]{1 + x}\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(\left(-\left(x + x\right)\right) + \color{blue}{\left(\left(x - x\right) - 1\right)}\right)}
\] |
+-commutative [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(\sqrt[3]{x} - \sqrt[3]{1 + x}\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \color{blue}{\left(\left(\left(x - x\right) - 1\right) + \left(-\left(x + x\right)\right)\right)}}
\] |
sub-neg [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(\sqrt[3]{x} - \sqrt[3]{1 + x}\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(\color{blue}{\left(\left(x - x\right) + \left(-1\right)\right)} + \left(-\left(x + x\right)\right)\right)}
\] |
+-inverses [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(\sqrt[3]{x} - \sqrt[3]{1 + x}\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(\left(\color{blue}{0} + \left(-1\right)\right) + \left(-\left(x + x\right)\right)\right)}
\] |
metadata-eval [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(\sqrt[3]{x} - \sqrt[3]{1 + x}\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(\left(0 + \color{blue}{-1}\right) + \left(-\left(x + x\right)\right)\right)}
\] |
metadata-eval [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(\sqrt[3]{x} - \sqrt[3]{1 + x}\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(\color{blue}{-1} + \left(-\left(x + x\right)\right)\right)}
\] |
count-2 [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(\sqrt[3]{x} - \sqrt[3]{1 + x}\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-1 + \left(-\color{blue}{2 \cdot x}\right)\right)}
\] |
distribute-lft-neg-in [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(\sqrt[3]{x} - \sqrt[3]{1 + x}\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-1 + \color{blue}{\left(-2\right) \cdot x}\right)}
\] |
metadata-eval [=>]0.3 | \[ \frac{1}{{\left(\sqrt[3]{x}\right)}^{2} + \frac{\sqrt[3]{1 + x}}{\sqrt[3]{1 + x} \cdot \left(\sqrt[3]{x} - \sqrt[3]{1 + x}\right) - {\left(\sqrt[3]{x}\right)}^{2}} \cdot \left(-1 + \color{blue}{-2} \cdot x\right)}
\] |
Final simplification0.3
| Alternative 1 | |
|---|---|
| Error | 24.7 |
| Cost | 39364 |
| Alternative 2 | |
|---|---|
| Error | 0.5 |
| Cost | 33024 |
| Alternative 3 | |
|---|---|
| Error | 8.6 |
| Cost | 32964 |
| Alternative 4 | |
|---|---|
| Error | 0.5 |
| Cost | 32896 |
| Alternative 5 | |
|---|---|
| Error | 14.2 |
| Cost | 26820 |
| Alternative 6 | |
|---|---|
| Error | 14.2 |
| Cost | 26692 |
| Alternative 7 | |
|---|---|
| Error | 25.3 |
| Cost | 26441 |
| Alternative 8 | |
|---|---|
| Error | 25.3 |
| Cost | 26185 |
| Alternative 9 | |
|---|---|
| Error | 25.3 |
| Cost | 13449 |
| Alternative 10 | |
|---|---|
| Error | 29.3 |
| Cost | 13120 |
| Alternative 11 | |
|---|---|
| Error | 61.7 |
| Cost | 64 |
| Alternative 12 | |
|---|---|
| Error | 31.7 |
| Cost | 64 |
herbie shell --seed 2022354
(FPCore (x)
:name "2cbrt (problem 3.3.4)"
:precision binary64
(- (cbrt (+ x 1.0)) (cbrt x)))