



Bits error versus a




Bits error versus x
Results
| Original | 30.1 |
|---|---|
| Target | 0.2 |
| Herbie | 0.3 |
if (* a x) < -0.001928462438769998Initial program 0.0
rmApplied add-sqr-sqrt0.0
Applied difference-of-sqr-10.0
if -0.001928462438769998 < (* a x) Initial program 44.6
Taylor expanded around 0 14.3
Simplified0.5
Final simplification0.3
Time bar (total: 19.9s)Debug logProfile
| Baseline | Herbie | Oracle | Span | % | |
|---|---|---|---|---|---|
| Regimes | 20.3 | 0.3 | 0.1 | 20.2 | 98.7% |
herbie shell --seed 2018340
(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))