(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}
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.
egglog executable not found in PATH | L | C | |
---|---|---|---|
run-egglog-multi-extractor | /home/nightlies/herbie/aditya-egglog-develop-2/src/core/egglog-herbie.rkt | 148 | 0 |
simplify-batch | /home/nightlies/herbie/aditya-egglog-develop-2/src/core/simplify.rkt | 20 | 0 |
(unnamed) | /usr/share/racket/collects/racket/contract/private/arrow-val-first.rkt | 486 | 18 |
initial-simplify | /home/nightlies/herbie/aditya-egglog-develop-2/src/core/preprocess.rkt | 56 | 0 |
find-preprocessing | /home/nightlies/herbie/aditya-egglog-develop-2/src/core/preprocess.rkt | 83 | 0 |
run-improve! | /home/nightlies/herbie/aditya-egglog-develop-2/src/core/mainloop.rkt | 44 | 0 |
get-alternatives/report | /home/nightlies/herbie/aditya-egglog-develop-2/src/api/sandbox.rkt | 174 | 0 |
(unnamed) | /home/nightlies/herbie/aditya-egglog-develop-2/src/api/sandbox.rkt | 265 | 6 |
(unnamed) | /usr/share/racket/pkgs/profile-lib/main.rkt | 40 | 10 |
profile-thunk | /usr/share/racket/pkgs/profile-lib/main.rkt | 9 | 0 |
in-engine | /home/nightlies/herbie/aditya-egglog-develop-2/src/api/sandbox.rkt | 283 | 2 |
(unnamed) | /usr/share/racket/collects/racket/engine.rkt | 42 | 24 |