
(FPCore (x) :precision binary64 (+ (- (exp x) 2.0) (exp (- x))))
double code(double x) {
return (exp(x) - 2.0) + exp(-x);
}
real(8) function code(x)
real(8), intent (in) :: x
code = (exp(x) - 2.0d0) + exp(-x)
end function
public static double code(double x) {
return (Math.exp(x) - 2.0) + Math.exp(-x);
}
def code(x): return (math.exp(x) - 2.0) + math.exp(-x)
function code(x) return Float64(Float64(exp(x) - 2.0) + exp(Float64(-x))) end
function tmp = code(x) tmp = (exp(x) - 2.0) + exp(-x); end
code[x_] := N[(N[(N[Exp[x], $MachinePrecision] - 2.0), $MachinePrecision] + N[Exp[(-x)], $MachinePrecision]), $MachinePrecision]
\left(e^{x} - 2\right) + e^{-x}
Please include this information when filing a bug report:
herbie shell --seed 2023243
(FPCore (x)
:name "exp2 (problem 3.3.7)"
:precision binary64
:herbie-target
(* 4.0 (pow (sinh (/ x 2.0)) 2.0))
(+ (- (exp x) 2.0) (exp (- x))))
| arb-cbrt: 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 |