


Bits error versus x
Initial program 14.3
rmApplied frac-sub13.6
Simplified0.3
Simplified0.3
Final simplification0.3
herbie shell --seed 2019016 +o rules:numerics
(FPCore (x)
:name "2frac (problem 3.3.1)"
(- (/ 1 (+ x 1)) (/ 1 x)))
Time bar (total: 11.5s)Debug log
| 256× | (pre true 80) |
| 131× | (body real 80) |
| 57× | (body real 640) |
| 35× | (body real 160) |
| 33× | (body real 320) |
| 10.0ms | (- (/ 1 (+ x 1)) (/ 1 x)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 14.5b
Found 2 expressions with local error:
| 3.5b | (- (/ 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 |
| 24.0ms | (- (/ 1 (+ x 1)) (/ 1 x)) |
| 3.0ms | (/ 1 (+ x 1)) |
| 18.0ms | (- (/ 1 (+ x 1)) (/ 1 x)) |
| 10.0ms | (/ 1 (+ x 1)) |
| 489.0ms | (fma (/ 1 (+ (pow x 3) (pow 1 3))) (+ (* x x) (- (* 1 1) (* x 1))) (- (* (sqrt (/ 1 x)) (sqrt (/ 1 x))))) |
| 460.0ms | (fma (/ 1 (+ (pow x 3) (pow 1 3))) (+ (* x x) (- (* 1 1) (* x 1))) (- (* (/ 1 x) 1))) |
| 380.0ms | (fma (/ 1 (+ (pow x 3) (pow 1 3))) (+ (* x x) (- (* 1 1) (* x 1))) (- (* (/ 1 x) 1))) |
| 210.0ms | (fma (/ 1 (- (* x x) (* 1 1))) (- x 1) (- (* (/ 1 x) 1))) |
| 195.0ms | (fma (/ 1 (- (* x x) (* 1 1))) (- x 1) (- (* (sqrt (/ 1 x)) (sqrt (/ 1 x))))) |
3 alts after pruning (3 fresh and 0 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)) |
| 62.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)))) |
| 35.0ms | (- 1 (+ x (/ 1 x))) |
| 3.0ms | (cbrt (fma x x x)) |
| 3.0ms | (sqrt (fma x x x)) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 15.2b | (cbrt (fma x x x)) |
| 15.2b | (cbrt (fma x x x)) |
| 15.2b | (cbrt (fma x x x)) |
| 1.1b | (/ -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)) |
| 56.0ms | (/ -1 (* (cbrt (fma x x x)) (cbrt (fma x x x)))) |
| 53.0ms | (cbrt (fma x x x)) |
| 53.0ms | (cbrt (fma x x x)) |
| 36.0ms | (cbrt (fma x x x)) |
| 108.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))) |
| 80.0ms | (- (* 2/3 (pow x 1/3)) (+ (pow (/ 1 (pow x 2)) 1/3) (* 5/9 (pow (pow x 4) 1/3)))) |
| 72.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 (pow x 4) 1/3)) (pow x 1/3)) (* 1/9 (pow (pow x 7) 1/3))) |
5 alts after pruning (3 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 14.4b | (sqrt (fma x x x)) |
| 14.4b | (sqrt (fma x x x)) |
| 0.2b | (/ (/ -1 (sqrt (fma x x x))) (sqrt (fma x x x))) |
| 0.1b | (/ -1 (sqrt (fma x x x))) |
| 27× | add-sqr-sqrt |
| 25× | add-cube-cbrt |
| 25× | *-un-lft-identity |
| 24× | sqrt-prod |
| 24× | times-frac |
| 12× | associate-/r* |
| 9× | div-inv |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 4× | add-log-exp |
| 4× | associate-/l* |
| 4× | log1p-expm1-u |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 2× | pow1/2 |
| 2× | frac-2neg |
| 2× | clear-num |
| 2× | rem-sqrt-square |
| 1× | associate-/l/ |
| 1× | div-exp |
| 1× | cbrt-undiv |
| 9.0ms | (/ (/ -1 (sqrt (fma x x x))) (sqrt (fma x x x))) |
| 5.0ms | (sqrt (fma x x x)) |
| 2.0ms | (sqrt (fma x x x)) |
| 1.0ms | (/ -1 (sqrt (fma x x x))) |
| 24.0ms | (sqrt (fma x x x)) |
| 24.0ms | (/ -1 (sqrt (fma x x x))) |
| 15.0ms | (sqrt (fma x x x)) |
| 12.0ms | (/ (/ -1 (sqrt (fma x x x))) (sqrt (fma x x x))) |
| 432.0ms | (- (* 1/8 (/ 1 x)) (+ x 1/2)) |
| 299.0ms | (/ (* (* (/ -1 (sqrt (fma x x x))) (/ -1 (sqrt (fma x x x)))) (/ -1 (sqrt (fma x x x)))) (* (* (sqrt (fma x x x)) (sqrt (fma x x x))) (sqrt (fma x x x)))) |
| 230.0ms | (- (* 1/2 (/ 1 (pow x 2))) (+ (* 3/8 (/ 1 (pow x 3))) (/ 1 x))) |
| 218.0ms | (- (+ (* 3/8 (/ 1 (pow x 3))) (/ 1 x)) (* 1/2 (/ 1 (pow x 2)))) |
| 92.0ms | (- (+ x 1/2) (* 1/8 (/ 1 x))) |
5 alts after pruning (2 fresh and 3 done)
Merged error: 0.0b
0% (0.1b remaining)
Error of 0.3b against oracle of 0.2b and baseline of 0.3b
| 8004× | (pre true 80) |
| 4205× | (body real 80) |
| 1895× | (body real 640) |
| 1224× | (body real 320) |
| 680× | (body real 160) |