



Bits error versus x
Results
| Original | 40.4 |
|---|---|
| Target | 39.5 |
| Herbie | 0.3 |
if x < -0.00017053935770967545Initial program 0.0
rmApplied add-log-exp0.0
rmApplied flip3--0.0
if -0.00017053935770967545 < x Initial program 60.1
Taylor expanded around 0 0.4
Final simplification0.3
Time bar (total: 6.2s)Debug logProfile
| Baseline | Herbie | Oracle | Span | % | |
|---|---|---|---|---|---|
| Regimes | 20.5 | 0.3 | 0.0 | 20.4 | 98.9% |
herbie shell --seed 2018290
(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))