
(FPCore (x y) :precision binary64 (/ (* (* x 2.0) y) (- x y)))
double code(double x, double y) {
return ((x * 2.0) * y) / (x - y);
}
real(8) function code(x, y)
real(8), intent (in) :: x
real(8), intent (in) :: y
code = ((x * 2.0d0) * y) / (x - y)
end function
public static double code(double x, double y) {
return ((x * 2.0) * y) / (x - y);
}
def code(x, y): return ((x * 2.0) * y) / (x - y)
function code(x, y) return Float64(Float64(Float64(x * 2.0) * y) / Float64(x - y)) end
function tmp = code(x, y) tmp = ((x * 2.0) * y) / (x - y); end
code[x_, y_] := N[(N[(N[(x * 2.0), $MachinePrecision] * y), $MachinePrecision] / N[(x - y), $MachinePrecision]), $MachinePrecision]
\begin{array}{l}
\\
\frac{\left(x \cdot 2\right) \cdot y}{x - y}
\end{array}
herbie shell --seed 2024283
(FPCore (x y)
:name "Linear.Projection:perspective from linear-1.19.1.3, B"
:precision binary64
:alt
(! :herbie-platform default (if (< x -1721044263414944700000000000000000000000000000000000000000000000000000000000000000) (* (/ (* 2 x) (- x y)) y) (if (< x 83645045635564430) (/ (* x 2) (/ (- x y) y)) (* (/ (* 2 x) (- x y)) y))))
(/ (* (* x 2.0) y) (- x y)))
Please file a bug report with this information.
| eprintf: format string requires 0 arguments, given 1; arguments were: '(#s(si 1 1) #s(si 0 3) #s(si 1 4)) | L | C | |
|---|---|---|---|
| err-lsts->split-indices | /home/nightlies/herbie/zane-regimes-old/src/core/regimes.rkt | 219 | 0 |
| option-on-expr | /home/nightlies/herbie/zane-regimes-old/src/core/regimes.rkt | 120 | 0 |
| infer-splitpoints | /home/nightlies/herbie/zane-regimes-old/src/core/regimes.rkt | 56 | 0 |
| loop | /home/nightlies/herbie/zane-regimes-old/src/core/regimes.rkt | 41 | 2 |
| make-regime! | /home/nightlies/herbie/zane-regimes-old/src/core/mainloop.rkt | 350 | 0 |
| extract! | /home/nightlies/herbie/zane-regimes-old/src/core/mainloop.rkt | 79 | 0 |
| run-improve! | /home/nightlies/herbie/zane-regimes-old/src/core/mainloop.rkt | 45 | 0 |
| get-alternatives/report | /home/nightlies/herbie/zane-regimes-old/src/api/sandbox.rkt | 186 | 0 |
| (unnamed) | /home/nightlies/herbie/zane-regimes-old/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 |