



Bits error versus a




Bits error versus b




Bits error versus c




Bits error versus d




Bits error versus e
Results
| Original | 0.4 |
|---|---|
| Target | 0.2 |
| Herbie | 0.3 |
Initial program 0.4
rmApplied associate-+l+0.3
rmApplied add-log-exp0.3
Applied add-log-exp0.3
Applied sum-log0.3
Simplified0.3
rmApplied exp-sum0.3
Final simplification0.3
herbie shell --seed 2019010 +o rules:numerics
(FPCore (a b c d e)
:name "Expression 1, p15"
:pre (<= 1 a 2 b 4 c 8 d 16 e 32)
:herbie-target
(+ (+ d (+ c (+ a b))) e)
(+ (+ (+ (+ e d) c) b) a))
Time bar (total: 14.6s)Debug log
| 189.0ms | (+ (+ (+ (+ e d) c) b) a) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.4b
Found 3 expressions with local error:
| 0.3b | (+ (+ (+ e d) c) b) |
| 0.3b | (+ (+ (+ (+ e d) c) b) a) |
| 0.3b | (+ (+ e d) c) |
| 9× | fma-def |
| 6× | add-cube-cbrt |
| 6× | *-un-lft-identity |
| 6× | add-sqr-sqrt |
| 3× | add-log-exp |
| 3× | log1p-expm1-u |
| 3× | flip-+ |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 3× | flip3-+ |
| 3× | associate-+l+ |
| 3× | +-commutative |
| 3× | pow1 |
| 3× | expm1-log1p-u |
| 52.0ms | (+ (+ (+ (+ e d) c) b) a) |
| 12.0ms | (+ (+ (+ e d) c) b) |
| 2.0ms | (+ (+ e d) c) |
| 36.0ms | (+ (+ (+ (+ e d) c) b) a) |
| 22.0ms | (+ (+ (+ e d) c) b) |
| 11.0ms | (+ (+ e d) c) |
| 34.0ms | (* (cbrt (+ (+ (+ e d) c) b)) (cbrt (+ (+ (+ e d) c) b))) |
| 26.0ms | (sqrt (+ (+ (+ e d) c) b)) |
| 9.0ms | (* (cbrt (+ (+ e d) c)) (cbrt (+ (+ e d) c))) |
| 9.0ms | (+ e (+ c d)) |
| 7.0ms | (+ b (+ c d)) |
8 alts after pruning (8 fresh and 0 done)
Merged error: 0b
Found 2 expressions with local error:
| 0.3b | (+ (+ e d) (+ c b)) |
| 0.3b | (+ (+ (+ e d) (+ c b)) a) |
| 8× | *-un-lft-identity |
| 7× | fma-def |
| 6× | flip-+ |
| 6× | flip3-+ |
| 4× | add-log-exp |
| 4× | add-cube-cbrt |
| 4× | frac-add |
| 4× | add-sqr-sqrt |
| 2× | distribute-lft-out |
| 2× | log1p-expm1-u |
| 2× | add-exp-log |
| 2× | add-cbrt-cube |
| 2× | associate-+l+ |
| 2× | +-commutative |
| 2× | pow1 |
| 2× | expm1-log1p-u |
| 1× | sum-log |
| 1× | associate-+r+ |
| 31.0ms | (+ (+ (+ e d) (+ c b)) a) |
| 7.0ms | (+ (+ e d) (+ c b)) |
| 63.0ms | (+ (+ (+ e d) (+ c b)) a) |
| 33.0ms | (+ (+ e d) (+ c b)) |
| 541.0ms | (+ (* (+ (pow e 3) (pow d 3)) (- c b)) (* (+ (* e e) (- (* d d) (* e d))) (- (* c c) (* b b)))) |
| 487.0ms | (* (+ (* e e) (- (* d d) (* e d))) (+ (* c c) (- (* b b) (* c b)))) |
| 418.0ms | (+ (* (- (* e e) (* d d)) (- c b)) (* (- e d) (- (* c c) (* b b)))) |
| 226.0ms | (* (- e d) (+ (* c c) (- (* b b) (* c b)))) |
| 112.0ms | (+ (* (+ (pow e 3) (pow d 3)) (+ (* c c) (- (* b b) (* c b)))) (* (+ (* e e) (- (* d d) (* e d))) (+ (pow c 3) (pow b 3)))) |
7 alts after pruning (6 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 3.4b | (exp (+ (+ d b) (+ e c))) |
| 0.3b | (+ (log (exp (+ (+ d b) (+ e c)))) a) |
| 0.2b | (+ (+ d b) (+ e c)) |
| 0.0b | (log (exp (+ (+ d b) (+ e c)))) |
| 19× | *-un-lft-identity |
| 12× | exp-prod |
| 11× | add-cube-cbrt |
| 11× | fma-def |
| 11× | add-sqr-sqrt |
| 10× | log-pow |
| 9× | add-log-exp |
| 8× | log-prod |
| 6× | flip-+ |
| 6× | flip3-+ |
| 6× | pow1 |
| 5× | associate-+l+ |
| 4× | distribute-lft-out |
| 4× | log1p-expm1-u |
| 4× | add-exp-log |
| 4× | frac-add |
| 4× | add-cbrt-cube |
| 4× | expm1-log1p-u |
| 3× | exp-sum |
| 2× | rem-exp-log |
| 2× | sum-log |
| 2× | +-commutative |
| 1× | rem-log-exp |
| 1× | associate-+r+ |
| 57.0ms | (+ (log (exp (+ (+ d b) (+ e c)))) a) |
| 15.0ms | (log (exp (+ (+ d b) (+ e c)))) |
| 9.0ms | (exp (+ (+ d b) (+ e c))) |
| 3.0ms | (+ (+ d b) (+ e c)) |
| 49.0ms | (+ (log (exp (+ (+ d b) (+ e c)))) a) |
| 35.0ms | (exp (+ (+ d b) (+ e c))) |
| 31.0ms | (log (exp (+ (+ d b) (+ e c)))) |
| 23.0ms | (+ (+ d b) (+ e c)) |
| 543.0ms | (* (+ (* d d) (- (* b b) (* d b))) (+ (* e e) (- (* c c) (* e c)))) |
| 499.0ms | (+ (* (- (* d d) (* b b)) (- e c)) (* (- d b) (- (* e e) (* c c)))) |
| 498.0ms | (+ (* (+ (pow d 3) (pow b 3)) (- e c)) (* (+ (* d d) (- (* b b) (* d b))) (- (* e e) (* c c)))) |
| 198.0ms | (* (- d b) (+ (* e e) (- (* c c) (* e c)))) |
| 155.0ms | (+ (* (+ (pow d 3) (pow b 3)) (+ (* e e) (- (* c c) (* e c)))) (* (+ (* d d) (- (* b b) (* d b))) (+ (pow e 3) (pow c 3)))) |
6 alts after pruning (5 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 2.5b | (exp (+ e c)) |
| 1.9b | (exp (+ d b)) |
| 0.3b | (* (exp (+ d b)) (exp (+ e c))) |
| 0.3b | (+ (log (* (exp (+ d b)) (exp (+ e c)))) a) |
| 13× | *-un-lft-identity |
| 10× | exp-prod |
| 9× | add-cube-cbrt |
| 9× | pow1 |
| 9× | add-sqr-sqrt |
| 6× | add-log-exp |
| 6× | add-cbrt-cube |
| 6× | fma-def |
| 4× | log1p-expm1-u |
| 4× | add-exp-log |
| 4× | exp-sum |
| 4× | associate-*l* |
| 4× | associate-*r* |
| 4× | expm1-log1p-u |
| 3× | log-pow |
| 2× | rem-exp-log |
| 2× | pow-prod-up |
| 2× | pow-prod-down |
| 1× | flip-+ |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | flip3-+ |
| 1× | log-prod |
| 1× | associate-+l+ |
| 1× | +-commutative |
| 44.0ms | (+ (log (* (exp (+ d b)) (exp (+ e c)))) a) |
| 17.0ms | (* (exp (+ d b)) (exp (+ e c))) |
| 3.0ms | (exp (+ e c)) |
| 3.0ms | (exp (+ d b)) |
| 193.0ms | (+ (log (* (exp (+ d b)) (exp (+ e c)))) a) |
| 46.0ms | (* (exp (+ d b)) (exp (+ e c))) |
| 12.0ms | (exp (+ e c)) |
| 12.0ms | (exp (+ d b)) |
| 403.0ms | (+ (log (* (exp (+ e c)) (exp (+ b d)))) a) |
| 386.0ms | (* (* (* (exp (+ d b)) (exp (+ d b))) (exp (+ d b))) (* (* (exp (+ e c)) (exp (+ e c))) (exp (+ e c)))) |
| 384.0ms | (+ (log (* (exp (+ e c)) (exp (+ b d)))) a) |
| 338.0ms | (* (cbrt (log (* (exp (+ d b)) (exp (+ e c))))) (cbrt (log (* (exp (+ d b)) (exp (+ e c)))))) |
| 304.0ms | (sqrt (log (* (exp (+ d b)) (exp (+ e c))))) |
6 alts after pruning (4 fresh and 2 done)
Merged error: 0b
0% (0.3b remaining)
Error of 0.3b against oracle of 0.0b and baseline of 0.3b