



Bits error versus x
Results
| Original | 39.8 |
|---|---|
| Target | 39.0 |
| Herbie | 0.3 |
if x < -0.00014117135627756671Initial program 0.1
Taylor expanded around -inf 0.1
Simplified0.1
if -0.00014117135627756671 < x Initial program 60.2
Taylor expanded around 0 0.5
Simplified0.5
Final simplification0.3
Time bar (total: 15.8s)Debug logProfile
| Baseline | Herbie | Oracle | Span | % | |
|---|---|---|---|---|---|
| Regimes | 21.1 | 0.3 | 0.1 | 21.1 | 98.7% |
herbie shell --seed 2018355
(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))