


Bits error versus x
Results
Initial program 14.3
rmApplied frac-sub13.6
Simplified0.4
rmApplied associate-/r*0.1
Final simplification0.1
herbie shell --seed 2019022
(FPCore (x)
:name "2frac (problem 3.3.1)"
(- (/ 1 (+ x 1)) (/ 1 x)))
Time bar (total: 8.1s)Debug log
| 10.0ms | 56× | body | 640 | valid |
| 7.0ms | 135× | body | 80 | valid |
| 6.0ms | 45× | body | 320 | valid |
| 2.0ms | 21× | body | 160 | valid |
| 5.0ms | (- (/ 1 (+ x 1)) (/ 1 x)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 15.1b
Found 2 expressions with local error:
| 4.1b | (- (/ 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 |
| 12.0ms | (- (/ 1 (+ x 1)) (/ 1 x)) |
| 2.0ms | (/ 1 (+ x 1)) |
| 22.0ms | (/ 1 (+ x 1)) |
| 18.0ms | (- (/ 1 (+ x 1)) (/ 1 x)) |
| 49.0ms | (- (+ (/ 1 (pow x 3)) (/ 1 x)) (/ 1 (pow x 2))) |
| 45.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 44.0ms | (- (* 1 x) (* (+ x 1) 1)) |
| 43.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 42.0ms | (- (+ (/ 1 (pow x 3)) (/ 1 x)) (/ 1 (pow x 2))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.1b
Found 2 expressions with local error:
| 0.1b | (/ -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 |
| 5.0ms | (* (+ x 1) x) |
| 2.0ms | (/ -1 (* (+ x 1) x)) |
| 19.0ms | (* (+ x 1) x) |
| 14.0ms | (/ -1 (* (+ x 1) x)) |
| 81.0ms | (* (- (* x x) (* 1 1)) x) |
| 68.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 36.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 34.0ms | (+ (* x x) (- (* 1 1) (* x 1))) |
| 24.0ms | (- 1 (+ x (/ 1 x))) |
3 alts after pruning (2 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/ |
| 3.0ms | (/ (/ -1 (+ x 1)) x) |
| 0.0ms | (/ -1 (+ x 1)) |
| 9.0ms | (/ (/ -1 (+ x 1)) x) |
| 7.0ms | (/ -1 (+ x 1)) |
| 53.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 53.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 46.0ms | (- 1 (+ x (/ 1 x))) |
| 41.0ms | (- (/ 1 (pow x 2)) (+ (/ 1 (pow x 3)) (/ 1 x))) |
| 41.0ms | (+ (* x x) (- (* 1 1) (* x 1))) |
5 alts after pruning (3 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 14.4b | (cbrt (/ (/ -1 (+ x 1)) x)) |
| 14.4b | (cbrt (/ (/ -1 (+ x 1)) x)) |
| 14.4b | (cbrt (/ (/ -1 (+ x 1)) x)) |
| 0.5b | (* (cbrt (/ (/ -1 (+ x 1)) x)) (cbrt (/ (/ -1 (+ x 1)) x))) |
| 20× | cbrt-prod |
| 11× | add-cube-cbrt |
| 11× | *-un-lft-identity |
| 11× | add-sqr-sqrt |
| 9× | pow1 |
| 7× | associate-*l* |
| 7× | associate-*r* |
| 7× | pow1/3 |
| 7× | cbrt-div |
| 6× | add-exp-log |
| 5× | div-inv |
| 4× | add-log-exp |
| 4× | add-cbrt-cube |
| 2× | pow-prod-up |
| 2× | pow-prod-down |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | associate-*r/ |
| 1× | prod-exp |
| 1× | associate-*l/ |
| 1× | pow-plus |
| 1× | frac-times |
| 1× | pow2 |
| 5.0ms | (* (cbrt (/ (/ -1 (+ x 1)) x)) (cbrt (/ (/ -1 (+ x 1)) x))) |
| 1.0ms | (cbrt (/ (/ -1 (+ x 1)) x)) |
| 1.0ms | (cbrt (/ (/ -1 (+ x 1)) x)) |
| 1.0ms | (cbrt (/ (/ -1 (+ x 1)) x)) |
| 71.0ms | (cbrt (/ (/ -1 (+ x 1)) x)) |
| 70.0ms | (* (cbrt (/ (/ -1 (+ x 1)) x)) (cbrt (/ (/ -1 (+ x 1)) x))) |
| 51.0ms | (cbrt (/ (/ -1 (+ x 1)) x)) |
| 44.0ms | (cbrt (/ (/ -1 (+ x 1)) x)) |
| 282.0ms | (* (/ (/ -1 (+ x 1)) x) (/ (/ -1 (+ x 1)) x)) |
| 278.0ms | (- (+ (* 5/9 (* (pow (/ 1 (pow x 10)) 1/3) (pow (cbrt -1) 2))) (* (pow (/ 1 (pow x 4)) 1/3) (pow (cbrt -1) 2))) (* 2/3 (* (pow (/ 1 (pow x 7)) 1/3) (pow (cbrt -1) 2)))) |
| 257.0ms | (- (+ (exp (* 1/3 (+ (* 2 (log (/ -1 x))) (log -1)))) (* 2/9 (/ (exp (* 1/3 (+ (* 2 (log (/ -1 x))) (log -1)))) (pow x 2)))) (* 1/3 (/ (exp (* 1/3 (+ (* 2 (log (/ -1 x))) (log -1)))) x))) |
| 247.0ms | (- (+ (* 5/9 (* (pow (pow x 4) 1/3) (pow (cbrt -1) 2))) (* (pow (/ 1 (pow x 2)) 1/3) (pow (cbrt -1) 2))) (* 2/3 (* (pow x 1/3) (pow (cbrt -1) 2)))) |
| 242.0ms | (* (/ (/ -1 (+ x 1)) x) (/ (/ -1 (+ x 1)) x)) |
6 alts after pruning (3 fresh and 3 done)
Merged error: 0.0b
0% (0.1b remaining)
Error of 0.1b against oracle of 0.0b and baseline of 0.1b
| 648.0ms | 1845× | body | 640 | valid |
| 356.0ms | 1284× | body | 320 | valid |
| 337.0ms | 4232× | body | 80 | valid |
| 91.0ms | 641× | body | 160 | valid |