



Bits error versus x
| Original | 14.8 |
|---|---|
| Target | 0.1 |
| Herbie | 0.0 |
if x < -1.0208141978551163e+48 or 423.1303199100469 < x Initial program 32.1
Simplified32.1
Taylor expanded around inf 0.0
if -1.0208141978551163e+48 < x < 423.1303199100469Initial program 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019005 +o rules:numerics
(FPCore (x)
:name "x / (x^2 + 1)"
:herbie-target
(/ 1 (+ x (/ 1 x)))
(/ x (+ (* x x) 1)))
Time bar (total: 13.0s)Debug log
1 calls. Slowest were:
| 5.0ms | (/ x (+ (* x x) 1)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 14.3b
Found 1 expressions with local error:
| 14.3b | (/ x (fma x x 1)) |
1 calls. Slowest were:
| 1.0ms | (/ x (fma x x 1)) |
1 calls. Slowest were:
| 22.0ms | (/ x (fma x x 1)) |
6 calls. Slowest were:
| 59.0ms | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
| 58.0ms | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
| 29.0ms | (- (+ x (pow x 5)) (pow x 3)) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0b
Found 3 expressions with local error:
| 14.2b | (sqrt (fma x x 1)) |
| 14.2b | (sqrt (fma x x 1)) |
| 0.0b | (/ (/ x (sqrt (fma x x 1))) (sqrt (fma x x 1))) |
3 calls. Slowest were:
| 9.0ms | (/ (/ x (sqrt (fma x x 1))) (sqrt (fma x x 1))) |
| 2.0ms | (sqrt (fma x x 1)) |
| 2.0ms | (sqrt (fma x x 1)) |
3 calls. Slowest were:
| 37.0ms | (/ (/ x (sqrt (fma x x 1))) (sqrt (fma x x 1))) |
| 35.0ms | (sqrt (fma x x 1)) |
| 32.0ms | (sqrt (fma x x 1)) |
75 calls. Slowest were:
| 244.0ms | (- (+ x (* 1/2 (/ 1 x))) (* 1/8 (/ 1 (pow x 3)))) |
| 223.0ms | (/ (* (* (/ x (sqrt (fma x x 1))) (/ x (sqrt (fma x x 1)))) (/ x (sqrt (fma x x 1)))) (* (* (sqrt (fma x x 1)) (sqrt (fma x x 1))) (sqrt (fma x x 1)))) |
| 202.0ms | (- (* 1/8 (/ 1 (pow x 3))) (+ x (* 1/2 (/ 1 x)))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0b
Found 4 expressions with local error:
| 20.7b | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
| 0.2b | (/ 1 (pow x 3)) |
| 0.1b | (/ 1 (pow x 5)) |
| 0.0b | (+ (/ 1 (pow x 5)) (/ 1 x)) |
4 calls. Slowest were:
| 47.0ms | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
| 4.0ms | (+ (/ 1 (pow x 5)) (/ 1 x)) |
| 1.0ms | (/ 1 (pow x 3)) |
4 calls. Slowest were:
| 38.0ms | (+ (/ 1 (pow x 5)) (/ 1 x)) |
| 21.0ms | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
| 19.0ms | (/ 1 (pow x 3)) |
| 17.0ms | (/ 1 (pow x 5)) |
109 calls. Slowest were:
| 503.0ms | (* (- (/ 1 (pow x 5)) (/ 1 x)) (pow x 3)) |
| 452.0ms | (/ (exp (+ (/ 1 (pow x 5)) (/ 1 x))) (exp (/ 1 (pow x 3)))) |
| 328.0ms | (- (* (+ (pow (/ 1 (pow x 5)) 3) (pow (/ 1 x) 3)) (pow x 3)) (* (+ (* (/ 1 (pow x 5)) (/ 1 (pow x 5))) (- (* (/ 1 x) (/ 1 x)) (* (/ 1 (pow x 5)) (/ 1 x)))) 1)) |
3 alts after pruning (0 fresh and 3 done)
Merged error: 0b
99.9% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 14.7b