
(FPCore (x eps) :precision binary64 (- (sin (+ x eps)) (sin x)))
double code(double x, double eps) {
return sin((x + eps)) - sin(x);
}
real(8) function code(x, eps)
real(8), intent (in) :: x
real(8), intent (in) :: eps
code = sin((x + eps)) - sin(x)
end function
public static double code(double x, double eps) {
return Math.sin((x + eps)) - Math.sin(x);
}
def code(x, eps): return math.sin((x + eps)) - math.sin(x)
function code(x, eps) return Float64(sin(Float64(x + eps)) - sin(x)) end
function tmp = code(x, eps) tmp = sin((x + eps)) - sin(x); end
code[x_, eps_] := N[(N[Sin[N[(x + eps), $MachinePrecision]], $MachinePrecision] - N[Sin[x], $MachinePrecision]), $MachinePrecision]
\sin \left(x + \varepsilon\right) - \sin x
Please include this information when filing a bug report:
herbie shell --seed 2023243
(FPCore (x eps)
:name "2sin (example 3.3)"
:precision binary64
:herbie-target
(* 2.0 (* (cos (+ x (/ eps 2.0))) (sin (/ eps 2.0))))
(- (sin (+ x eps)) (sin x)))
| arb-fabs: Unimplemented | 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 |
| arb-eval | /home/nightlies/herbie/arb-support/src/sampling.rkt | 126 | 0 |
| f | /home/nightlies/herbie/arb-support/src/ground-truth.rkt | 46 | 2 |
| compute-local-errors | /home/nightlies/herbie/arb-support/src/core/localize.rkt | 38 | 0 |
| batch-localize-error | /home/nightlies/herbie/arb-support/src/core/localize.rkt | 26 | 0 |
| localize! | /home/nightlies/herbie/arb-support/src/mainloop.rkt | 123 | 0 |
| run-iter! | /home/nightlies/herbie/arb-support/src/mainloop.rkt | 276 | 0 |
| mutate! | /home/nightlies/herbie/arb-support/src/mainloop.rkt | 395 | 0 |
| run-improve! | /home/nightlies/herbie/arb-support/src/mainloop.rkt | 353 | 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 |