



Bits error versus x
Results
| Original | 9.8 |
|---|---|
| Target | 0.2 |
| Herbie | 0.5 |
if (+ (- (/ 1 (+ x 1)) (/ 2 x)) (/ 1 (- x 1))) < -1.6439067947386608e-07 or 3.5008723689603e-310 < (+ (- (/ 1 (+ x 1)) (/ 2 x)) (/ 1 (- x 1))) Initial program 0.8
if -1.6439067947386608e-07 < (+ (- (/ 1 (+ x 1)) (/ 2 x)) (/ 1 (- x 1))) < 3.5008723689603e-310Initial program 19.1
Taylor expanded around inf 0.4
Applied simplify0.1
Time bar (total: 2.4m)Debug logProfile
herbie shell --seed 2018193 +o rules:numerics
(FPCore (x)
:name "3frac (problem 3.3.3)"
:herbie-target
(/ 2 (* x (- (* x x) 1)))
(+ (- (/ 1 (+ x 1)) (/ 2 x)) (/ 1 (- x 1))))