



Bits error versus x
Results
| Original | 61.0 |
|---|---|
| Target | 0.4 |
| Herbie | 0.1 |
Initial program 61.0
Simplified60.0
rmApplied sub-neg60.0
Applied log1p-def0.0
rmApplied *-un-lft-identity0.0
Applied associate-/l*0.0
rmApplied div-inv0.2
Applied associate-/r*0.1
Final simplification0.1
herbie shell --seed 2019030 +o rules:numerics
(FPCore (x)
:name "qlog (example 3.10)"
:pre (and (< -1 x) (< x 1))
:herbie-target
(- (+ (+ (+ 1 x) (/ (* x x) 2)) (* 5/12 (pow x 3))))
(/ (log (- 1 x)) (log (+ 1 x))))