
(FPCore (x0 x1) :precision binary64 (- (/ x0 (- 1.0 x1)) x0))
double code(double x0, double x1) {
return (x0 / (1.0 - x1)) - x0;
}
real(8) function code(x0, x1)
real(8), intent (in) :: x0
real(8), intent (in) :: x1
code = (x0 / (1.0d0 - x1)) - x0
end function
public static double code(double x0, double x1) {
return (x0 / (1.0 - x1)) - x0;
}
def code(x0, x1): return (x0 / (1.0 - x1)) - x0
function code(x0, x1) return Float64(Float64(x0 / Float64(1.0 - x1)) - x0) end
function tmp = code(x0, x1) tmp = (x0 / (1.0 - x1)) - x0; end
code[x0_, x1_] := N[(N[(x0 / N[(1.0 - x1), $MachinePrecision]), $MachinePrecision] - x0), $MachinePrecision]
\frac{x0}{1 - x1} - x0
Please include this information when filing a bug report:
herbie shell --seed 2023243
(FPCore (x0 x1)
:name "(- (/ x0 (- 1 x1)) x0)"
:precision binary64
:pre (or (and (== x0 1.855) (== x1 0.000209)) (and (== x0 2.985) (== x1 0.0186)))
:herbie-target
(/ (* x0 x1) (- 1.0 x1))
(- (/ x0 (- 1.0 x1)) x0))
| arb-==: arity mismatch; the expected number of arguments does not match the given number expected: 0 given: 2 | L | C | |
|---|---|---|---|
| f | /home/nightlies/herbie/arb-support/src/programs.rkt | 187 | 2 |
| (unnamed) | /home/nightlies/herbie/arb-support/src/ground-truth.rkt | 23 | 2 |
| search-step | /home/nightlies/herbie/arb-support/src/searchreals.rkt | 37 | 0 |
| find-intervals | /home/nightlies/herbie/arb-support/src/searchreals.rkt | 87 | 0 |
| make-sampler | /home/nightlies/herbie/arb-support/src/sampling.rkt | 94 | 0 |
| sample-points | /home/nightlies/herbie/arb-support/src/ground-truth.rkt | 64 | 0 |
| setup-context! | /home/nightlies/herbie/arb-support/src/mainloop.rkt | 293 | 0 |
| get-alternatives/report | /home/nightlies/herbie/arb-support/src/sandbox.rkt | 148 | 0 |
| (unnamed) | /home/nightlies/herbie/arb-support/src/sandbox.rkt | 247 | 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 |