
(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 2024185 -o setup:simplify
(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.
| hash-ref: no value found for key key: 'cbrt | L | C | |
|---|---|---|---|
| f68 | .../match/compiler.rkt | 559 | 40 |
| f68 | .../match/compiler.rkt | 559 | 40 |
| prog->sollya | /home/nightlies/herbie/artem-popl-eval-histograms/src/sollya.rkt | 105 | 0 |
| run-sollya | /home/nightlies/herbie/artem-popl-eval-histograms/src/sollya.rkt | 159 | 0 |
| sample-points | /home/nightlies/herbie/artem-popl-eval-histograms/src/sampling.rkt | 249 | 0 |
| setup-context! | /home/nightlies/herbie/artem-popl-eval-histograms/src/mainloop.rkt | 45 | 0 |
| get-alternatives/report | /home/nightlies/herbie/artem-popl-eval-histograms/src/sandbox.rkt | 166 | 0 |
| (unnamed) | /home/nightlies/herbie/artem-popl-eval-histograms/src/sandbox.rkt | 260 | 6 |
| (unnamed) | /usr/local/racket/share/pkgs/profile-lib/main.rkt | 40 | 10 |
| profile-thunk | /usr/local/racket/share/pkgs/profile-lib/main.rkt | 9 | 0 |
| (unnamed) | /usr/local/racket/collects/racket/engine.rkt | 42 | 24 |