



Bits error versus x
Results
| Original | 40.6 |
|---|---|
| Target | 39.8 |
| Herbie | 0.3 |
if x < -0.00015945872100963838Initial program 0.1
Initial simplification0.1
rmApplied flip-+0.1
Applied associate-/l/0.1
Simplified0.1
if -0.00015945872100963838 < x Initial program 60.1
Initial simplification60.1
Taylor expanded around 0 0.4
Final simplification0.3
Time bar (total: 11.7s)Debug logProfile
| Baseline | Herbie | Oracle | Span | % | |
|---|---|---|---|---|---|
| Regimes | 20.2 | 0.3 | 0.1 | 20.2 | 98.8% |
herbie shell --seed 2018352
(FPCore (x)
:name "Kahan's exp quotient"
:herbie-target
(if (and (< x 1) (> x -1)) (/ (- (exp x) 1) (log (exp x))) (/ (- (exp x) 1) x))
(/ (- (exp x) 1) x))