
(FPCore (x) :precision binary64 (+ (* x (* x x)) (* x x)))
double code(double x) {
return (x * (x * x)) + (x * x);
}
real(8) function code(x)
real(8), intent (in) :: x
code = (x * (x * x)) + (x * x)
end function
public static double code(double x) {
return (x * (x * x)) + (x * x);
}
def code(x): return (x * (x * x)) + (x * x)
function code(x) return Float64(Float64(x * Float64(x * x)) + Float64(x * x)) end
function tmp = code(x) tmp = (x * (x * x)) + (x * x); end
code[x_] := N[(N[(x * N[(x * x), $MachinePrecision]), $MachinePrecision] + N[(x * x), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot \left(x \cdot x\right) + x \cdot x
\end{array}
herbie shell --seed 2024230
(FPCore (x)
:name "Expression 3, p15"
:precision binary64
:pre (and (<= 0.0 x) (<= x 2.0))
:alt
(! :herbie-platform default (* (* (+ 1 x) x) x))
(+ (* x (* x x)) (* x x)))
Please file a bug report with this information.
| match: no matching clause for 'y | L | C | |
|---|---|---|---|
| make-compiler | /home/nightlies/herbie/bhargav-log-space/src/core/compiler.rkt | 56 | 0 |
| predict-errors | /home/nightlies/herbie/bhargav-log-space/src/core/explain.rkt | 79 | 0 |
| explain | /home/nightlies/herbie/bhargav-log-space/src/core/explain.rkt | 603 | 0 |
| explain! | /home/nightlies/herbie/bhargav-log-space/src/core/mainloop.rkt | 321 | 0 |
| run-improve! | /home/nightlies/herbie/bhargav-log-space/src/core/mainloop.rkt | 43 | 0 |
| get-alternatives/report | /home/nightlies/herbie/bhargav-log-space/src/api/sandbox.rkt | 184 | 0 |
| (unnamed) | /home/nightlies/herbie/bhargav-log-space/src/api/sandbox.rkt | 280 | 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 |