


Bits error versus x
Results
Initial program 38.8
Simplified0.0
Final simplification0.0
herbie shell --seed 2019016
(FPCore (x)
:name "Expanding a square"
(- (* (+ x 1) (+ x 1)) 1))
Time bar (total: 2.7s)Debug log
| 361× | (pre true 80) |
| 194× | (body real 80) |
| 72× | (body real 1280) |
| 50× | (body real 640) |
| 31× | (body real 320) |
| 14× | (body real 160) |
| 160.0ms | (- (* (+ x 1) (+ x 1)) 1) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 0.0b
Found 1 expressions with local error:
| 0.0b | (* (+ x 2) x) |
| 3× | associate-*l* |
| 2× | add-cube-cbrt |
| 2× | associate-*l/ |
| 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× | pow1 |
| 4.0ms | (* (+ x 2) x) |
| 25.0ms | (* (+ x 2) x) |
| 156.0ms | (* (- (* x x) (* 2 2)) x) |
| 16.0ms | (* (+ (pow x 3) (pow 2 3)) x) |
| 6.0ms | (+ (* 2 x) (pow x 2)) |
| 5.0ms | (+ (* 2 x) (pow x 2)) |
| 5.0ms | (+ (* 2 x) (pow x 2)) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0b
Found 2 expressions with local error:
| 7.5b | (/ (+ (* -4 x) (pow x 3)) (- x 2)) |
| 0.0b | (+ (* -4 x) (pow x 3)) |
| 12× | times-frac |
| 11× | add-cube-cbrt |
| 11× | *-un-lft-identity |
| 11× | add-sqr-sqrt |
| 5× | unpow3 |
| 5× | distribute-rgt-out |
| 4× | add-log-exp |
| 4× | associate-/l* |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 3× | associate-/r* |
| 2× | associate-/l/ |
| 2× | flip-+ |
| 2× | associate-/r/ |
| 2× | flip3-+ |
| 2× | pow1 |
| 1× | flip-- |
| 1× | div-inv |
| 1× | div-exp |
| 1× | flip3-- |
| 1× | frac-2neg |
| 1× | sum-log |
| 1× | clear-num |
| 1× | +-commutative |
| 1× | cbrt-undiv |
| 9.0ms | (/ (+ (* -4 x) (pow x 3)) (- x 2)) |
| 2.0ms | (+ (* -4 x) (pow x 3)) |
| 45.0ms | (/ (+ (* -4 x) (pow x 3)) (- x 2)) |
| 34.0ms | (+ (* -4 x) (pow x 3)) |
| 120.0ms | (- (* (* -4 x) (* -4 x)) (* (pow x 3) (pow x 3))) |
| 89.0ms | (+ (pow (* -4 x) 3) (pow (pow x 3) 3)) |
| 79.0ms | (/ (* (* (+ (* -4 x) (pow x 3)) (+ (* -4 x) (pow x 3))) (+ (* -4 x) (pow x 3))) (* (* (- x 2) (- x 2)) (- x 2))) |
| 25.0ms | (/ (* (cbrt (+ (* -4 x) (pow x 3))) (cbrt (+ (* -4 x) (pow x 3)))) (* (cbrt (- x 2)) (cbrt (- x 2)))) |
| 22.0ms | (- (log (+ (* -4 x) (pow x 3))) (log (- x 2))) |
2 alts after pruning (0 fresh and 2 done)
Merged error: 0b
0% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 0.0b
| 10762× | (pre true 80) |
| 5589× | (body real 80) |
| 2263× | (body real 1280) |
| 1689× | (body real 640) |
| 800× | (body real 320) |
| 421× | (body real 160) |