



Bits error versus d1




Bits error versus d2




Bits error versus d3
Results
| Original | 0.0 |
|---|---|
| Target | 0.0 |
| Herbie | 0.0 |
Initial program 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019021
(FPCore (d1 d2 d3)
:name "FastMath dist"
:herbie-target
(* d1 (+ d2 d3))
(+ (* d1 d2) (* d1 d3)))
Time bar (total: 6.2s)Debug log
| 26.0ms | 325× | body | 80 | valid |
| 4.0ms | (+ (* d1 d2) (* d1 d3)) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.0b
Found 1 expressions with local error:
| 0.0b | (* d1 (+ d2 d3)) |
| 3× | associate-*r* |
| 2× | add-cube-cbrt |
| 2× | associate-*r/ |
| 2× | *-un-lft-identity |
| 2× | add-sqr-sqrt |
| 1× | add-log-exp |
| 1× | flip-+ |
| 1× | *-commutative |
| 1× | add-exp-log |
| 1× | add-cbrt-cube |
| 1× | flip3-+ |
| 1× | distribute-lft-in |
| 1× | pow1 |
| 1× | distribute-rgt-in |
| 1.0ms | (* d1 (+ d2 d3)) |
| 17.0ms | (* d1 (+ d2 d3)) |
| 53.0ms | (+ (* d2 d2) (- (* d3 d3) (* d2 d3))) |
| 6.0ms | (+ (* d3 d1) (* d2 d1)) |
| 5.0ms | (+ (* d2 d1) (* d3 d1)) |
| 4.0ms | (+ (* d3 d1) (* d2 d1)) |
| 3.0ms | (cbrt (+ d2 d3)) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.0b
Found 1 expressions with local error:
| 0.0b | (+ (* d1 d2) (* d1 d3)) |
| 3× | add-log-exp |
| 1× | distribute-lft-out |
| 1× | flip-+ |
| 1× | add-cube-cbrt |
| 1× | add-exp-log |
| 1× | add-cbrt-cube |
| 1× | flip3-+ |
| 1× | *-un-lft-identity |
| 1× | sum-log |
| 1× | +-commutative |
| 1× | pow1 |
| 1× | add-sqr-sqrt |
| 4.0ms | (+ (* d1 d2) (* d1 d3)) |
| 22.0ms | (+ (* d1 d2) (* d1 d3)) |
| 9.0ms | (* (exp (* d1 d2)) (exp (* d1 d3))) |
| 5.0ms | (+ (* d2 d1) (* d3 d1)) |
| 5.0ms | (+ (* d3 d1) (* d2 d1)) |
| 4.0ms | (+ (* d3 d1) (* d2 d1)) |
| 1.0ms | (+ d2 d3) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.6b | (cbrt (+ d2 d3)) |
| 0.6b | (cbrt (+ d2 d3)) |
| 0.6b | (cbrt (+ d2 d3)) |
| 0.6b | (* (cbrt (+ d2 d3)) (cbrt (+ d2 d3))) |
| 18× | cbrt-div |
| 15× | cbrt-prod |
| 11× | add-cube-cbrt |
| 11× | *-un-lft-identity |
| 11× | add-sqr-sqrt |
| 9× | flip-+ |
| 9× | flip3-+ |
| 9× | pow1 |
| 7× | pow1/3 |
| 6× | add-exp-log |
| 6× | associate-*l* |
| 6× | associate-*r* |
| 4× | add-log-exp |
| 4× | add-cbrt-cube |
| 4× | frac-times |
| 2× | pow-prod-up |
| 2× | associate-*r/ |
| 2× | associate-*l/ |
| 2× | pow-prod-down |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | pow-plus |
| 1× | pow2 |
| 9.0ms | (* (cbrt (+ d2 d3)) (cbrt (+ d2 d3))) |
| 1.0ms | (cbrt (+ d2 d3)) |
| 0.0ms | (cbrt (+ d2 d3)) |
| 0.0ms | (cbrt (+ d2 d3)) |
| 221.0ms | (* (cbrt (+ d2 d3)) (cbrt (+ d2 d3))) |
| 167.0ms | (cbrt (+ d2 d3)) |
| 137.0ms | (cbrt (+ d2 d3)) |
| 120.0ms | (cbrt (+ d2 d3)) |
| 144.0ms | (- (+ (pow d3 1/3) (* 1/3 (* (pow (/ 1 (pow d3 2)) 1/3) d2))) (* 1/9 (* (pow (/ 1 (pow d3 5)) 1/3) (pow d2 2)))) |
| 137.0ms | (- (+ (pow d3 1/3) (* 1/3 (* (pow (/ 1 (pow d3 2)) 1/3) d2))) (* 1/9 (* (pow (/ 1 (pow d3 5)) 1/3) (pow d2 2)))) |
| 126.0ms | (- (+ (* 2/3 (* (pow (/ 1 d3) 1/3) d2)) (pow d3 2/3)) (* 1/9 (* (pow (/ 1 (pow d3 4)) 1/3) (pow d2 2)))) |
| 114.0ms | (- (+ (pow d3 1/3) (* 1/3 (* (pow (/ 1 (pow d3 2)) 1/3) d2))) (* 1/9 (* (pow (/ 1 (pow d3 5)) 1/3) (pow d2 2)))) |
| 71.0ms | (* (cbrt (+ (pow d2 3) (pow d3 3))) (cbrt (- (* d2 d2) (* d3 d3)))) |
4 alts after pruning (1 fresh and 3 done)
Merged error: 0b
Found 4 expressions with local error:
| 25.8b | (cbrt (- (* d2 d2) (* d3 d3))) |
| 2.7b | (- (* d2 d2) (* d3 d3)) |
| 0.6b | (cbrt (- d2 d3)) |
| 0.6b | (cbrt (+ d2 d3)) |
| 10× | cbrt-prod |
| 7× | add-cube-cbrt |
| 7× | *-un-lft-identity |
| 7× | add-sqr-sqrt |
| 6× | add-log-exp |
| 6× | cbrt-div |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 3× | flip-- |
| 3× | pow1/3 |
| 3× | flip3-- |
| 2× | difference-of-squares |
| 1× | flip-+ |
| 1× | diff-log |
| 1× | flip3-+ |
| 1× | sub-neg |
| 4.0ms | (- (* d2 d2) (* d3 d3)) |
| 3.0ms | (cbrt (- (* d2 d2) (* d3 d3))) |
| 1.0ms | (cbrt (- d2 d3)) |
| 1.0ms | (cbrt (+ d2 d3)) |
| 132.0ms | (cbrt (- d2 d3)) |
| 119.0ms | (cbrt (+ d2 d3)) |
| 104.0ms | (cbrt (- (* d2 d2) (* d3 d3))) |
| 19.0ms | (- (* d2 d2) (* d3 d3)) |
| 214.0ms | (- (exp (* 1/3 (+ (log d3) (log -1)))) (+ (* 1/9 (* (exp (* 1/3 (- (log -1) (* 5 (log d3))))) (pow d2 2))) (* 1/3 (* (exp (* 1/3 (- (log -1) (* 2 (log d3))))) d2)))) |
| 197.0ms | (- (exp (* 1/3 (+ (* 2 (log d3)) (log -1)))) (* 1/3 (* (exp (* 1/3 (- (log -1) (* 4 (log d3))))) (pow d2 2)))) |
| 150.0ms | (cbrt (- (pow (* d2 d2) 3) (pow (* d3 d3) 3))) |
| 130.0ms | (- (+ (pow d3 1/3) (* 1/3 (* (pow (/ 1 (pow d3 2)) 1/3) d2))) (* 1/9 (* (pow (/ 1 (pow d3 5)) 1/3) (pow d2 2)))) |
| 123.0ms | (cbrt (- (* (* d2 d2) (* d2 d2)) (* (* d3 d3) (* d3 d3)))) |
4 alts after pruning (0 fresh and 4 done)
Merged error: 0b
0% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 0.0b
| 546.0ms | 10094× | body | 80 | valid |