
(FPCore (x) :precision binary64 (* (* x x) x))
double code(double x) {
return (x * x) * x;
}
real(8) function code(x)
real(8), intent (in) :: x
code = (x * x) * x
end function
public static double code(double x) {
return (x * x) * x;
}
def code(x): return (x * x) * x
function code(x) return Float64(Float64(x * x) * x) end
function tmp = code(x) tmp = (x * x) * x; end
code[x_] := N[(N[(x * x), $MachinePrecision] * x), $MachinePrecision]
\begin{array}{l}
\\
\left(x \cdot x\right) \cdot x
\end{array}
herbie shell --seed 2024277
(FPCore (x)
:name "math.cube on real"
:precision binary64
:alt
(! :herbie-platform default (pow x 3))
(* (* x x) x))
Please file a bug report with this information.
| ival-hi: contract violation expected: ival? given: 0 | L | C | |
|---|---|---|---|
| ival-hi | unknown | ||
| ival-sub | /home/nightlies/.local/share/racket/8.10/pkgs/rival/ops/core.rkt | 228 | 0 |
| rival-machine-run | /home/nightlies/.local/share/racket/8.10/pkgs/rival/eval/run.rkt | 32 | 0 |
| rival-machine-full | /home/nightlies/.local/share/racket/8.10/pkgs/rival/eval/main.rkt | 27 | 0 |
| rival-apply | /home/nightlies/.local/share/racket/8.10/pkgs/rival/eval/main.rkt | 65 | 0 |
| (unnamed) | /usr/share/racket/collects/racket/contract/private/arrow-val-first.rkt | 486 | 18 |
| f115 | .../match/compiler.rkt | 559 | 40 |
| compute-true-error | /home/nightlies/herbie/zane-concrete-values/src/core/localize.rkt | 131 | 0 |
| compute-local-errors | /home/nightlies/herbie/zane-concrete-values/src/core/localize.rkt | 216 | 0 |
| actual-errors | /home/nightlies/herbie/zane-concrete-values/src/core/explain.rkt | 35 | 0 |
| generate-timelines | /home/nightlies/herbie/zane-concrete-values/src/core/explain.rkt | 498 | 0 |
| explain! | /home/nightlies/herbie/zane-concrete-values/src/core/mainloop.rkt | 323 | 0 |
| run-improve! | /home/nightlies/herbie/zane-concrete-values/src/core/mainloop.rkt | 45 | 0 |
| get-alternatives/report | /home/nightlies/herbie/zane-concrete-values/src/api/sandbox.rkt | 186 | 0 |
| (unnamed) | /home/nightlies/herbie/zane-concrete-values/src/api/sandbox.rkt | 282 | 6 |
| (unnamed) | /usr/share/racket/pkgs/profile-lib/main.rkt | 40 | 10 |
| profile-thunk | /usr/share/racket/pkgs/profile-lib/main.rkt | 9 | 0 |
| (unnamed) | /usr/share/racket/collects/racket/engine.rkt | 42 | 24 |