


Bits error versus x



Bits error versus y



Bits error versus z
Results
Initial program 1.7
Taylor expanded around inf 1.7
Simplified1.7
Final simplification1.7
herbie shell --seed 2019010
(FPCore (x y z)
:name "fabs fraction 1"
(fabs (- (/ (+ x 4) y) (* (/ x y) z))))
Time bar (total: 9.4s)Debug log
| 30.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)) |
| 5× | add-log-exp |
| 5× | add-cube-cbrt |
| 5× | *-un-lft-identity |
| 5× | add-sqr-sqrt |
| 4× | associate-*l* |
| 3× | associate-/l* |
| 3× | add-exp-log |
| 3× | associate-*l/ |
| 3× | add-cbrt-cube |
| 3× | pow1 |
| 2× | associate-/l/ |
| 2× | div-inv |
| 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 |
| 11.0ms | (- (/ (+ x 4) y) (* (/ x y) z)) |
| 4.0ms | (/ (+ x 4) y) |
| 3.0ms | (* (/ x y) z) |
| 44.0ms | (- (/ (+ x 4) y) (* (/ x y) z)) |
| 19.0ms | (* (/ x y) z) |
| 14.0ms | (/ (+ x 4) y) |
| 86.0ms | (- (* (+ x 4) y) (* y (* x z))) |
| 70.0ms | (- (+ (/ x y) (* 4 (/ 1 y))) (/ (* x z) y)) |
| 56.0ms | (/ (exp (/ (+ x 4) y)) (exp (* (/ x y) z))) |
| 50.0ms | (- (+ (/ x y) (* 4 (/ 1 y))) (/ (* x z) y)) |
| 47.0ms | (- (+ (/ x y) (* 4 (/ 1 y))) (/ (* x z) y)) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 1.7b | (* (/ x y) z) |
| 0.0b | (- (+ (/ x y) (/ 4 y)) (* (/ x y) z)) |
| 0.0b | (+ (/ x y) (/ 4 y)) |
| 10× | add-log-exp |
| 6× | *-un-lft-identity |
| 4× | add-cube-cbrt |
| 4× | associate-*l/ |
| 4× | associate-*l* |
| 4× | add-sqr-sqrt |
| 3× | div-inv |
| 3× | frac-sub |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 3× | pow1 |
| 2× | flip-+ |
| 2× | frac-add |
| 2× | diff-log |
| 2× | flip3-+ |
| 2× | sum-log |
| 1× | distribute-lft-out |
| 1× | flip-- |
| 1× | *-commutative |
| 1× | associate--l+ |
| 1× | flip3-- |
| 1× | distribute-rgt-out |
| 1× | sub-neg |
| 1× | +-commutative |
| 35.0ms | (- (+ (/ x y) (/ 4 y)) (* (/ x y) z)) |
| 4.0ms | (* (/ x y) z) |
| 3.0ms | (+ (/ x y) (/ 4 y)) |
| 38.0ms | (- (+ (/ x y) (/ 4 y)) (* (/ x y) z)) |
| 24.0ms | (+ (/ x y) (/ 4 y)) |
| 17.0ms | (* (/ x y) z) |
| 353.0ms | (- (* (+ (pow (/ x y) 3) (pow (/ 4 y) 3)) y) (* (+ (* (/ x y) (/ x y)) (- (* (/ 4 y) (/ 4 y)) (* (/ x y) (/ 4 y)))) (* x z))) |
| 234.0ms | (- (* (+ (* x y) (* y 4)) y) (* (* y y) (* x z))) |
| 209.0ms | (- (* (- (* (/ x y) (/ x y)) (* (/ 4 y) (/ 4 y))) y) (* (- (/ x y) (/ 4 y)) (* x z))) |
| 199.0ms | (* (+ (* (/ x y) (/ x y)) (- (* (/ 4 y) (/ 4 y)) (* (/ x y) (/ 4 y)))) y) |
| 100.0ms | (/ (exp (+ (/ x y) (/ 4 y))) (exp (* (/ x y) z))) |
5 alts after pruning (4 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 |
| 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* |
| 27.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)) |
| 81.0ms | (cbrt (/ x y)) |
| 70.0ms | (cbrt (/ x y)) |
| 65.0ms | (cbrt (/ x y)) |
| 24.0ms | (* (* (cbrt (/ x y)) (cbrt (/ x y))) (* (cbrt (/ x y)) z)) |
| 370.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))) |
| 363.0ms | (* (* (/ x y) (/ x y)) (* (* (* (cbrt (/ x y)) z) (* (cbrt (/ x y)) z)) (* (cbrt (/ x y)) z))) |
| 182.0ms | (exp (* 1/3 (- (log (/ 1 y)) (log (/ 1 x))))) |
| 151.0ms | (exp (* 1/3 (- (log (/ 1 y)) (log (/ 1 x))))) |
| 146.0ms | (exp (* 1/3 (- (log (/ 1 y)) (log (/ 1 x))))) |
5 alts after pruning (3 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× | add-exp-log |
| 1× | div-sub |
| 1× | add-cbrt-cube |
| 1× | flip3-- |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | pow1 |
| 12.0ms | (/ (- (+ x 4) (* x z)) y) |
| 32.0ms | (/ (- (+ x 4) (* x z)) y) |
| 164.0ms | (- (pow (+ x 4) 3) (pow (* x z) 3)) |
| 95.0ms | (- (* (+ x 4) (+ x 4)) (* (* x z) (* x z))) |
| 78.0ms | (- (+ (/ x y) (* 4 (/ 1 y))) (/ (* x z) y)) |
| 54.0ms | (- (+ (/ x y) (* 4 (/ 1 y))) (/ (* x z) y)) |
| 43.0ms | (- (+ (/ x y) (* 4 (/ 1 y))) (/ (* x z) y)) |
5 alts after pruning (2 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