


Bits error versus x



Bits error versus y



Bits error versus z
Results
if x < -1.1906865176555539e+188Initial program 0.1
rmApplied *-un-lft-identity0.1
Applied associate-/l*0.3
if -1.1906865176555539e+188 < x < 1.6862382786712306e-82Initial program 2.2
rmApplied associate-*l/1.1
Applied sub-div1.1
if 1.6862382786712306e-82 < x Initial program 0.9
Taylor expanded around inf 5.7
Simplified0.6
rmApplied div-inv0.8
Final simplification0.9
herbie shell --seed 2019016
(FPCore (x y z)
:name "fabs fraction 1"
(fabs (- (/ (+ x 4) y) (* (/ x y) z))))
Time bar (total: 12.7s)Debug log
| 313× | (pre true 80) |
| 313× | (body real 80) |
| 49.0ms | (fabs (- (/ (+ x 4) y) (* (/ x y) z))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 1.7b
Found 3 expressions with local error:
| 3.4b | (* (/ x y) z) |
| 0.0b | (- (/ (+ x 4) y) (* (/ x y) z)) |
| 0.0b | (/ (+ x 4) y) |
| 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 |
| 12.0ms | (- (/ (+ x 4) y) (* (/ x y) z)) |
| 5.0ms | (/ (+ x 4) y) |
| 5.0ms | (* (/ x y) z) |
| 42.0ms | (- (/ (+ x 4) y) (* (/ x y) z)) |
| 25.0ms | (* (/ x y) z) |
| 15.0ms | (/ (+ x 4) y) |
| 133.0ms | (- (* (+ x 4) y) (* y (* x z))) |
| 81.0ms | (- (+ (/ x y) (* 4 (/ 1 y))) (/ (* x z) y)) |
| 76.0ms | (- (+ (/ x y) (* 4 (/ 1 y))) (/ (* x z) y)) |
| 64.0ms | (- (+ (/ x y) (* 4 (/ 1 y))) (/ (* x z) y)) |
| 30.0ms | (/ (exp (/ (+ x 4) y)) (exp (* (/ x y) z))) |
5 alts after pruning (5 fresh and 0 done)
Merged error: 0b
Found 4 expressions with local error:
| 3.4b | (* (/ x y) z) |
| 0.1b | (/ 1 (/ y (+ x 4))) |
| 0.0b | (- (/ 1 (/ y (+ x 4))) (* (/ x y) z)) |
| 0.0b | (/ y (+ x 4)) |
| 9× | associate-/r* |
| 7× | add-cube-cbrt |
| 7× | *-un-lft-identity |
| 7× | add-sqr-sqrt |
| 6× | add-log-exp |
| 5× | associate-/r/ |
| 5× | add-exp-log |
| 5× | pow1 |
| 4× | div-inv |
| 4× | associate-*l* |
| 4× | add-cbrt-cube |
| 2× | flip-+ |
| 2× | associate-*l/ |
| 2× | flip3-+ |
| 2× | frac-2neg |
| 2× | clear-num |
| 1× | inv-pow |
| 1× | flip-- |
| 1× | pow-flip |
| 1× | frac-sub |
| 1× | *-commutative |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | sub-neg |
| 1× | rec-exp |
| 9.0ms | (- (/ 1 (/ y (+ x 4))) (* (/ x y) z)) |
| 4.0ms | (* (/ x y) z) |
| 2.0ms | (/ 1 (/ y (+ x 4))) |
| 1.0ms | (/ y (+ x 4)) |
| 47.0ms | (- (/ 1 (/ y (+ x 4))) (* (/ x y) z)) |
| 24.0ms | (* (/ x y) z) |
| 22.0ms | (/ 1 (/ y (+ x 4))) |
| 19.0ms | (/ y (+ x 4)) |
| 523.0ms | (- (* 1 y) (* (/ y (+ x 4)) (* x z))) |
| 395.0ms | (/ (exp (/ 1 (/ y (+ x 4)))) (exp (* (/ x y) z))) |
| 263.0ms | (- (+ (/ y x) (* 16 (/ y (pow x 3)))) (* 4 (/ y (pow x 2)))) |
| 230.0ms | (- (+ (/ y x) (* 16 (/ y (pow x 3)))) (* 4 (/ y (pow x 2)))) |
| 205.0ms | (- (+ (* 1/64 (* (pow x 2) y)) (* 1/4 y)) (* 1/16 (* x y))) |
5 alts after pruning (4 fresh and 1 done)
Merged error: 0b
Found 3 expressions with local error:
| 5.5b | (/ x (/ y z)) |
| 0.0b | (- (+ (/ x y) (/ 4 y)) (/ x (/ y z))) |
| 0.0b | (+ (/ x y) (/ 4 y)) |
| 11× | *-un-lft-identity |
| 10× | add-log-exp |
| 6× | add-sqr-sqrt |
| 4× | div-inv |
| 4× | add-cube-cbrt |
| 4× | associate-/r* |
| 3× | frac-sub |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 3× | pow1 |
| 2× | distribute-lft-out-- |
| 2× | distribute-lft-out |
| 2× | flip-+ |
| 2× | frac-add |
| 2× | diff-log |
| 2× | flip3-+ |
| 2× | sum-log |
| 1× | difference-of-squares |
| 1× | flip-- |
| 1× | associate-/r/ |
| 1× | associate--l+ |
| 1× | flip3-- |
| 1× | distribute-rgt-out |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 1× | +-commutative |
| 39.0ms | (- (+ (/ x y) (/ 4 y)) (/ x (/ y z))) |
| 7.0ms | (+ (/ x y) (/ 4 y)) |
| 1.0ms | (/ x (/ y z)) |
| 45.0ms | (- (+ (/ x y) (/ 4 y)) (/ x (/ y z))) |
| 24.0ms | (/ x (/ y z)) |
| 23.0ms | (+ (/ x y) (/ 4 y)) |
| 259.0ms | (- (* (+ (* x y) (* y 4)) (/ y z)) (* (* y y) x)) |
| 221.0ms | (- (* (- (* (/ x y) (/ x y)) (* (/ 4 y) (/ 4 y))) (/ y z)) (* (- (/ x y) (/ 4 y)) x)) |
| 178.0ms | (- (* (+ (pow (/ x y) 3) (pow (/ 4 y) 3)) (/ y z)) (* (+ (* (/ x y) (/ x y)) (- (* (/ 4 y) (/ 4 y)) (* (/ x y) (/ 4 y)))) x)) |
| 102.0ms | (* (+ (* (/ x y) (/ x y)) (- (* (/ 4 y) (/ 4 y)) (* (/ x y) (/ 4 y)))) (/ y z)) |
| 97.0ms | (/ (exp (+ (/ x y) (/ 4 y))) (exp (/ x (/ y z)))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 5.8b | (* x (/ 1 (/ y z))) |
| 0.5b | (/ 1 (/ y z)) |
| 0.0b | (- (+ (/ x y) (/ 4 y)) (* x (/ 1 (/ y z)))) |
| 0.0b | (+ (/ x y) (/ 4 y)) |
| 11× | add-log-exp |
| 8× | *-un-lft-identity |
| 6× | add-cube-cbrt |
| 6× | frac-sub |
| 6× | add-sqr-sqrt |
| 5× | div-inv |
| 5× | add-exp-log |
| 5× | associate-*r* |
| 5× | pow1 |
| 4× | un-div-inv |
| 4× | associate-*r/ |
| 4× | add-cbrt-cube |
| 4× | associate-/r* |
| 3× | flip-+ |
| 3× | frac-add |
| 3× | flip3-+ |
| 2× | associate-/r/ |
| 2× | diff-log |
| 2× | sum-log |
| 1× | inv-pow |
| 1× | distribute-lft-out |
| 1× | flip-- |
| 1× | pow-flip |
| 1× | *-commutative |
| 1× | associate--l+ |
| 1× | flip3-- |
| 1× | distribute-rgt-out |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 1× | rec-exp |
| 1× | +-commutative |
| 22.0ms | (- (+ (/ x y) (/ 4 y)) (* x (/ 1 (/ y z)))) |
| 7.0ms | (+ (/ x y) (/ 4 y)) |
| 1.0ms | (* x (/ 1 (/ y z))) |
| 1.0ms | (/ 1 (/ y z)) |
| 34.0ms | (- (+ (/ x y) (/ 4 y)) (* x (/ 1 (/ y z)))) |
| 22.0ms | (* x (/ 1 (/ y z))) |
| 16.0ms | (+ (/ x y) (/ 4 y)) |
| 8.0ms | (/ 1 (/ y z)) |
| 305.0ms | (- (* (+ (* x y) (* y 4)) (/ y z)) (* (* y y) (* x 1))) |
| 283.0ms | (- (* (+ (pow (/ x y) 3) (pow (/ 4 y) 3)) (/ y z)) (* (+ (* (/ x y) (/ x y)) (- (* (/ 4 y) (/ 4 y)) (* (/ x y) (/ 4 y)))) x)) |
| 281.0ms | (- (* (+ (* x y) (* y 4)) (/ y z)) (* (* y y) x)) |
| 280.0ms | (- (* (- (* (/ x y) (/ x y)) (* (/ 4 y) (/ 4 y))) (/ y z)) (* (- (/ x y) (/ 4 y)) (* x 1))) |
| 251.0ms | (- (* (+ (pow (/ x y) 3) (pow (/ 4 y) 3)) (/ y z)) (* (+ (* (/ x y) (/ x y)) (- (* (/ 4 y) (/ 4 y)) (* (/ x y) (/ 4 y)))) (* x 1))) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0b
46.9% (0.9b remaining)
Error of 0.9b against oracle of 0.0b and baseline of 1.8b
| 10087× | (pre true 80) |
| 10087× | (body real 80) |