
(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 2025030
(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.
| operator-info: Unknown operator binary64 | L | C | |
|---|---|---|---|
| (unnamed) | /usr/share/racket/collects/racket/contract/private/arrow-higher-order.rkt | 379 | 33 |
| enode-type | /home/nightlies/herbie/really-crazy-encodings/src/core/egg-herbie.rkt | 566 | 0 |
| split-untyped-eclasses | /home/nightlies/herbie/really-crazy-encodings/src/core/egg-herbie.rkt | 621 | 0 |
| make-typed-eclasses | /home/nightlies/herbie/really-crazy-encodings/src/core/egg-herbie.rkt | 791 | 0 |
| make-regraph | /home/nightlies/herbie/really-crazy-encodings/src/core/egg-herbie.rkt | 838 | 0 |
| egraph-best | /home/nightlies/herbie/really-crazy-encodings/src/core/egg-herbie.rkt | 1395 | 0 |
| simplify-batch | /home/nightlies/herbie/really-crazy-encodings/src/core/simplify.rkt | 19 | 0 |
| (unnamed) | /usr/share/racket/collects/racket/contract/private/arrow-val-first.rkt | 486 | 18 |
| initial-simplify | /home/nightlies/herbie/really-crazy-encodings/src/core/preprocess.rkt | 54 | 0 |
| find-preprocessing | /home/nightlies/herbie/really-crazy-encodings/src/core/preprocess.rkt | 81 | 0 |
| run-improve! | /home/nightlies/herbie/really-crazy-encodings/src/core/mainloop.rkt | 45 | 0 |
| get-alternatives/report | /home/nightlies/herbie/really-crazy-encodings/src/api/sandbox.rkt | 174 | 0 |
| (unnamed) | /home/nightlies/herbie/really-crazy-encodings/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/really-crazy-encodings/src/api/sandbox.rkt | 283 | 2 |
| (unnamed) | /usr/share/racket/collects/racket/engine.rkt | 42 | 24 |