



Bits error versus x
Results
| Original | 39.2 |
|---|---|
| Target | 0.3 |
| Herbie | 0.2 |
if x < 0.00015704252277677755Initial program 59.0
Taylor expanded around 0 0.2
Simplified0.2
if 0.00015704252277677755 < x Initial program 0.1
rmApplied add-sqr-sqrt0.1
Applied log-prod0.1
Final simplification0.2
Time bar (total: 7.4s)Debug logProfile
| Baseline | Herbie | Oracle | Span | % | |
|---|---|---|---|---|---|
| Regimes | 20.7 | 0.2 | 0.1 | 20.6 | 99.4% |
herbie shell --seed 2018295
(FPCore (x)
:name "ln(1 + x)"
:herbie-target
(if (== (+ 1 x) 1) x (/ (* x (log (+ 1 x))) (- (+ 1 x) 1)))
(log (+ 1 x)))