



Bits error versus x0




Bits error versus x1
Results
| Original | 8.4 |
|---|---|
| Target | 0.5 |
| Herbie | 5.1 |
Initial program 8.4
rmApplied clear-num7.5
rmApplied flip3--7.6
rmApplied *-un-lft-identity7.6
Applied add-cube-cbrt7.5
Applied times-frac7.5
Simplified5.1
Final simplification5.1
herbie shell --seed 2019010
(FPCore (x0 x1)
:name "(- (/ x0 (- 1 x1)) x0)"
:pre (or (and (== x0 1.855) (== x1 0.000209)) (and (== x0 2.985) (== x1 0.0186)))
:herbie-target
(/ (* x0 x1) (- 1 x1))
(- (/ x0 (- 1 x1)) x0))
Time bar (total: 34.4s)Debug log
| 4.0ms | (- (/ x0 (- 1 x1)) x0) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 8.4b
Found 2 expressions with local error:
| 7.5b | (- (/ x0 (- 1 x1)) x0) |
| 1.0b | (/ x0 (- 1 x1)) |
| 3× | add-cube-cbrt |
| 3× | *-un-lft-identity |
| 3× | associate-/r* |
| 3× | add-sqr-sqrt |
| 2× | add-log-exp |
| 2× | flip-- |
| 2× | associate-/r/ |
| 2× | add-exp-log |
| 2× | add-cbrt-cube |
| 2× | flip3-- |
| 2× | pow1 |
| 1× | div-inv |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 4.0ms | (- (/ x0 (- 1 x1)) x0) |
| 0.0ms | (/ x0 (- 1 x1)) |
| 21.0ms | (- (/ x0 (- 1 x1)) x0) |
| 18.0ms | (/ x0 (- 1 x1)) |
| 384.0ms | (+ (* x0 (pow x1 3)) (+ (* x0 (pow x1 2)) (* x0 x1))) |
| 91.0ms | (+ x0 (+ (* x0 x1) (* x0 (pow x1 2)))) |
| 83.0ms | (- (+ (/ x0 (pow x1 3)) (+ (/ x0 (pow x1 2)) (/ x0 x1)))) |
| 70.0ms | (- (+ x0 (+ (/ x0 x1) (/ x0 (pow x1 2))))) |
| 69.0ms | (- (+ x0 (+ (/ x0 x1) (/ x0 (pow x1 2))))) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 7.3b
Found 1 expressions with local error:
| 7.5b | (- (/ 1 (/ (- 1 x1) x0)) x0) |
| 1× | add-log-exp |
| 1× | flip-- |
| 1× | add-cube-cbrt |
| 1× | add-exp-log |
| 1× | add-cbrt-cube |
| 1× | flip3-- |
| 1× | *-un-lft-identity |
| 1× | sub-neg |
| 1× | pow1 |
| 1× | add-sqr-sqrt |
| 6.0ms | (- (/ 1 (/ (- 1 x1) x0)) x0) |
| 24.0ms | (- (/ 1 (/ (- 1 x1) x0)) x0) |
| 329.0ms | (+ (* x0 (pow x1 3)) (+ (* x0 (pow x1 2)) (* x0 x1))) |
| 71.0ms | (- (+ x0 (+ (/ x0 x1) (/ x0 (pow x1 2))))) |
| 57.0ms | (- (+ x0 (+ (/ x0 x1) (/ x0 (pow x1 2))))) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 7.1b
Found 4 expressions with local error:
| 5.4b | (- (pow (/ 1 (/ (- 1 x1) x0)) 3) (pow x0 3)) |
| 1.3b | (pow (/ 1 (/ (- 1 x1) x0)) 3) |
| 0.5b | (/ (- (pow (/ 1 (/ (- 1 x1) x0)) 3) (pow x0 3)) (+ (* (/ 1 (/ (- 1 x1) x0)) (/ 1 (/ (- 1 x1) x0))) (+ (* x0 x0) (* (/ 1 (/ (- 1 x1) x0)) x0)))) |
| 0.5b | (* (/ 1 (/ (- 1 x1) x0)) (/ 1 (/ (- 1 x1) x0))) |
| 53× | add-sqr-sqrt |
| 43× | *-un-lft-identity |
| 30× | times-frac |
| 24× | associate-/r/ |
| 23× | add-cube-cbrt |
| 17× | pow1 |
| 16× | add-exp-log |
| 15× | difference-of-squares |
| 15× | cube-prod |
| 15× | unpow-prod-down |
| 10× | associate-/l* |
| 10× | distribute-rgt-out-- |
| 9× | add-cbrt-cube |
| 8× | frac-add |
| 7× | inv-pow |
| 7× | pow-flip |
| 6× | add-log-exp |
| 5× | distribute-lft-out-- |
| 5× | div-inv |
| 5× | flip-+ |
| 5× | pow-prod-up |
| 5× | associate-*l* |
| 5× | associate-*r* |
| 5× | flip3-+ |
| 5× | rec-exp |
| 5× | difference-cubes |
| 4× | prod-exp |
| 3× | un-div-inv |
| 3× | associate-*r/ |
| 3× | associate-*l/ |
| 3× | pow-prod-down |
| 3× | pow-pow |
| 3× | associate-/r* |
| 3× | frac-times |
| 2× | associate-/l/ |
| 2× | flip-- |
| 2× | pow-exp |
| 2× | flip3-- |
| 1× | rem-cube-cbrt |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | div-exp |
| 1× | div-sub |
| 1× | unpow3 |
| 1× | diff-log |
| 1× | pow-plus |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 1× | pow-to-exp |
| 1× | cube-mult |
| 1× | pow2 |
| 1× | cube-div |
| 32.0ms | (/ (- (pow (/ 1 (/ (- 1 x1) x0)) 3) (pow x0 3)) (+ (* (/ 1 (/ (- 1 x1) x0)) (/ 1 (/ (- 1 x1) x0))) (+ (* x0 x0) (* (/ 1 (/ (- 1 x1) x0)) x0)))) |
| 9.0ms | (* (/ 1 (/ (- 1 x1) x0)) (/ 1 (/ (- 1 x1) x0))) |
| 7.0ms | (- (pow (/ 1 (/ (- 1 x1) x0)) 3) (pow x0 3)) |
| 1.0ms | (pow (/ 1 (/ (- 1 x1) x0)) 3) |
| 69.0ms | (/ (- (pow (/ 1 (/ (- 1 x1) x0)) 3) (pow x0 3)) (+ (* (/ 1 (/ (- 1 x1) x0)) (/ 1 (/ (- 1 x1) x0))) (+ (* x0 x0) (* (/ 1 (/ (- 1 x1) x0)) x0)))) |
| 57.0ms | (- (pow (/ 1 (/ (- 1 x1) x0)) 3) (pow x0 3)) |
| 31.0ms | (pow (/ 1 (/ (- 1 x1) x0)) 3) |
| 21.0ms | (* (/ 1 (/ (- 1 x1) x0)) (/ 1 (/ (- 1 x1) x0))) |
| 637.0ms | (/ (- (/ 1 (/ (- 1 x1) x0)) x0) (+ (* (/ 1 (/ (- 1 x1) x0)) (/ 1 (/ (- 1 x1) x0))) (+ (* x0 x0) (* (/ 1 (/ (- 1 x1) x0)) x0)))) |
| 587.0ms | (- (+ (/ (pow x0 3) (pow x1 3)) (+ (* 3 (/ (pow x0 3) (pow x1 4))) (pow x0 3)))) |
| 506.0ms | (- (pow (/ 1 (- 1 x1)) 3) 1) |
| 503.0ms | (/ (- (pow (/ 1 (- 1 x1)) 3) 1) (sqrt (+ (* (/ 1 (/ (- 1 x1) x0)) (/ 1 (/ (- 1 x1) x0))) (+ (* x0 x0) (* (/ 1 (/ (- 1 x1) x0)) x0))))) |
| 449.0ms | (/ (- (pow (/ 1 (- 1 x1)) 3) 1) (cbrt (+ (* (/ 1 (/ (- 1 x1) x0)) (/ 1 (/ (- 1 x1) x0))) (+ (* x0 x0) (* (/ 1 (/ (- 1 x1) x0)) x0))))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 5.1b
Found 4 expressions with local error:
| 5.4b | (- (pow (/ 1 (/ (- 1 x1) x0)) 3) (pow x0 3)) |
| 5.4b | (- (pow (/ 1 (/ (- 1 x1) x0)) 3) (pow x0 3)) |
| 5.4b | (+ (pow (/ x0 (- 1 x1)) 3) (* (- x0) (* x0 x0))) |
| 1.3b | (pow (/ x0 (- 1 x1)) 3) |
| 18× | add-sqr-sqrt |
| 14× | *-un-lft-identity |
| 10× | add-log-exp |
| 10× | cube-prod |
| 10× | unpow-prod-down |
| 8× | associate-/r/ |
| 6× | difference-of-squares |
| 6× | add-cube-cbrt |
| 5× | add-exp-log |
| 5× | add-cbrt-cube |
| 5× | pow1 |
| 4× | flip-- |
| 4× | distribute-rgt-out-- |
| 4× | flip3-- |
| 2× | distribute-lft-out-- |
| 2× | div-inv |
| 2× | diff-log |
| 2× | sub-neg |
| 2× | difference-cubes |
| 2× | distribute-lft-neg-out |
| 1× | rem-cube-cbrt |
| 1× | flip-+ |
| 1× | pow-exp |
| 1× | unsub-neg |
| 1× | unpow3 |
| 1× | flip3-+ |
| 1× | pow-pow |
| 1× | sum-log |
| 1× | +-commutative |
| 1× | pow-to-exp |
| 1× | cube-mult |
| 1× | cube-div |
| 13.0ms | (- (pow (/ 1 (/ (- 1 x1) x0)) 3) (pow x0 3)) |
| 10.0ms | (+ (pow (/ x0 (- 1 x1)) 3) (* (- x0) (* x0 x0))) |
| 8.0ms | (- (pow (/ 1 (/ (- 1 x1) x0)) 3) (pow x0 3)) |
| 1.0ms | (pow (/ x0 (- 1 x1)) 3) |
| 57.0ms | (- (pow (/ 1 (/ (- 1 x1) x0)) 3) (pow x0 3)) |
| 50.0ms | (- (pow (/ 1 (/ (- 1 x1) x0)) 3) (pow x0 3)) |
| 47.0ms | (+ (pow (/ x0 (- 1 x1)) 3) (* (- x0) (* x0 x0))) |
| 33.0ms | (pow (/ x0 (- 1 x1)) 3) |
| 348.0ms | (+ (* (/ 1 (/ (- 1 x1) x0)) (/ 1 (/ (- 1 x1) x0))) (+ (* x0 x0) (* (/ 1 (/ (- 1 x1) x0)) x0))) |
| 339.0ms | (+ (* (/ 1 (/ (- 1 x1) x0)) (/ 1 (/ (- 1 x1) x0))) (+ (* x0 x0) (* (/ 1 (/ (- 1 x1) x0)) x0))) |
| 267.0ms | (- (+ (/ (pow x0 3) (pow x1 3)) (+ (* 3 (/ (pow x0 3) (pow x1 4))) (pow x0 3)))) |
| 260.0ms | (- (+ (/ (pow x0 3) (pow x1 3)) (+ (* 3 (/ (pow x0 3) (pow x1 4))) (pow x0 3)))) |
| 254.0ms | (+ (* 3 (* (pow x0 3) x1)) (+ (* 6 (* (pow x0 3) (pow x1 2))) (pow x0 3))) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 4.8b
0% (0.3b remaining)
Error of 5.1b against oracle of 4.8b and baseline of 5.1b