



Bits error versus x
Results
| Original | 9.7 |
|---|---|
| Target | 0.2 |
| Herbie | 0.1 |
if x < -99.99527790347257 or 100.82262386676551 < x Initial program 19.5
Taylor expanded around inf 0.5
Simplified0.1
Taylor expanded around inf 0.1
if -99.99527790347257 < x < 100.82262386676551Initial program 0.0
Final simplification0.1
Time bar (total: 21.0s)Debug logProfile
| Baseline | Herbie | Oracle | Span | % | |
|---|---|---|---|---|---|
| Regimes | 9.7 | 0.1 | 0.0 | 9.6 | 99.5% |
herbie shell --seed 2018274 +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))))