2cbrt (problem 3.3.4)

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}

Reproduce

?
herbie shell --seed 2025052 
(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)))

Please file a bug report with this information.

Backtrace

egglog executable not found in PATHLC
run-egglog-multi-extractor/home/nightlies/herbie/aditya-egglog-develop-2/src/core/egglog-herbie.rkt1480
simplify-batch/home/nightlies/herbie/aditya-egglog-develop-2/src/core/simplify.rkt200
(unnamed)/usr/share/racket/collects/racket/contract/private/arrow-val-first.rkt48618
initial-simplify/home/nightlies/herbie/aditya-egglog-develop-2/src/core/preprocess.rkt560
find-preprocessing/home/nightlies/herbie/aditya-egglog-develop-2/src/core/preprocess.rkt830
run-improve!/home/nightlies/herbie/aditya-egglog-develop-2/src/core/mainloop.rkt440
get-alternatives/report/home/nightlies/herbie/aditya-egglog-develop-2/src/api/sandbox.rkt1740
(unnamed)/home/nightlies/herbie/aditya-egglog-develop-2/src/api/sandbox.rkt2656
(unnamed)/usr/share/racket/pkgs/profile-lib/main.rkt4010
profile-thunk/usr/share/racket/pkgs/profile-lib/main.rkt90
in-engine/home/nightlies/herbie/aditya-egglog-develop-2/src/api/sandbox.rkt2832
(unnamed)/usr/share/racket/collects/racket/engine.rkt4224