



Bits error versus x
Results
| Original | 15.2 |
|---|---|
| Target | 0.1 |
| Herbie | 0.0 |
if x < -136879010729.43633 or 5499.922499700308 < x Initial program 31.0
rmApplied div-inv31.0
rmApplied flip-+48.2
Applied associate-/r/48.2
Applied associate-*r*48.2
Taylor expanded around -inf 0.0
if -136879010729.43633 < x < 5499.922499700308Initial program 0.0
rmApplied div-inv0.0
rmApplied flip-+0.0
Applied associate-/r/0.0
Applied associate-*r*0.0
Final simplification0.0
herbie shell --seed 2019016
(FPCore (x)
:name "x / (x^2 + 1)"
:herbie-target
(/ 1 (+ x (/ 1 x)))
(/ x (+ (* x x) 1)))
Time bar (total: 16.0s)Debug log
| 256× | (pre true 80) |
| 256× | (body real 80) |
| 2.0ms | (/ x (+ (* x x) 1)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 14.4b
Found 1 expressions with local error:
| 14.4b | (/ 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)) |
| 29.0ms | (/ x (+ (* x x) 1)) |
| 258.0ms | (+ (* (* x x) (* x x)) (- (* 1 1) (* (* x x) 1))) |
| 52.0ms | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
| 47.0ms | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
| 24.0ms | (- (* x x) 1) |
| 20.0ms | (- (+ x (pow x 5)) (pow x 3)) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0b
Found 2 expressions with local error:
| 14.5b | (* x (/ 1 (+ (* x x) 1))) |
| 0.1b | (/ 1 (+ (* x x) 1)) |
| 6× | associate-*r* |
| 4× | add-cube-cbrt |
| 4× | associate-/r/ |
| 4× | *-un-lft-identity |
| 4× | add-sqr-sqrt |
| 3× | add-exp-log |
| 3× | associate-/r* |
| 3× | pow1 |
| 2× | add-log-exp |
| 2× | div-inv |
| 2× | flip-+ |
| 2× | add-cbrt-cube |
| 2× | flip3-+ |
| 1× | inv-pow |
| 1× | pow-flip |
| 1× | *-commutative |
| 1× | un-div-inv |
| 1× | associate-*r/ |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | rec-exp |
| 2.0ms | (/ 1 (+ (* x x) 1)) |
| 2.0ms | (* x (/ 1 (+ (* x x) 1))) |
| 27.0ms | (* x (/ 1 (+ (* x x) 1))) |
| 20.0ms | (/ 1 (+ (* x x) 1)) |
| 276.0ms | (+ (* (* x x) (* x x)) (- (* 1 1) (* (* x x) 1))) |
| 225.0ms | (+ (* (* x x) (* x x)) (- (* 1 1) (* (* x x) 1))) |
| 56.0ms | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
| 39.0ms | (- (+ x (pow x 5)) (pow x 3)) |
| 38.0ms | (- (+ (/ 1 (pow x 2)) (/ 1 (pow x 6))) (/ 1 (pow x 4))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 20.4b | (* (* x (/ 1 (- (* (* x x) (* x x)) (* 1 1)))) (- (* x x) 1)) |
| 2.6b | (* x (/ 1 (- (* (* x x) (* x x)) (* 1 1)))) |
| 0.3b | (/ 1 (- (* (* x x) (* x x)) (* 1 1))) |
| 0.1b | (* (* x x) (* x x)) |
| 12× | pow1 |
| 11× | associate-*r* |
| 9× | add-exp-log |
| 8× | add-cbrt-cube |
| 7× | add-cube-cbrt |
| 7× | *-un-lft-identity |
| 7× | add-sqr-sqrt |
| 6× | associate-*r/ |
| 5× | flip-- |
| 5× | flip3-- |
| 5× | pow2 |
| 4× | add-log-exp |
| 4× | un-div-inv |
| 4× | associate-/r/ |
| 4× | associate-/r* |
| 4× | frac-times |
| 3× | *-commutative |
| 3× | pow-prod-down |
| 2× | div-inv |
| 2× | cbrt-unprod |
| 2× | pow-prod-up |
| 2× | prod-exp |
| 2× | associate-*l/ |
| 2× | associate-*l* |
| 2× | distribute-lft-in |
| 2× | sub-neg |
| 2× | distribute-rgt-in |
| 1× | difference-of-squares |
| 1× | inv-pow |
| 1× | pow-flip |
| 1× | difference-of-sqr-1 |
| 1× | pow-plus |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | rec-exp |
| 25.0ms | (* (* x (/ 1 (- (* (* x x) (* x x)) (* 1 1)))) (- (* x x) 1)) |
| 6.0ms | (/ 1 (- (* (* x x) (* x x)) (* 1 1))) |
| 5.0ms | (* x (/ 1 (- (* (* x x) (* x x)) (* 1 1)))) |
| 4.0ms | (* (* x x) (* x x)) |
| 52.0ms | (* x (/ 1 (- (* (* x x) (* x x)) (* 1 1)))) |
| 47.0ms | (* (* x (/ 1 (- (* (* x x) (* x x)) (* 1 1)))) (- (* x x) 1)) |
| 33.0ms | (/ 1 (- (* (* x x) (* x x)) (* 1 1))) |
| 14.0ms | (* (* x x) (* x x)) |
| 1.2s | (* (* x (/ 1 (- (* (* x x) (* x x)) (* 1 1)))) (- 1)) |
| 1.1s | (* (- 1) (* x (/ 1 (- (* (* x x) (* x x)) (* 1 1))))) |
| 887.0ms | (* (- 1) (* x (/ 1 (- (* (* x x) (* x x)) (* 1 1))))) |
| 862.0ms | (* (* x (/ 1 (- (* (* x x) (* x x)) (* 1 1)))) (- 1)) |
| 494.0ms | (* x (- (* x x) 1)) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0b
Found 4 expressions with local error:
| 18.7b | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
| 0.9b | (/ 1 (pow x 3)) |
| 0.4b | (/ 1 (pow x 5)) |
| 0.0b | (+ (/ 1 (pow x 5)) (/ 1 x)) |
| 25× | *-un-lft-identity |
| 19× | div-inv |
| 12× | distribute-lft-out |
| 11× | add-log-exp |
| 10× | distribute-lft-out-- |
| 8× | associate-/r* |
| 8× | add-sqr-sqrt |
| 6× | add-cube-cbrt |
| 6× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | rec-exp |
| 4× | pow1 |
| 3× | frac-sub |
| 2× | inv-pow |
| 2× | pow-flip |
| 2× | flip-+ |
| 2× | frac-add |
| 2× | diff-log |
| 2× | flip3-+ |
| 2× | frac-2neg |
| 2× | sum-log |
| 2× | clear-num |
| 2× | pow-to-exp |
| 1× | difference-of-squares |
| 1× | flip-- |
| 1× | associate--l+ |
| 1× | unpow3 |
| 1× | flip3-- |
| 1× | sub-neg |
| 1× | +-commutative |
| 1× | cube-mult |
| 50.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)) |
| 1.0ms | (/ 1 (pow x 5)) |
| 34.0ms | (+ (/ 1 (pow x 5)) (/ 1 x)) |
| 32.0ms | (- (+ (/ 1 (pow x 5)) (/ 1 x)) (/ 1 (pow x 3))) |
| 20.0ms | (/ 1 (pow x 3)) |
| 18.0ms | (/ 1 (pow x 5)) |
| 320.0ms | (* (- (/ 1 (pow x 5)) (/ 1 x)) (pow x 3)) |
| 302.0ms | (- (* (+ (* 1 x) (* (pow x 5) 1)) (pow x 3)) (* (* (pow x 5) x) 1)) |
| 234.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)) |
| 178.0ms | (- (* (- (* (/ 1 (pow x 5)) (/ 1 (pow x 5))) (* (/ 1 x) (/ 1 x))) (pow x 3)) (* (- (/ 1 (pow x 5)) (/ 1 x)) 1)) |
| 136.0ms | (* (+ (* (/ 1 (pow x 5)) (/ 1 (pow x 5))) (- (* (/ 1 x) (/ 1 x)) (* (/ 1 (pow x 5)) (/ 1 x)))) (pow x 3)) |
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 15.2b
| 8000× | (pre true 80) |
| 8000× | (body real 80) |