



Bits error versus a




Bits error versus x
Results
| Original | 29.1 |
|---|---|
| Target | 0.2 |
| Herbie | 0.0 |
Initial program 29.1
Simplified0.0
Final simplification0.0
herbie shell --seed 2019008 +o rules:numerics
(FPCore (a x)
:name "expax (section 3.5)"
:herbie-target
(if (< (fabs (* a x)) 1/10) (* (* a x) (+ 1 (+ (/ (* a x) 2) (/ (pow (* a x) 2) 6)))) (- (exp (* a x)) 1))
(- (exp (* a x)) 1))
Time bar (total: 2.9s)Debug log
1 calls. Slowest were:
| 7.0ms | (- (exp (* a x)) 1) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.1b
Found 1 expressions with local error:
| 0.1b | (expm1 (* a x)) |
1 calls. Slowest were:
| 1.0ms | (expm1 (* a x)) |
1 calls. Slowest were:
| 37.0ms | (expm1 (* a x)) |
4 calls. Slowest were:
| 199.0ms | (+ (* 1/2 (* (pow a 2) (pow x 2))) (+ (* a x) (* 1/6 (* (pow a 3) (pow x 3))))) |
| 7.0ms | (- (exp (* a x)) 1) |
| 7.0ms | (- (exp (* a x)) 1) |
1 alts after pruning (0 fresh and 1 done)
Merged error: 0.1b