


Bits error versus x
Initial program 14.3
rmApplied frac-sub13.6
Simplified0.4
Simplified0.4
Final simplification0.4
herbie shell --seed 2019022 +o rules:numerics
(FPCore (x)
:name "2frac (problem 3.3.1)"
(- (/ 1 (+ x 1)) (/ 1 x)))
Time bar (total: 9.5s)Debug log
| 10.0ms | 56× | body | 640 | valid |
| 8.0ms | 135× | body | 80 | valid |
| 6.0ms | 45× | body | 320 | valid |
| 2.0ms | 21× | body | 160 | valid |
| 17.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)) |
| 24× | prod-diff |
| 18× | *-un-lft-identity |
| 16× | div-inv |
| 16× | add-sqr-sqrt |
| 14× | add-cube-cbrt |
| 12× | associate-/r/ |
| 6× | flip-+ |
| 6× | fma-neg |
| 6× | flip3-+ |
| 4× | add-log-exp |
| 4× | distribute-lft-out-- |
| 3× | add-exp-log |
| 3× | associate-/r* |
| 3× | pow1 |
| 2× | log1p-expm1-u |
| 2× | add-cbrt-cube |
| 2× | expm1-log1p-u |
| 1× | difference-of-squares |
| 1× | inv-pow |
| 1× | flip-- |
| 1× | pow-flip |
| 1× | frac-sub |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 1× | rec-exp |
| 6.0ms | (- (/ 1 (+ x 1)) (/ 1 x)) |
| 1.0ms | (/ 1 (+ x 1)) |
| 16.0ms | (- (/ 1 (+ x 1)) (/ 1 x)) |
| 6.0ms | (/ 1 (+ x 1)) |
| 430.0ms | (fma (/ 1 (+ (pow x 3) (pow 1 3))) (+ (* x x) (- (* 1 1) (* x 1))) (- (* (sqrt (/ 1 x)) (sqrt (/ 1 x))))) |
| 425.0ms | (fma (/ 1 (+ (pow x 3) (pow 1 3))) (+ (* x x) (- (* 1 1) (* x 1))) (- (* (/ 1 x) 1))) |
| 365.0ms | (fma (/ 1 (+ (pow x 3) (pow 1 3))) (+ (* x x) (- (* 1 1) (* x 1))) (- (* (/ 1 x) 1))) |
| 203.0ms | (fma (/ 1 (- (* x x) (* 1 1))) (- x 1) (- (* (/ 1 x) 1))) |
| 191.0ms | (fma (/ 1 (- (* x x) (* 1 1))) (- x 1) (- (* (cbrt (/ 1 x)) (* (cbrt (/ 1 x)) (cbrt (/ 1 x)))))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.1b
Found 1 expressions with local error:
| 0.1b | (/ -1 (fma x x x)) |
| 3× | associate-/r* |
| 2× | add-cube-cbrt |
| 2× | *-un-lft-identity |
| 2× | add-sqr-sqrt |
| 1× | add-log-exp |
| 1× | div-inv |
| 1× | log1p-expm1-u |
| 1× | add-exp-log |
| 1× | add-cbrt-cube |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | pow1 |
| 1× | expm1-log1p-u |
| 1.0ms | (/ -1 (fma x x x)) |
| 19.0ms | (/ -1 (fma x x x)) |
| 51.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 51.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 34.0ms | (- 1 (+ x (/ 1 x))) |
| 2.0ms | (cbrt (fma x x x)) |
| 1.0ms | (sqrt (fma x x x)) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 14.5b | (cbrt (fma x x x)) |
| 14.5b | (cbrt (fma x x x)) |
| 14.5b | (cbrt (fma x x x)) |
| 0.6b | (/ -1 (* (cbrt (fma x x x)) (cbrt (fma x x x)))) |
| 9× | cbrt-prod |
| 7× | add-cube-cbrt |
| 7× | *-un-lft-identity |
| 7× | add-sqr-sqrt |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 3× | pow1/3 |
| 1× | div-inv |
| 1× | frac-2neg |
| 1× | associate-/r* |
| 1× | clear-num |
| 3.0ms | (/ -1 (* (cbrt (fma x x x)) (cbrt (fma x x x)))) |
| 1.0ms | (cbrt (fma x x x)) |
| 1.0ms | (cbrt (fma x x x)) |
| 1.0ms | (cbrt (fma x x x)) |
| 65.0ms | (cbrt (fma x x x)) |
| 55.0ms | (cbrt (fma x x x)) |
| 53.0ms | (cbrt (fma x x x)) |
| 48.0ms | (/ -1 (* (cbrt (fma x x x)) (cbrt (fma x x x)))) |
| 77.0ms | (- (+ (* 1/3 (pow (/ 1 x) 1/3)) (pow (/ 1 x) -2/3)) (* 1/9 (pow (/ 1 (pow x 4)) 1/3))) |
| 73.0ms | (- (* 2/3 (pow (/ 1 (pow x 7)) 1/3)) (+ (* 5/9 (pow (/ 1 (pow x 10)) 1/3)) (pow (/ 1 (pow x 4)) 1/3))) |
| 71.0ms | (- (* 2/3 (pow (/ 1 (pow x 7)) 1/3)) (+ (* 5/9 (pow (/ 1 (pow x 10)) 1/3)) (pow (/ 1 (pow x 4)) 1/3))) |
| 67.0ms | (- (* 2/3 (pow x 1/3)) (+ (pow (/ 1 (pow x 2)) 1/3) (* 5/9 (pow (pow x 4) 1/3)))) |
| 66.0ms | (- (+ (* 1/3 (pow (/ 1 x) 1/3)) (pow (/ 1 x) -2/3)) (* 1/9 (pow (/ 1 (pow x 4)) 1/3))) |
6 alts after pruning (3 fresh and 3 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 14.5b | (cbrt (fma x x x)) |
| 14.5b | (cbrt (fma x x x)) |
| 14.5b | (cbrt (fma x x x)) |
| 14.5b | (cbrt (fma x x x)) |
| 12× | cbrt-prod |
| 8× | add-cube-cbrt |
| 8× | *-un-lft-identity |
| 8× | add-sqr-sqrt |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | add-exp-log |
| 4× | pow1/3 |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 1.0ms | (cbrt (fma x x x)) |
| 1.0ms | (cbrt (fma x x x)) |
| 1.0ms | (cbrt (fma x x x)) |
| 1.0ms | (cbrt (fma x x x)) |
| 58.0ms | (cbrt (fma x x x)) |
| 54.0ms | (cbrt (fma x x x)) |
| 54.0ms | (cbrt (fma x x x)) |
| 36.0ms | (cbrt (fma x x x)) |
| 79.0ms | (- (+ (* 1/3 (pow (/ 1 x) 1/3)) (pow (/ -1 x) -2/3)) (* 1/9 (pow (/ 1 (pow x 4)) 1/3))) |
| 79.0ms | (- (+ (* 1/3 (pow (/ 1 x) 1/3)) (pow (/ -1 x) -2/3)) (* 1/9 (pow (/ 1 (pow x 4)) 1/3))) |
| 76.0ms | (- (+ (* 1/3 (pow (/ 1 x) 1/3)) (pow (/ 1 x) -2/3)) (* 1/9 (pow (/ 1 (pow x 4)) 1/3))) |
| 71.0ms | (- (+ (* 1/3 (pow (pow x 4) 1/3)) (pow x 1/3)) (* 1/9 (pow (pow x 7) 1/3))) |
| 69.0ms | (- (+ (* 1/3 (pow (/ 1 x) 1/3)) (pow (/ 1 x) -2/3)) (* 1/9 (pow (/ 1 (pow x 4)) 1/3))) |
6 alts after pruning (2 fresh and 4 done)
Merged error: 0.1b
0% (0.1b remaining)
Error of 0.4b against oracle of 0.3b and baseline of 0.4b
| 946.0ms | 1845× | body | 640 | valid |
| 374.0ms | 4232× | body | 80 | valid |
| 333.0ms | 1284× | body | 320 | valid |
| 123.0ms | 641× | body | 160 | valid |