



Bits error versus x
| Original | 15.4 |
|---|---|
| Target | 0.1 |
| Herbie | 0.1 |
if x < -5.315332958531357e+47 or 536.2819961347985 < x Initial program 33.4
Simplified33.4
rmApplied clear-num33.3
Taylor expanded around -inf 0.0
if -5.315332958531357e+47 < x < 536.2819961347985Initial program 0.0
Simplified0.0
rmApplied clear-num0.2
Final simplification0.1
herbie shell --seed 2019007 +o rules:numerics
(FPCore (x)
:name "x / (x^2 + 1)"
:herbie-target
(/ 1 (+ x (/ 1 x)))
(/ x (+ (* x x) 1)))
Time bar (total: 13.5s)Debug log
1 calls. Slowest were:
| 4.0ms | (/ x (+ (* x x) 1)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 17.0b
Found 1 expressions with local error:
| 17.0b | (/ x (fma x x 1)) |
1 calls. Slowest were:
| 1.0ms | (/ x (fma x x 1)) |
1 calls. Slowest were:
| 31.0ms | (/ x (fma x x 1)) |
6 calls. Slowest were:
| 43.0ms | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
| 33.0ms | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
| 33.0ms | (- (+ x (pow x 5)) (pow x 3)) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0.0b
Found 2 expressions with local error:
| 17.0b | (/ (fma x x 1) x) |
| 0.1b | (/ 1 (/ (fma x x 1) x)) |
2 calls. Slowest were:
| 3.0ms | (/ (fma x x 1) x) |
| 1.0ms | (/ 1 (/ (fma x x 1) x)) |
2 calls. Slowest were:
| 54.0ms | (/ (fma x x 1) x) |
| 37.0ms | (/ 1 (/ (fma x x 1) x)) |
13 calls. Slowest were:
| 41.0ms | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
| 33.0ms | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
| 32.0ms | (- (+ x (pow x 5)) (pow x 3)) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.0b
Found 1 expressions with local error:
| 19.2b | (- (+ x (pow x 5)) (pow x 3)) |
1 calls. Slowest were:
| 13.0ms | (- (+ x (pow x 5)) (pow x 3)) |
1 calls. Slowest were:
| 35.0ms | (- (+ x (pow x 5)) (pow x 3)) |
39 calls. Slowest were:
| 333.0ms | (fma (- (cbrt (pow x 3))) (* (cbrt (pow x 3)) (cbrt (pow x 3))) (* (cbrt (pow x 3)) (* (cbrt (pow x 3)) (cbrt (pow x 3))))) |
| 272.0ms | (fma (- (cbrt (pow x 3))) (* (cbrt (pow x 3)) (cbrt (pow x 3))) (* (cbrt (pow x 3)) (* (cbrt (pow x 3)) (cbrt (pow x 3))))) |
| 241.0ms | (fma (- (cbrt (pow x 3))) (* (cbrt (pow x 3)) (cbrt (pow x 3))) (* (cbrt (pow x 3)) (* (cbrt (pow x 3)) (cbrt (pow x 3))))) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 19.1b | (- (+ (/ 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:
| 61.0ms | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
| 8.0ms | (+ (/ 1 (pow x 5)) (/ 1 x)) |
| 1.0ms | (/ 1 (pow x 3)) |
4 calls. Slowest were:
| 46.0ms | (+ (/ 1 (pow x 5)) (/ 1 x)) |
| 34.0ms | (/ 1 (pow x 5)) |
| 28.0ms | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
| 24.0ms | (/ 1 (pow x 3)) |
109 calls. Slowest were:
| 386.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)) |
| 330.0ms | (* (- (/ 1 (pow x 5)) (/ 1 x)) (pow x 3)) |
| 235.0ms | (* (+ (* (/ 1 (pow x 5)) (/ 1 (pow x 5))) (- (* (/ 1 x) (/ 1 x)) (* (/ 1 (pow x 5)) (/ 1 x)))) (pow x 3)) |
4 alts after pruning (1 fresh and 3 done)
Merged error: 0.0b
99.4% (0.1b remaining)
Error of 0.1b against oracle of 0.0b and baseline of 15.4b