


Bits error versus x
Results
Initial program 38.8
Simplified0.0
Final simplification0.0
herbie shell --seed 2019016 +o rules:numerics
(FPCore (x)
:name "Expanding a square"
(- (* (+ x 1) (+ x 1)) 1))
Time bar (total: 4.0s)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) |
| 451.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 | (* (+ 2 x) x) |
| 3× | associate-*l* |
| 2× | add-cube-cbrt |
| 2× | associate-*l/ |
| 2× | *-un-lft-identity |
| 2× | add-sqr-sqrt |
| 1× | add-log-exp |
| 1× | log1p-expm1-u |
| 1× | flip-+ |
| 1× | *-commutative |
| 1× | add-exp-log |
| 1× | add-cbrt-cube |
| 1× | flip3-+ |
| 1× | pow1 |
| 1× | expm1-log1p-u |
| 5.0ms | (* (+ 2 x) x) |
| 30.0ms | (* (+ 2 x) x) |
| 219.0ms | (* (- (* 2 2) (* x x)) x) |
| 15.0ms | (* (+ (pow 2 3) (pow x 3)) x) |
| 7.0ms | (+ (* 2 x) (pow x 2)) |
| 6.0ms | (+ (* 2 x) (pow x 2)) |
| 6.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 | (/ (* (- (* 2 2) (* x x)) x) (- 2 x)) |
| 0.1b | (* (- (* 2 2) (* x x)) x) |
| 5× | add-cube-cbrt |
| 5× | *-un-lft-identity |
| 5× | add-sqr-sqrt |
| 4× | add-exp-log |
| 4× | associate-*l/ |
| 4× | associate-*l* |
| 4× | add-cbrt-cube |
| 3× | flip-- |
| 3× | flip3-- |
| 3× | times-frac |
| 3× | associate-/r* |
| 2× | associate-/l/ |
| 2× | add-log-exp |
| 2× | log1p-expm1-u |
| 2× | associate-/r/ |
| 2× | pow1 |
| 2× | expm1-log1p-u |
| 1× | difference-of-squares |
| 1× | associate-/l* |
| 1× | div-inv |
| 1× | *-commutative |
| 1× | div-exp |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 7.0ms | (/ (* (- (* 2 2) (* x x)) x) (- 2 x)) |
| 4.0ms | (* (- (* 2 2) (* x x)) x) |
| 41.0ms | (/ (* (- (* 2 2) (* x x)) x) (- 2 x)) |
| 32.0ms | (* (- (* 2 2) (* x x)) x) |
| 325.0ms | (* (- (pow (* 2 2) 3) (pow (* x x) 3)) x) |
| 197.0ms | (/ (- (* 2 2) (* x x)) (* (cbrt (- 2 x)) (cbrt (- 2 x)))) |
| 183.0ms | (* (- (* (* 2 2) (* 2 2)) (* (* x x) (* x x))) x) |
| 181.0ms | (* (- (* (* 2 2) (* 2 2)) (* (* x x) (* x x))) x) |
| 165.0ms | (- (log (* (- (* 2 2) (* x x)) x)) (log (- 2 x))) |
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) |