



Bits error versus x
Results
| Original | 39.5 |
|---|---|
| Target | 38.7 |
| Herbie | 0.3 |
if (cbrt (* (* (log (exp (+ (+ (* 1/2 x) 1) (* (* x 1/6) x)))) (log (exp (+ (+ (* 1/2 x) 1) (* (* x 1/6) x))))) (log (exp (+ (+ (* 1/2 x) 1) (* (* x 1/6) x)))))) < 1.0470384144565212Initial program 60.0
Taylor expanded around 0 0.4
if 1.0470384144565212 < (cbrt (* (* (log (exp (+ (+ (* 1/2 x) 1) (* (* x 1/6) x)))) (log (exp (+ (+ (* 1/2 x) 1) (* (* x 1/6) x))))) (log (exp (+ (+ (* 1/2 x) 1) (* (* x 1/6) x)))))) Initial program 0.0
rmApplied flip3--0.2
Final simplification0.3
Time bar (total: 9.3s)Debug logProfile
herbie shell --seed 2018215
(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))