


Bits error versus x



Bits error versus y



Bits error versus z
Results
if x < -5.814787734796508e+16Initial program 0.1
Taylor expanded around 0 8.4
Simplified0.1
rmApplied div-inv0.2
if -5.814787734796508e+16 < x < 1.0751271218473741e-90Initial program 2.7
rmApplied associate-*l/0.1
Applied sub-div0.1
if 1.0751271218473741e-90 < x Initial program 0.6
Taylor expanded around 0 6.3
Simplified0.7
Final simplification0.3
herbie shell --seed 2019022
(FPCore (x y z)
:name "fabs fraction 1"
(fabs (- (/ (+ x 4) y) (* (/ x y) z))))
Time bar (total: 10.2s)Debug log
| 42.0ms | 328× | body | 80 | valid |
| 44.0ms | (fabs (- (/ (+ x 4) y) (* (/ x y) z))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 1.4b
Found 3 expressions with local error:
| 2.6b | (* (/ 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 |
| 11.0ms | (- (/ (+ x 4) y) (* (/ x y) z)) |
| 4.0ms | (/ (+ x 4) y) |
| 4.0ms | (* (/ x y) z) |
| 29.0ms | (- (/ (+ x 4) y) (* (/ x y) z)) |
| 22.0ms | (/ (+ x 4) y) |
| 18.0ms | (* (/ x y) z) |
| 95.0ms | (- (* (+ x 4) y) (* y (* x z))) |
| 78.0ms | (- (+ (/ x y) (* 4 (/ 1 y))) (/ (* x z) y)) |
| 78.0ms | (- (+ (/ x y) (* 4 (/ 1 y))) (/ (* x z) y)) |
| 78.0ms | (- (+ (/ x y) (* 4 (/ 1 y))) (/ (* x z) y)) |
| 60.0ms | (/ (exp (/ (+ x 4) y)) (exp (* (/ x y) z))) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0b
Found 3 expressions with local error:
| 7.6b | (/ 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 |
| 36.0ms | (- (+ (/ x y) (/ 4 y)) (/ x (/ y z))) |
| 6.0ms | (+ (/ x y) (/ 4 y)) |
| 1.0ms | (/ x (/ y z)) |
| 34.0ms | (- (+ (/ x y) (/ 4 y)) (/ x (/ y z))) |
| 23.0ms | (/ x (/ y z)) |
| 20.0ms | (+ (/ x y) (/ 4 y)) |
| 333.0ms | (- (* (+ (* x y) (* y 4)) (/ y z)) (* (* y y) x)) |
| 228.0ms | (- (* (+ (pow (/ x y) 3) (pow (/ 4 y) 3)) (/ y z)) (* (+ (* (/ x y) (/ x y)) (- (* (/ 4 y) (/ 4 y)) (* (/ x y) (/ 4 y)))) x)) |
| 195.0ms | (- (* (- (* (/ x y) (/ x y)) (* (/ 4 y) (/ 4 y))) (/ y z)) (* (- (/ x y) (/ 4 y)) x)) |
| 98.0ms | (/ (exp (+ (/ x y) (/ 4 y))) (exp (/ x (/ y z)))) |
| 95.0ms | (* (+ (* (/ x y) (/ x y)) (- (* (/ 4 y) (/ 4 y)) (* (/ x y) (/ 4 y)))) (/ y z)) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 7.2b | (* x (/ 1 (/ y z))) |
| 0.8b | (/ 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 |
| 29.0ms | (- (+ (/ x y) (/ 4 y)) (* x (/ 1 (/ y z)))) |
| 3.0ms | (+ (/ x y) (/ 4 y)) |
| 2.0ms | (* x (/ 1 (/ y z))) |
| 1.0ms | (/ 1 (/ y z)) |
| 42.0ms | (- (+ (/ x y) (/ 4 y)) (* x (/ 1 (/ y z)))) |
| 23.0ms | (+ (/ x y) (/ 4 y)) |
| 15.0ms | (* x (/ 1 (/ y z))) |
| 6.0ms | (/ 1 (/ y z)) |
| 323.0ms | (- (* (+ (* x y) (* y 4)) (/ y z)) (* (* y y) (* x 1))) |
| 293.0ms | (- (* (+ (* x y) (* y 4)) (/ y z)) (* (* y y) x)) |
| 250.0ms | (- (* (+ (pow (/ x y) 3) (pow (/ 4 y) 3)) (/ y z)) (* (+ (* (/ x y) (/ x y)) (- (* (/ 4 y) (/ 4 y)) (* (/ x y) (/ 4 y)))) x)) |
| 237.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))) |
| 195.0ms | (/ (exp (+ (/ x y) (/ 4 y))) (exp (* x (/ 1 (/ y z))))) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0b
Found 2 expressions with local error:
| 3.1b | (/ (- (+ x 4) (* x z)) y) |
| 0.0b | (- (+ x 4) (* x z)) |
| 4× | add-log-exp |
| 3× | associate-/l* |
| 3× | add-cube-cbrt |
| 3× | *-un-lft-identity |
| 3× | add-sqr-sqrt |
| 2× | associate-/l/ |
| 2× | flip-- |
| 2× | add-exp-log |
| 2× | add-cbrt-cube |
| 2× | flip3-- |
| 2× | pow1 |
| 1× | div-inv |
| 1× | associate--l+ |
| 1× | div-sub |
| 1× | diff-log |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 14.0ms | (/ (- (+ x 4) (* x z)) y) |
| 6.0ms | (- (+ x 4) (* x z)) |
| 42.0ms | (/ (- (+ x 4) (* x z)) y) |
| 23.0ms | (- (+ x 4) (* x z)) |
| 157.0ms | (- (pow (+ x 4) 3) (pow (* x z) 3)) |
| 139.0ms | (- (* (+ x 4) (+ x 4)) (* (* x z) (* x z))) |
| 56.0ms | (- (+ (/ x y) (* 4 (/ 1 y))) (/ (* x z) y)) |
| 52.0ms | (- (+ (/ x y) (* 4 (/ 1 y))) (/ (* x z) y)) |
| 42.0ms | (- (+ (/ x y) (* 4 (/ 1 y))) (/ (* x z) y)) |
4 alts after pruning (1 fresh and 3 done)
Merged error: 0b
91.3% (0.2b remaining)
Error of 0.3b against oracle of 0.0b and baseline of 2.8b
| 1.3s | 10104× | body | 80 | valid |