
(FPCore (x y) :precision binary64 (- (* x x) (* y y)))
double code(double x, double y) {
return (x * x) - (y * y);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = (x * x) - (y * y)
end function
public static double code(double x, double y) {
return (x * x) - (y * y);
}
def code(x, y): return (x * x) - (y * y)
function code(x, y) return Float64(Float64(x * x) - Float64(y * y)) end
function tmp = code(x, y) tmp = (x * x) - (y * y); end
code[x_, y_] := N[(N[(x * x), $MachinePrecision] - N[(y * y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
x \cdot x - y \cdot y
\end{array}
herbie shell --seed 2024321
(FPCore (x y)
:name "Examples.Basics.BasicTests:f2 from sbv-4.4"
:precision binary64
:pre (TRUE)
(- (* x x) (* y y)))
Please file a bug report with this information.
| numerator: contract violation expected: rational-number? given: +inf.0 | L | C | |
|---|---|---|---|
| egglog-add-exprs | /home/nightlies/herbie/varun10p-egglog/src/core/egglog-herbie.rkt | 408 | 0 |
| final-simplify! | /home/nightlies/herbie/varun10p-egglog/src/core/mainloop.rkt | 350 | 0 |
| extract! | /home/nightlies/herbie/varun10p-egglog/src/core/mainloop.rkt | 81 | 0 |
| run-improve! | /home/nightlies/herbie/varun10p-egglog/src/core/mainloop.rkt | 46 | 0 |
| get-alternatives/report | /home/nightlies/herbie/varun10p-egglog/src/api/sandbox.rkt | 186 | 0 |
| (unnamed) | /home/nightlies/herbie/varun10p-egglog/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 |