


Bits error versus x
Initial program 14.4
rmApplied frac-sub13.8
Simplified0.3
Simplified0.3
rmApplied add-sqr-sqrt16.4
Applied associate-/r*16.4
rmApplied *-un-lft-identity16.4
Applied sqrt-prod16.4
Applied div-inv16.4
Applied times-frac16.4
Simplified16.4
Simplified0.3
Final simplification0.3
herbie shell --seed 2019010 +o rules:numerics
(FPCore (x)
:name "2frac (problem 3.3.1)"
(- (/ 1 (+ x 1)) (/ 1 x)))
Time bar (total: 9.7s)Debug log
| 10.0ms | (- (/ 1 (+ x 1)) (/ 1 x)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 15.9b
Found 2 expressions with local error:
| 3.6b | (- (/ 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 |
| 12.0ms | (- (/ 1 (+ x 1)) (/ 1 x)) |
| 2.0ms | (/ 1 (+ x 1)) |
| 31.0ms | (- (/ 1 (+ x 1)) (/ 1 x)) |
| 11.0ms | (/ 1 (+ x 1)) |
| 506.0ms | (fma (/ 1 (+ (pow x 3) (pow 1 3))) (+ (* x x) (- (* 1 1) (* x 1))) (- (* (/ 1 x) 1))) |
| 475.0ms | (fma (/ 1 (+ (pow x 3) (pow 1 3))) (+ (* x x) (- (* 1 1) (* x 1))) (- (* (sqrt (/ 1 x)) (sqrt (/ 1 x))))) |
| 403.0ms | (fma (/ 1 (+ (pow x 3) (pow 1 3))) (+ (* x x) (- (* 1 1) (* x 1))) (- (* (/ 1 x) 1))) |
| 234.0ms | (fma (/ 1 (- (* x x) (* 1 1))) (- x 1) (- (* (cbrt (/ 1 x)) (* (cbrt (/ 1 x)) (cbrt (/ 1 x)))))) |
| 204.0ms | (fma (/ 1 (- (* x x) (* 1 1))) (- x 1) (- (* (sqrt (/ 1 x)) (sqrt (/ 1 x))))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.2b
Found 1 expressions with local error:
| 0.3b | (/ -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)) |
| 18.0ms | (/ -1 (fma x x x)) |
| 50.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 49.0ms | (- (/ 1 (pow x 3)) (+ (/ 1 (pow x 4)) (/ 1 (pow x 2)))) |
| 49.0ms | (- 1 (+ x (/ 1 x))) |
| 3.0ms | (sqrt (fma x x x)) |
| 3.0ms | (cbrt (fma x x x)) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0.2b
Found 4 expressions with local error:
| 12.6b | (sqrt (fma x x x)) |
| 12.6b | (sqrt (fma x x x)) |
| 0.1b | (/ (/ -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 |
| 5.0ms | (/ (/ -1 (sqrt (fma x x x))) (sqrt (fma x x x))) |
| 2.0ms | (sqrt (fma x x x)) |
| 2.0ms | (sqrt (fma x x x)) |
| 1.0ms | (/ -1 (sqrt (fma x x x))) |
| 35.0ms | (/ -1 (sqrt (fma x x x))) |
| 25.0ms | (/ (/ -1 (sqrt (fma x x x))) (sqrt (fma x x x))) |
| 20.0ms | (sqrt (fma x x x)) |
| 16.0ms | (sqrt (fma x x x)) |
| 271.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)))) |
| 189.0ms | (- (+ (* 3/8 (/ 1 (pow x 3))) (/ 1 x)) (* 1/2 (/ 1 (pow x 2)))) |
| 179.0ms | (- (* 1/2 (/ 1 (pow x 2))) (+ (* 3/8 (/ 1 (pow x 3))) (/ 1 x))) |
| 83.0ms | (- (+ x 1/2) (* 1/8 (/ 1 x))) |
| 82.0ms | (- (+ x 1/2) (* 1/8 (/ 1 x))) |
5 alts after pruning (4 fresh and 1 done)
Merged error: 0.2b
Found 1 expressions with local error:
| 0.3b | (/ 1 (fma x x x)) |
| 3× | associate-/r* |
| 2× | add-cube-cbrt |
| 2× | add-exp-log |
| 2× | *-un-lft-identity |
| 2× | pow1 |
| 2× | add-sqr-sqrt |
| 1× | add-log-exp |
| 1× | inv-pow |
| 1× | pow-flip |
| 1× | div-inv |
| 1× | log1p-expm1-u |
| 1× | add-cbrt-cube |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | rec-exp |
| 1× | expm1-log1p-u |
| 1.0ms | (/ 1 (fma x x x)) |
| 11.0ms | (/ 1 (fma x x x)) |
| 60.0ms | (- (+ (/ 1 (pow x 4)) (/ 1 (pow x 2))) (/ 1 (pow x 3))) |
| 47.0ms | (- (+ (/ 1 (pow x 4)) (/ 1 (pow x 2))) (/ 1 (pow x 3))) |
| 17.0ms | (- (+ x (/ 1 x)) 1) |
| 1.0ms | (cbrt (fma x x x)) |
| 1.0ms | (sqrt (fma x x x)) |
5 alts after pruning (3 fresh and 2 done)
Merged error: 0.2b
0% (0.1b remaining)
Error of 0.3b against oracle of 0.3b and baseline of 0.3b