



Bits error versus x
Results
| Original | 14.5 |
|---|---|
| Target | 0.1 |
| Herbie | 0.0 |
if x < -1.357340002977744e+154 or 15474336.42221833 < x Initial program 39.6
Taylor expanded around inf 0.0
if -1.357340002977744e+154 < x < 15474336.42221833Initial program 0.1
rmApplied add-sqr-sqrt0.1
Applied associate-/r*0.0
Final simplification0.0
herbie shell --seed 2019010
(FPCore (x)
:name "x / (x^2 + 1)"
:herbie-target
(/ 1 (+ x (/ 1 x)))
(/ x (+ (* x x) 1)))
Time bar (total: 5.5s)Debug log
| 2.0ms | (/ x (+ (* x x) 1)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 12.7b
Found 1 expressions with local error:
| 12.7b | (/ x (+ (* x x) 1)) |
| 3× | associate-/r* |
| 2× | add-cube-cbrt |
| 2× | associate-/r/ |
| 2× | *-un-lft-identity |
| 2× | add-sqr-sqrt |
| 1× | add-log-exp |
| 1× | div-inv |
| 1× | flip-+ |
| 1× | add-exp-log |
| 1× | add-cbrt-cube |
| 1× | flip3-+ |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | pow1 |
| 1.0ms | (/ x (+ (* x x) 1)) |
| 21.0ms | (/ x (+ (* x x) 1)) |
| 240.0ms | (+ (* (* x x) (* x x)) (- (* 1 1) (* (* x x) 1))) |
| 56.0ms | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
| 46.0ms | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
| 21.0ms | (- (+ x (pow x 5)) (pow x 3)) |
| 13.0ms | (- (* x x) 1) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0b
Found 2 expressions with local error:
| 12.6b | (sqrt (+ (* x x) 1)) |
| 12.6b | (sqrt (+ (* x x) 1)) |
| 6× | sqrt-prod |
| 6× | add-sqr-sqrt |
| 4× | add-cube-cbrt |
| 4× | sqrt-div |
| 4× | *-un-lft-identity |
| 2× | add-log-exp |
| 2× | flip-+ |
| 2× | add-exp-log |
| 2× | pow1/2 |
| 2× | add-cbrt-cube |
| 2× | flip3-+ |
| 2× | rem-sqrt-square |
| 2× | pow1 |
| 2.0ms | (sqrt (+ (* x x) 1)) |
| 2.0ms | (sqrt (+ (* x x) 1)) |
| 21.0ms | (sqrt (+ (* x x) 1)) |
| 16.0ms | (sqrt (+ (* x x) 1)) |
| 168.0ms | (- (+ x (* 1/2 (/ 1 x))) (* 1/8 (/ 1 (pow x 3)))) |
| 154.0ms | (- (* 1/8 (/ 1 (pow x 3))) (+ x (* 1/2 (/ 1 x)))) |
| 116.0ms | (- (* 1/8 (/ 1 (pow x 3))) (+ x (* 1/2 (/ 1 x)))) |
| 111.0ms | (- (+ x (* 1/2 (/ 1 x))) (* 1/8 (/ 1 (pow x 3)))) |
| 101.0ms | (sqrt (- (* (* x x) (* x x)) (* 1 1))) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0b
Found 3 expressions with local error:
| 19.8b | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
| 0.2b | (/ 1 (pow x 3)) |
| 0.0b | (/ 1 (pow x 5)) |
| 20× | *-un-lft-identity |
| 15× | div-inv |
| 10× | distribute-lft-out-- |
| 8× | add-log-exp |
| 8× | distribute-lft-out |
| 8× | associate-/r* |
| 7× | add-sqr-sqrt |
| 5× | add-cube-cbrt |
| 5× | add-exp-log |
| 4× | rec-exp |
| 3× | frac-sub |
| 3× | add-cbrt-cube |
| 3× | pow1 |
| 2× | inv-pow |
| 2× | pow-flip |
| 2× | diff-log |
| 2× | frac-2neg |
| 2× | clear-num |
| 2× | pow-to-exp |
| 1× | difference-of-squares |
| 1× | flip-- |
| 1× | flip-+ |
| 1× | associate--l+ |
| 1× | frac-add |
| 1× | unpow3 |
| 1× | flip3-- |
| 1× | flip3-+ |
| 1× | sub-neg |
| 1× | sum-log |
| 1× | cube-mult |
| 53.0ms | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
| 1.0ms | (/ 1 (pow x 3)) |
| 1.0ms | (/ 1 (pow x 5)) |
| 27.0ms | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
| 26.0ms | (/ 1 (pow x 5)) |
| 22.0ms | (/ 1 (pow x 3)) |
| 332.0ms | (* (- (/ 1 (pow x 5)) (/ 1 x)) (pow x 3)) |
| 238.0ms | (- (* (- (* (/ 1 (pow x 5)) (/ 1 (pow x 5))) (* (/ 1 x) (/ 1 x))) (pow x 3)) (* (- (/ 1 (pow x 5)) (/ 1 x)) 1)) |
| 209.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)) |
| 203.0ms | (- (* (+ (* 1 x) (* (pow x 5) 1)) (pow x 3)) (* (* (pow x 5) x) 1)) |
| 135.0ms | (* (+ (* (/ 1 (pow x 5)) (/ 1 (pow x 5))) (- (* (/ 1 x) (/ 1 x)) (* (/ 1 (pow x 5)) (/ 1 x)))) (pow x 3)) |
2 alts after pruning (0 fresh and 2 done)
Merged error: 0b
100% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 14.4b