


Bits error versus x
Results
Initial program 14.3
rmApplied frac-sub13.7
Simplified0.4
rmApplied associate-/r*0.1
Final simplification0.1
herbie shell --seed 2019021
(FPCore (x)
:name "2frac (problem 3.3.1)"
(- (/ 1 (+ x 1)) (/ 1 x)))
Time bar (total: 6.2s)Debug log
| 17.0ms | 68× | body | 640 | valid |
| 8.0ms | 134× | body | 80 | valid |
| 8.0ms | 41× | body | 320 | valid |
| 2.0ms | 13× | body | 160 | valid |
| 4.0ms | (- (/ 1 (+ x 1)) (/ 1 x)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 14.8b
Found 2 expressions with local error:
| 2.4b | (- (/ 1 (+ x 1)) (/ 1 x)) |
| 0.0b | (/ 1 (+ x 1)) |
| 7× | *-un-lft-identity |
| 5× | div-inv |
| 5× | add-sqr-sqrt |
| 4× | add-log-exp |
| 4× | distribute-lft-out-- |
| 3× | add-cube-cbrt |
| 3× | add-exp-log |
| 3× | associate-/r* |
| 3× | pow1 |
| 2× | associate-/r/ |
| 2× | add-cbrt-cube |
| 1× | difference-of-squares |
| 1× | inv-pow |
| 1× | flip-- |
| 1× | pow-flip |
| 1× | flip-+ |
| 1× | frac-sub |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | flip3-+ |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 1× | rec-exp |
| 10.0ms | (- (/ 1 (+ x 1)) (/ 1 x)) |
| 2.0ms | (/ 1 (+ x 1)) |
| 25.0ms | (- (/ 1 (+ x 1)) (/ 1 x)) |
| 6.0ms | (/ 1 (+ x 1)) |
| 66.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 45.0ms | (- 1 (+ x (/ 1 x))) |
| 40.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 29.0ms | (- (* 1 x) (* (+ x 1) 1)) |
| 28.0ms | (- (+ (/ 1 (pow x 3)) (/ 1 x)) (/ 1 (pow x 2))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.5b
Found 2 expressions with local error:
| 0.5b | (/ -1 (* (+ x 1) x)) |
| 0.0b | (* (+ x 1) x) |
| 4× | associate-*l/ |
| 3× | add-cube-cbrt |
| 3× | associate-*l* |
| 3× | *-un-lft-identity |
| 3× | add-sqr-sqrt |
| 2× | add-log-exp |
| 2× | flip-+ |
| 2× | associate-/r/ |
| 2× | add-exp-log |
| 2× | add-cbrt-cube |
| 2× | flip3-+ |
| 2× | pow1 |
| 1× | div-inv |
| 1× | *-commutative |
| 1× | frac-2neg |
| 1× | associate-/r* |
| 1× | clear-num |
| 2.0ms | (* (+ x 1) x) |
| 1.0ms | (/ -1 (* (+ x 1) x)) |
| 19.0ms | (* (+ x 1) x) |
| 8.0ms | (/ -1 (* (+ x 1) x)) |
| 92.0ms | (* (- (* x x) (* 1 1)) x) |
| 47.0ms | (- 1 (+ x (/ 1 x))) |
| 44.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 35.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 33.0ms | (+ (* x x) (- (* 1 1) (* x 1))) |
6 alts after pruning (5 fresh and 1 done)
Merged error: 0.0b
Found 2 expressions with local error:
| 0.1b | (/ (/ -1 (+ x 1)) x) |
| 0.0b | (/ -1 (+ x 1)) |
| 6× | associate-/l* |
| 4× | add-cube-cbrt |
| 4× | associate-/r/ |
| 4× | *-un-lft-identity |
| 4× | add-sqr-sqrt |
| 3× | div-inv |
| 3× | associate-/r* |
| 2× | add-log-exp |
| 2× | flip-+ |
| 2× | add-exp-log |
| 2× | add-cbrt-cube |
| 2× | flip3-+ |
| 2× | frac-2neg |
| 2× | clear-num |
| 2× | pow1 |
| 1× | associate-/l/ |
| 4.0ms | (/ (/ -1 (+ x 1)) x) |
| 1.0ms | (/ -1 (+ x 1)) |
| 13.0ms | (/ (/ -1 (+ x 1)) x) |
| 10.0ms | (/ -1 (+ x 1)) |
| 68.0ms | (- (/ 1 (pow x 2)) (+ (/ 1 (pow x 3)) (/ 1 x))) |
| 57.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 47.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 46.0ms | (/ -1 (- (* x x) (* 1 1))) |
| 42.0ms | (- (/ 1 (pow x 2)) (+ (/ 1 (pow x 3)) (/ 1 x))) |
6 alts after pruning (4 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.5b | (/ -1 (* (* (cbrt (+ x 1)) (cbrt (+ x 1))) (* (cbrt (+ x 1)) x))) |
| 0.3b | (cbrt (+ x 1)) |
| 0.3b | (cbrt (+ x 1)) |
| 0.3b | (cbrt (+ x 1)) |
| 60× | cbrt-div |
| 32× | associate-*l/ |
| 30× | flip-+ |
| 30× | flip3-+ |
| 28× | frac-times |
| 26× | associate-/r/ |
| 9× | cbrt-prod |
| 8× | associate-*r/ |
| 7× | add-cube-cbrt |
| 7× | *-un-lft-identity |
| 7× | add-sqr-sqrt |
| 4× | add-log-exp |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 3× | pow1/3 |
| 1× | div-inv |
| 1× | frac-2neg |
| 1× | associate-/r* |
| 1× | clear-num |
| 7.0ms | (/ -1 (* (* (cbrt (+ x 1)) (cbrt (+ x 1))) (* (cbrt (+ x 1)) x))) |
| 1.0ms | (cbrt (+ x 1)) |
| 1.0ms | (cbrt (+ x 1)) |
| 1.0ms | (cbrt (+ x 1)) |
| 51.0ms | (cbrt (+ x 1)) |
| 46.0ms | (cbrt (+ x 1)) |
| 43.0ms | (cbrt (+ x 1)) |
| 14.0ms | (/ -1 (* (* (cbrt (+ x 1)) (cbrt (+ x 1))) (* (cbrt (+ x 1)) x))) |
| 210.0ms | (- (+ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) (* 1/3 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) x))) (* 1/9 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) (pow x 2)))) |
| 197.0ms | (- (+ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) (* 1/3 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) x))) (* 1/9 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) (pow x 2)))) |
| 158.0ms | (- (+ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) (* 1/3 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) x))) (* 1/9 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) (pow x 2)))) |
| 76.0ms | (- (+ (* 1/3 x) 1) (* 1/9 (pow x 2))) |
| 70.0ms | (- (+ (* 1/3 (pow (/ 1 (pow x 2)) 1/3)) (pow (/ 1 x) -1/3)) (* 1/9 (pow (/ 1 (pow x 5)) 1/3))) |
7 alts after pruning (4 fresh and 3 done)
Merged error: 0b
0% (0.1b remaining)
Error of 0.1b against oracle of 0.0b and baseline of 0.1b
| 539.0ms | 1822× | body | 640 | valid |
| 368.0ms | 4293× | body | 80 | valid |
| 268.0ms | 1277× | body | 320 | valid |
| 79.0ms | 612× | body | 160 | valid |