



Bits error versus x
Results
| Original | 14.6 |
|---|---|
| Target | 0.1 |
| Herbie | 0.8 |
Initial program 14.6
Initial simplification14.6
rmApplied add-sqr-sqrt14.6
Applied associate-/r*14.5
rmApplied *-un-lft-identity14.5
Applied add-cube-cbrt15.3
Applied times-frac15.3
Simplified15.3
Simplified0.8
Final simplification0.8
herbie shell --seed 2018365 +o rules:numerics
(FPCore (x)
:name "x / (x^2 + 1)"
:herbie-target
(/ 1 (+ x (/ 1 x)))
(/ x (+ (* x x) 1)))
Time bar (total: 12.9s)Debug log
1 alts after pruning (1 fresh and 0 done)
Merged error: 17.7b
Found 1 expressions with local error:
| 17.7b | (/ x (fma x x 1)) |
1 calls. Slowest were:
| 1.0ms | (/ x (fma x x 1)) |
1 calls. Slowest were:
| 38.0ms | (/ x (fma x x 1)) |
6 calls. Slowest were:
| 62.0ms | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
| 57.0ms | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
| 42.0ms | (- (+ x (pow x 5)) (pow x 3)) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0b
Found 4 expressions with local error:
| 17.7b | (sqrt (fma x x 1)) |
| 17.7b | (sqrt (fma x x 1)) |
| 0.0b | (/ (/ x (sqrt (fma x x 1))) (sqrt (fma x x 1))) |
| 0.0b | (/ x (sqrt (fma x x 1))) |
4 calls. Slowest were:
| 9.0ms | (/ (/ x (sqrt (fma x x 1))) (sqrt (fma x x 1))) |
| 1.0ms | (/ x (sqrt (fma x x 1))) |
| 1.0ms | (sqrt (fma x x 1)) |
4 calls. Slowest were:
| 50.0ms | (/ x (sqrt (fma x x 1))) |
| 38.0ms | (sqrt (fma x x 1)) |
| 36.0ms | (/ (/ x (sqrt (fma x x 1))) (sqrt (fma x x 1))) |
| 36.0ms | (sqrt (fma x x 1)) |
84 calls. Slowest were:
| 268.0ms | (- (* 1/8 (/ 1 (pow x 3))) (+ x (* 1/2 (/ 1 x)))) |
| 256.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)))) |
| 231.0ms | (- (+ x (* 1/2 (/ 1 x))) (* 1/8 (/ 1 (pow x 3)))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.3b | (cbrt (/ x (hypot 1 x))) |
| 0.3b | (cbrt (/ x (hypot 1 x))) |
| 0.3b | (cbrt (/ x (hypot 1 x))) |
| 0.2b | (* (cbrt (/ x (hypot 1 x))) (cbrt (/ x (hypot 1 x)))) |
4 calls. Slowest were:
| 5.0ms | (* (cbrt (/ x (hypot 1 x))) (cbrt (/ x (hypot 1 x)))) |
| 1.0ms | (cbrt (/ x (hypot 1 x))) |
| 1.0ms | (cbrt (/ x (hypot 1 x))) |
4 calls. Slowest were:
| 189.0ms | (cbrt (/ x (hypot 1 x))) |
| 187.0ms | (* (cbrt (/ x (hypot 1 x))) (cbrt (/ x (hypot 1 x)))) |
| 183.0ms | (cbrt (/ x (hypot 1 x))) |
| 161.0ms | (cbrt (/ x (hypot 1 x))) |
53 calls. Slowest were:
| 263.0ms | (- (+ (* 2/9 (/ (pow (cbrt -1) 2) (pow x 4))) (pow (cbrt -1) 2)) (* 1/3 (/ (pow (cbrt -1) 2) (pow x 2)))) |
| 213.0ms | (- (+ (cbrt -1) (* 7/72 (/ (cbrt -1) (pow x 4)))) (* 1/6 (/ (cbrt -1) (pow x 2)))) |
| 177.0ms | (- (+ (cbrt -1) (* 7/72 (/ (cbrt -1) (pow x 4)))) (* 1/6 (/ (cbrt -1) (pow x 2)))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0b
Found 4 expressions with local error:
| 11.5b | (* (/ x (sqrt (hypot 1 x))) (/ (/ 1 (hypot 1 x)) (sqrt (hypot 1 x)))) |
| 0.3b | (/ x (sqrt (hypot 1 x))) |
| 0.1b | (/ (/ 1 (hypot 1 x)) (sqrt (hypot 1 x))) |
| 0.0b | (/ 1 (hypot 1 x)) |
4 calls. Slowest were:
| 12.0ms | (* (/ x (sqrt (hypot 1 x))) (/ (/ 1 (hypot 1 x)) (sqrt (hypot 1 x)))) |
| 8.0ms | (/ (/ 1 (hypot 1 x)) (sqrt (hypot 1 x))) |
| 2.0ms | (/ 1 (hypot 1 x)) |
4 calls. Slowest were:
| 54.0ms | (/ x (sqrt (hypot 1 x))) |
| 43.0ms | (* (/ x (sqrt (hypot 1 x))) (/ (/ 1 (hypot 1 x)) (sqrt (hypot 1 x)))) |
| 42.0ms | (/ 1 (hypot 1 x)) |
| 40.0ms | (/ (/ 1 (hypot 1 x)) (sqrt (hypot 1 x))) |
125 calls. Slowest were:
| 431.0ms | (/ (* (* (/ 1 (hypot 1 x)) (/ 1 (hypot 1 x))) (/ 1 (hypot 1 x))) (* (* (sqrt (hypot 1 x)) (sqrt (hypot 1 x))) (sqrt (hypot 1 x)))) |
| 426.0ms | (+ (log (/ x (sqrt (hypot 1 x)))) (log (/ (/ 1 (hypot 1 x)) (sqrt (hypot 1 x))))) |
| 415.0ms | (+ (log (/ x (sqrt (hypot 1 x)))) (- (log (/ 1 (hypot 1 x))) (log (sqrt (hypot 1 x))))) |
3 alts after pruning (0 fresh and 3 done)
Merged error: 0b
0% (0.8b remaining)
Error of 0.8b against oracle of 0.0b and baseline of 0.8b