?

Average Error: 29.5 → 29.5
Time: 10.1s
Precision: binary64
Cost: 13376

?

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

Error?

Try it out?

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation?

  1. Initial program 29.5

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

    \[\leadsto \color{blue}{\sqrt[3]{x + \left(x + 2\right)} \cdot \sqrt[3]{0.5}} - \sqrt[3]{x} \]
  3. Simplified29.5

    \[\leadsto \color{blue}{\sqrt[3]{\left(x + \left(x + 2\right)\right) \cdot 0.5}} - \sqrt[3]{x} \]
    Proof

    [Start]30.1

    \[ \sqrt[3]{x + \left(x + 2\right)} \cdot \sqrt[3]{0.5} - \sqrt[3]{x} \]

    exponential-simplify-18 [=>]29.5

    \[ \color{blue}{\sqrt[3]{\left(x + \left(x + 2\right)\right) \cdot 0.5}} - \sqrt[3]{x} \]
  4. Final simplification29.5

    \[\leadsto \sqrt[3]{\left(x + \left(x + 2\right)\right) \cdot 0.5} - \sqrt[3]{x} \]

Alternatives

Alternative 1
Error29.5
Cost13120
\[\sqrt[3]{x + 1} - \sqrt[3]{x} \]
Alternative 2
Error61.7
Cost64
\[0 \]
Alternative 3
Error31.8
Cost64
\[1 \]

Error

Reproduce?

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