


Bits error versus x
Results
Initial program 14.2
rmApplied frac-sub13.5
Simplified0.3
rmApplied associate-/r*0.1
Final simplification0.1
herbie shell --seed 2019018
(FPCore (x)
:name "2frac (problem 3.3.1)"
(- (/ 1 (+ x 1)) (/ 1 x)))
Time bar (total: 7.5s)Debug log
| 12.0ms | 65× | body | 640 | valid |
| 6.0ms | 127× | body | 80 | valid |
| 6.0ms | 41× | body | 320 | valid |
| 2.0ms | 23× | body | 160 | valid |
| 5.0ms | (- (/ 1 (+ x 1)) (/ 1 x)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 18.1b
Found 1 expressions with local error:
| 3.9b | (- (/ 1 (+ x 1)) (/ 1 x)) |
| 5× | *-un-lft-identity |
| 4× | distribute-lft-out-- |
| 4× | div-inv |
| 3× | add-log-exp |
| 3× | add-sqr-sqrt |
| 1× | difference-of-squares |
| 1× | flip-- |
| 1× | add-cube-cbrt |
| 1× | frac-sub |
| 1× | add-exp-log |
| 1× | diff-log |
| 1× | add-cbrt-cube |
| 1× | flip3-- |
| 1× | sub-neg |
| 1× | pow1 |
| 5.0ms | (- (/ 1 (+ x 1)) (/ 1 x)) |
| 11.0ms | (- (/ 1 (+ x 1)) (/ 1 x)) |
| 56.0ms | (- (* 1 x) (* (+ x 1) 1)) |
| 39.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 37.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 33.0ms | (- 1 (+ x (/ 1 x))) |
| 29.0ms | (/ (exp (/ 1 (+ x 1))) (exp (/ 1 x))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.2b
Found 1 expressions with local error:
| 0.2b | (/ -1 (* (+ x 1) x)) |
| 2× | associate-/r/ |
| 2× | associate-*l/ |
| 1× | add-log-exp |
| 1× | div-inv |
| 1× | flip-+ |
| 1× | add-cube-cbrt |
| 1× | add-exp-log |
| 1× | add-cbrt-cube |
| 1× | flip3-+ |
| 1× | *-un-lft-identity |
| 1× | frac-2neg |
| 1× | associate-/r* |
| 1× | clear-num |
| 1× | pow1 |
| 1× | add-sqr-sqrt |
| 2.0ms | (/ -1 (* (+ x 1) x)) |
| 17.0ms | (/ -1 (* (+ x 1) x)) |
| 55.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 39.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 30.0ms | (+ (* x x) (- (* 1 1) (* x 1))) |
| 25.0ms | (- 1 (+ x (/ 1 x))) |
| 2.0ms | (- x 1) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0.0b
Found 1 expressions with local error:
| 0.1b | (/ (/ -1 (+ x 1)) x) |
| 6× | associate-/l* |
| 2× | div-inv |
| 2× | add-cube-cbrt |
| 2× | associate-/r/ |
| 2× | *-un-lft-identity |
| 2× | add-sqr-sqrt |
| 1× | associate-/l/ |
| 1× | add-log-exp |
| 1× | flip-+ |
| 1× | add-exp-log |
| 1× | add-cbrt-cube |
| 1× | flip3-+ |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | pow1 |
| 5.0ms | (/ (/ -1 (+ x 1)) x) |
| 14.0ms | (/ (/ -1 (+ x 1)) x) |
| 71.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 60.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 53.0ms | (- 1 (+ x (/ 1 x))) |
| 44.0ms | (/ -1 (- (* x x) (* 1 1))) |
| 5.0ms | (* (cbrt (/ -1 (+ x 1))) (cbrt (/ -1 (+ x 1)))) |
5 alts after pruning (2 fresh and 3 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.3b | (cbrt (/ -1 (+ x 1))) |
| 0.3b | (cbrt (/ -1 (+ x 1))) |
| 0.3b | (cbrt (/ -1 (+ x 1))) |
| 0.3b | (* (cbrt (/ -1 (+ x 1))) (cbrt (/ -1 (+ x 1)))) |
| 30× | cbrt-prod |
| 11× | add-cube-cbrt |
| 11× | *-un-lft-identity |
| 11× | add-sqr-sqrt |
| 10× | associate-/r/ |
| 9× | associate-*l* |
| 9× | associate-*r* |
| 9× | pow1 |
| 7× | pow1/3 |
| 7× | cbrt-div |
| 6× | add-exp-log |
| 5× | div-inv |
| 5× | flip-+ |
| 5× | flip3-+ |
| 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 |
| 10.0ms | (* (cbrt (/ -1 (+ x 1))) (cbrt (/ -1 (+ x 1)))) |
| 1.0ms | (cbrt (/ -1 (+ x 1))) |
| 1.0ms | (cbrt (/ -1 (+ x 1))) |
| 1.0ms | (cbrt (/ -1 (+ x 1))) |
| 85.0ms | (cbrt (/ -1 (+ x 1))) |
| 81.0ms | (cbrt (/ -1 (+ x 1))) |
| 68.0ms | (cbrt (/ -1 (+ x 1))) |
| 67.0ms | (* (cbrt (/ -1 (+ x 1))) (cbrt (/ -1 (+ x 1)))) |
| 404.0ms | (- (+ (* 2/9 (* (pow x 2) (cbrt -1))) (cbrt -1)) (* 1/3 (* x (cbrt -1)))) |
| 365.0ms | (- (+ (* 2/9 (* (pow x 2) (cbrt -1))) (cbrt -1)) (* 1/3 (* x (cbrt -1)))) |
| 327.0ms | (- (+ (* 2/9 (* (pow x 2) (cbrt -1))) (cbrt -1)) (* 1/3 (* x (cbrt -1)))) |
| 300.0ms | (- (+ (* (pow (/ 1 (pow x 2)) 1/3) (pow (cbrt -1) 2)) (* 5/9 (* (pow (/ 1 (pow x 8)) 1/3) (pow (cbrt -1) 2)))) (* 2/3 (* (pow (/ 1 (pow x 5)) 1/3) (pow (cbrt -1) 2)))) |
| 293.0ms | (- (+ (* (pow (/ 1 (pow x 2)) 1/3) (pow (cbrt -1) 2)) (* 5/9 (* (pow (/ 1 (pow x 8)) 1/3) (pow (cbrt -1) 2)))) (* 2/3 (* (pow (/ 1 (pow x 5)) 1/3) (pow (cbrt -1) 2)))) |
6 alts after pruning (2 fresh and 4 done)
Merged error: 0b
0% (0.1b remaining)
Error of 0.1b against oracle of 0.0b and baseline of 0.1b
| 950.0ms | 1866× | body | 640 | valid |
| 320.0ms | 4259× | body | 80 | valid |
| 276.0ms | 1239× | body | 320 | valid |
| 84.0ms | 640× | body | 160 | valid |