



Bits error versus x
Results
| Original | 15.2 |
|---|---|
| Target | 0.1 |
| Herbie | 0.0 |
Initial program 15.2
Simplified15.2
rmApplied *-un-lft-identity15.2
Applied associate-/r*15.2
rmApplied add-sqr-sqrt15.2
Applied div-inv15.2
Applied times-frac15.1
Simplified15.1
Simplified0.0
Final simplification0.0
herbie shell --seed 2019008 +o rules:numerics
(FPCore (x)
:name "x / (x^2 + 1)"
:herbie-target
(/ 1 (+ x (/ 1 x)))
(/ x (+ (* x x) 1)))
Time bar (total: 6.5s)Debug log
1 calls. Slowest were:
| 5.0ms | (/ x (+ (* x x) 1)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 13.8b
Found 1 expressions with local error:
| 13.8b | (/ x (fma x x 1)) |
1 calls. Slowest were:
| 1.0ms | (/ x (fma x x 1)) |
1 calls. Slowest were:
| 21.0ms | (/ x (fma x x 1)) |
6 calls. Slowest were:
| 56.0ms | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
| 39.0ms | (- (+ x (pow x 5)) (pow x 3)) |
| 30.0ms | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0b
Found 1 expressions with local error:
| 13.8b | (/ (/ x 1) (fma x x 1)) |
1 calls. Slowest were:
| 3.0ms | (/ (/ x 1) (fma x x 1)) |
1 calls. Slowest were:
| 25.0ms | (/ (/ x 1) (fma x x 1)) |
34 calls. Slowest were:
| 163.0ms | (/ (* (* (/ x 1) (/ x 1)) (/ x 1)) (* (* (fma x x 1) (fma x x 1)) (fma x x 1))) |
| 60.0ms | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
| 58.0ms | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.0b | (/ x (hypot 1 x)) |
| 0.0b | (/ 1 (hypot 1 x)) |
| 0.0b | (hypot 1 x) |
| 0.0b | (hypot 1 x) |
4 calls. Slowest were:
| 1.0ms | (/ 1 (hypot 1 x)) |
| 1.0ms | (/ x (hypot 1 x)) |
| 0.0ms | (hypot 1 x) |
4 calls. Slowest were:
| 36.0ms | (/ x (hypot 1 x)) |
| 31.0ms | (hypot 1 x) |
| 25.0ms | (/ 1 (hypot 1 x)) |
| 25.0ms | (hypot 1 x) |
19 calls. Slowest were:
| 206.0ms | (- (* 1/8 (/ 1 (pow x 3))) (+ x (* 1/2 (/ 1 x)))) |
| 203.0ms | (- (+ x (* 1/2 (/ 1 x))) (* 1/8 (/ 1 (pow x 3)))) |
| 196.0ms | (- (+ x (* 1/2 (/ 1 x))) (* 1/8 (/ 1 (pow x 3)))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.2b | (/ x (sqrt (hypot 1 x))) |
| 0.0b | (/ 1 (hypot 1 x)) |
| 0.0b | (hypot 1 x) |
| 0.0b | (hypot 1 x) |
4 calls. Slowest were:
| 2.0ms | (/ 1 (hypot 1 x)) |
| 1.0ms | (/ x (sqrt (hypot 1 x))) |
| 0.0ms | (hypot 1 x) |
4 calls. Slowest were:
| 51.0ms | (/ x (sqrt (hypot 1 x))) |
| 36.0ms | (hypot 1 x) |
| 24.0ms | (/ 1 (hypot 1 x)) |
| 23.0ms | (hypot 1 x) |
22 calls. Slowest were:
| 232.0ms | (- (* 1/2 (/ 1 (pow x 3))) (+ (* 3/8 (/ 1 (pow x 5))) (/ 1 x))) |
| 209.0ms | (- (* 1/8 (/ 1 (pow x 3))) (+ x (* 1/2 (/ 1 x)))) |
| 207.0ms | (- (* 1/8 (/ 1 (pow x 3))) (+ x (* 1/2 (/ 1 x)))) |
3 alts after pruning (0 fresh and 3 done)
Merged error: 0b
0% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 0.0b