


Bits error versus x



Bits error versus y



Bits error versus z
Initial program 1.7
Taylor expanded around 0 3.0
Simplified1.7
Final simplification1.7
herbie shell --seed 2019010 +o rules:numerics
(FPCore (x y z)
:name "fabs fraction 1"
(fabs (- (/ (+ x 4) y) (* (/ x y) z))))
Time bar (total: 9.5s)Debug log
| 48.0ms | (fabs (- (/ (+ x 4) y) (* (/ x y) z))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 1.0b
Found 3 expressions with local error:
| 1.7b | (* (/ x y) z) |
| 0.0b | (/ (+ x 4) y) |
| 0.0b | (- (/ (+ x 4) y) (* (/ x y) z)) |
| 7× | add-cube-cbrt |
| 7× | *-un-lft-identity |
| 7× | add-sqr-sqrt |
| 5× | add-log-exp |
| 4× | div-inv |
| 4× | prod-diff |
| 4× | associate-*l* |
| 4× | fma-neg |
| 3× | associate-/l* |
| 3× | log1p-expm1-u |
| 3× | add-exp-log |
| 3× | associate-*l/ |
| 3× | add-cbrt-cube |
| 3× | pow1 |
| 3× | expm1-log1p-u |
| 2× | associate-/l/ |
| 1× | sub-div |
| 1× | flip-- |
| 1× | flip-+ |
| 1× | frac-sub |
| 1× | *-commutative |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | flip3-+ |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 7.0ms | (- (/ (+ x 4) y) (* (/ x y) z)) |
| 3.0ms | (* (/ x y) z) |
| 3.0ms | (/ (+ x 4) y) |
| 45.0ms | (- (/ (+ x 4) y) (* (/ x y) z)) |
| 20.0ms | (/ (+ x 4) y) |
| 15.0ms | (* (/ x y) z) |
| 225.0ms | (fma (+ x 4) (/ 1 y) (- (* z (/ x y)))) |
| 156.0ms | (- (* (+ x 4) y) (* y (* x z))) |
| 122.0ms | (- (+ (/ x y) (* 4 (/ 1 y))) (/ (* x z) y)) |
| 107.0ms | (- (+ (/ x y) (* 4 (/ 1 y))) (/ (* x z) y)) |
| 66.0ms | (- (+ (/ x y) (* 4 (/ 1 y))) (/ (* x z) y)) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0b
Found 2 expressions with local error:
| 1.0b | (fma z (- (/ x y)) (+ (/ x y) (/ 4 y))) |
| 0.0b | (+ (/ x y) (/ 4 y)) |
| 5× | *-un-lft-identity |
| 4× | add-log-exp |
| 4× | fma-def |
| 3× | div-inv |
| 3× | add-cube-cbrt |
| 3× | add-sqr-sqrt |
| 2× | log1p-expm1-u |
| 2× | add-exp-log |
| 2× | add-cbrt-cube |
| 2× | pow1 |
| 2× | expm1-log1p-u |
| 1× | distribute-lft-out |
| 1× | fma-udef |
| 1× | flip-+ |
| 1× | frac-add |
| 1× | distribute-rgt-out |
| 1× | flip3-+ |
| 1× | sum-log |
| 1× | +-commutative |
| 8.0ms | (+ (/ x y) (/ 4 y)) |
| 0.0ms | (fma z (- (/ x y)) (+ (/ x y) (/ 4 y))) |
| 44.0ms | (fma z (- (/ x y)) (+ (/ x y) (/ 4 y))) |
| 18.0ms | (+ (/ x y) (/ 4 y)) |
| 123.0ms | (- (+ (/ x y) (* 4 (/ 1 y))) (/ (* x z) y)) |
| 90.0ms | (- (+ (/ x y) (* 4 (/ 1 y))) (/ (* x z) y)) |
| 83.0ms | (- (+ (/ x y) (* 4 (/ 1 y))) (/ (* x z) y)) |
| 31.0ms | (+ (/ x y) (* 4 (/ 1 y))) |
| 19.0ms | (+ (/ x y) (* 4 (/ 1 y))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 8.3b | (cbrt (/ x y)) |
| 8.3b | (cbrt (/ x y)) |
| 8.3b | (cbrt (/ x y)) |
| 0.7b | (* (* (cbrt (/ x y)) (cbrt (/ x y))) (* (cbrt (/ x y)) z)) |
| 15× | cbrt-div |
| 12× | cbrt-prod |
| 9× | add-exp-log |
| 9× | associate-*l/ |
| 9× | pow1 |
| 7× | add-cube-cbrt |
| 7× | add-cbrt-cube |
| 7× | *-un-lft-identity |
| 7× | add-sqr-sqrt |
| 5× | frac-times |
| 4× | add-log-exp |
| 4× | log1p-expm1-u |
| 4× | expm1-log1p-u |
| 3× | div-inv |
| 3× | cbrt-unprod |
| 3× | associate-*r/ |
| 3× | prod-exp |
| 3× | pow-prod-down |
| 3× | pow1/3 |
| 1× | *-commutative |
| 1× | associate-*l* |
| 1× | associate-*r* |
| 26.0ms | (* (* (cbrt (/ x y)) (cbrt (/ x y))) (* (cbrt (/ x y)) z)) |
| 1.0ms | (cbrt (/ x y)) |
| 1.0ms | (cbrt (/ x y)) |
| 1.0ms | (cbrt (/ x y)) |
| 80.0ms | (cbrt (/ x y)) |
| 72.0ms | (cbrt (/ x y)) |
| 64.0ms | (cbrt (/ x y)) |
| 15.0ms | (* (* (cbrt (/ x y)) (cbrt (/ x y))) (* (cbrt (/ x y)) z)) |
| 571.0ms | (exp (* 1/3 (- (log (/ 1 y)) (log (/ 1 x))))) |
| 428.0ms | (* (* (/ x y) (/ x y)) (* (* (* (cbrt (/ x y)) z) (* (cbrt (/ x y)) z)) (* (cbrt (/ x y)) z))) |
| 336.0ms | (* (* (* (* (cbrt (/ x y)) (cbrt (/ x y))) (* (cbrt (/ x y)) (cbrt (/ x y)))) (* (cbrt (/ x y)) (cbrt (/ x y)))) (* (* (* (cbrt (/ x y)) z) (* (cbrt (/ x y)) z)) (* (cbrt (/ x y)) z))) |
| 208.0ms | (exp (* 1/3 (- (log (/ 1 y)) (log (/ 1 x))))) |
| 207.0ms | (exp (* 1/3 (- (log (/ -1 y)) (log (/ -1 x))))) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0b
Found 1 expressions with local error:
| 1.5b | (/ (- (+ x 4) (* x z)) y) |
| 3× | associate-/l* |
| 2× | associate-/l/ |
| 2× | add-cube-cbrt |
| 2× | *-un-lft-identity |
| 2× | add-sqr-sqrt |
| 1× | add-log-exp |
| 1× | flip-- |
| 1× | div-inv |
| 1× | log1p-expm1-u |
| 1× | add-exp-log |
| 1× | div-sub |
| 1× | add-cbrt-cube |
| 1× | flip3-- |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | pow1 |
| 1× | expm1-log1p-u |
| 8.0ms | (/ (- (+ x 4) (* x z)) y) |
| 27.0ms | (/ (- (+ x 4) (* x z)) y) |
| 169.0ms | (- (pow (+ x 4) 3) (pow (* x z) 3)) |
| 159.0ms | (- (* (+ x 4) (+ x 4)) (* (* x z) (* x z))) |
| 84.0ms | (- (+ (/ x y) (* 4 (/ 1 y))) (/ (* x z) y)) |
| 83.0ms | (- (+ (/ x y) (* 4 (/ 1 y))) (/ (* x z) y)) |
| 79.0ms | (- (+ (/ x y) (* 4 (/ 1 y))) (/ (* x z) y)) |
4 alts after pruning (1 fresh and 3 done)
Merged error: 0b
0% (1.6b remaining)
Error of 1.7b against oracle of 0.0b and baseline of 1.7b