


Bits error versus x
Results
if x < -11765340288333386.0 or 5.463305768775051e+16 < x Initial program 0.0
Simplified0.0
rmApplied add-sqr-sqrt0.0
if -11765340288333386.0 < x < 5.463305768775051e+16Initial program 56.0
Simplified0.0
rmApplied flip3-+0.0
Applied associate-*l/0.0
Simplified0.0
rmApplied flip-+0.0
Applied associate-/r/0.0
Simplified0.1
Final simplification0.0
herbie shell --seed 2019010
(FPCore (x)
:name "Expanding a square"
(- (* (+ x 1) (+ x 1)) 1))
Time bar (total: 14.7s)Debug log
| 157.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) |
| 26.0ms | (* (+ x 2) x) |
| 153.0ms | (* (- (* x x) (* 2 2)) x) |
| 15.0ms | (* (+ (pow x 3) (pow 2 3)) x) |
| 6.0ms | (+ (* 2 x) (pow x 2)) |
| 6.0ms | (+ (* 2 x) (pow x 2)) |
| 5.0ms | (+ (* 2 x) (pow x 2)) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0.0b
Found 2 expressions with local error:
| 9.6b | (/ (+ (pow x 4) (* 8 x)) (+ (* x x) (- (* 2 2) (* x 2)))) |
| 0.0b | (+ (* x x) (- (* 2 2) (* x 2))) |
| 10× | add-cube-cbrt |
| 10× | *-un-lft-identity |
| 10× | add-sqr-sqrt |
| 9× | times-frac |
| 7× | add-log-exp |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 3× | associate-/l* |
| 3× | flip-+ |
| 3× | flip3-+ |
| 3× | associate-/r* |
| 2× | associate-/l/ |
| 2× | associate-/r/ |
| 2× | sum-log |
| 2× | associate-+r+ |
| 2× | pow1 |
| 1× | div-inv |
| 1× | div-exp |
| 1× | diff-log |
| 1× | frac-2neg |
| 1× | sub-neg |
| 1× | associate-+r- |
| 1× | clear-num |
| 1× | +-commutative |
| 1× | cbrt-undiv |
| 16.0ms | (/ (+ (pow x 4) (* 8 x)) (+ (* x x) (- (* 2 2) (* x 2)))) |
| 4.0ms | (+ (* x x) (- (* 2 2) (* x 2))) |
| 58.0ms | (/ (+ (pow x 4) (* 8 x)) (+ (* x x) (- (* 2 2) (* x 2)))) |
| 9.0ms | (+ (* x x) (- (* 2 2) (* x 2))) |
| 200.0ms | (+ (* (* x x) (* x x)) (- (* (- (* 2 2) (* x 2)) (- (* 2 2) (* x 2))) (* (* x x) (- (* 2 2) (* x 2))))) |
| 126.0ms | (- (* (pow x 4) (pow x 4)) (* (* 8 x) (* 8 x))) |
| 121.0ms | (/ (* (* (+ (pow x 4) (* 8 x)) (+ (pow x 4) (* 8 x))) (+ (pow x 4) (* 8 x))) (* (* (+ (* x x) (- (* 2 2) (* x 2))) (+ (* x x) (- (* 2 2) (* x 2)))) (+ (* x x) (- (* 2 2) (* x 2))))) |
| 117.0ms | (* (exp (* x x)) (/ (exp (* 2 2)) (exp (* x 2)))) |
| 88.0ms | (* (exp (* x x)) (exp (- (* 2 2) (* x 2)))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0b
Found 4 expressions with local error:
| 9.9b | (/ (+ (pow x 4) (* 8 x)) (- (* (* x x) (* x x)) (* (- (* 2 2) (* x 2)) (- (* 2 2) (* x 2))))) |
| 0.1b | (* (* x x) (* x x)) |
| 0.0b | (* (- (* 2 2) (* x 2)) (- (* 2 2) (* x 2))) |
| 0.0b | (* (+ x 2) x) |
| 16× | add-cube-cbrt |
| 16× | *-un-lft-identity |
| 16× | add-sqr-sqrt |
| 14× | pow1 |
| 12× | times-frac |
| 10× | add-exp-log |
| 10× | add-cbrt-cube |
| 8× | associate-*l* |
| 7× | flip-- |
| 7× | flip3-- |
| 6× | pow2 |
| 5× | associate-*r* |
| 4× | difference-of-squares |
| 4× | add-log-exp |
| 4× | associate-*l/ |
| 4× | associate-/r* |
| 4× | frac-times |
| 3× | associate-/l* |
| 3× | pow-prod-up |
| 3× | *-commutative |
| 3× | pow-prod-down |
| 2× | associate-/l/ |
| 2× | flip-+ |
| 2× | cbrt-unprod |
| 2× | associate-/r/ |
| 2× | associate-*r/ |
| 2× | prod-exp |
| 2× | distribute-rgt-out-- |
| 2× | pow-plus |
| 2× | flip3-+ |
| 2× | distribute-lft-in |
| 2× | sub-neg |
| 2× | distribute-rgt-in |
| 1× | div-inv |
| 1× | div-exp |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 16.0ms | (/ (+ (pow x 4) (* 8 x)) (- (* (* x x) (* x x)) (* (- (* 2 2) (* x 2)) (- (* 2 2) (* x 2))))) |
| 8.0ms | (* (- (* 2 2) (* x 2)) (- (* 2 2) (* x 2))) |
| 3.0ms | (* (* x x) (* x x)) |
| 2.0ms | (* (+ x 2) x) |
| 27.0ms | (/ (+ (pow x 4) (* 8 x)) (- (* (* x x) (* x x)) (* (- (* 2 2) (* x 2)) (- (* 2 2) (* x 2))))) |
| 19.0ms | (* (+ x 2) x) |
| 13.0ms | (* (* x x) (* x x)) |
| 8.0ms | (* (- (* 2 2) (* x 2)) (- (* 2 2) (* x 2))) |
| 486.0ms | (* (* (* (- (* 2 2) (* x 2)) (- (* 2 2) (* x 2))) (- (* 2 2) (* x 2))) (* (* (- (* 2 2) (* x 2)) (- (* 2 2) (* x 2))) (- (* 2 2) (* x 2)))) |
| 351.0ms | (* (- (* 2 2) (* x 2)) (- (* x 2))) |
| 350.0ms | (* (- (* 2 2) (* x 2)) (- (* x 2))) |
| 317.0ms | (* (+ (* 2 2) (* x 2)) (+ (* (* 2 2) (* 2 2)) (+ (* (* x 2) (* x 2)) (* (* 2 2) (* x 2))))) |
| 287.0ms | (* (- (* (* 2 2) (* 2 2)) (* (* x 2) (* x 2))) (- (* 2 2) (* x 2))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0b
Found 4 expressions with local error:
| 0.2b | (* (sqrt (* (+ x 2) x)) (sqrt (* (+ x 2) x))) |
| 0.0b | (* (+ x 2) x) |
| 0.0b | (* (+ x 2) x) |
| 0.0b | (sqrt (* (+ x 2) x)) |
| 20× | associate-*l/ |
| 14× | sqrt-div |
| 10× | associate-*l* |
| 9× | flip-+ |
| 9× | flip3-+ |
| 9× | pow1 |
| 8× | add-cube-cbrt |
| 8× | *-un-lft-identity |
| 8× | add-sqr-sqrt |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 5× | pow1/2 |
| 4× | add-log-exp |
| 4× | associate-*r* |
| 4× | frac-times |
| 3× | sqrt-prod |
| 3× | *-commutative |
| 2× | pow-prod-up |
| 2× | associate-*r/ |
| 2× | pow-prod-down |
| 1× | cbrt-unprod |
| 1× | prod-exp |
| 1× | sqrt-unprod |
| 1× | pow-plus |
| 1× | rem-square-sqrt |
| 1× | pow2 |
| 9.0ms | (* (sqrt (* (+ x 2) x)) (sqrt (* (+ x 2) x))) |
| 2.0ms | (* (+ x 2) x) |
| 2.0ms | (* (+ x 2) x) |
| 1.0ms | (sqrt (* (+ x 2) x)) |
| 24.0ms | (* (sqrt (* (+ x 2) x)) (sqrt (* (+ x 2) x))) |
| 17.0ms | (* (+ x 2) x) |
| 17.0ms | (* (+ x 2) x) |
| 15.0ms | (sqrt (* (+ x 2) x)) |
| 176.0ms | (* (sqrt (* (+ (pow x 3) (pow 2 3)) x)) (sqrt (* (- (* x x) (* 2 2)) x))) |
| 169.0ms | (sqrt (* (- (* x x) (* 2 2)) x)) |
| 157.0ms | (* (sqrt (* (- (* x x) (* 2 2)) x)) (sqrt (* (+ (pow x 3) (pow 2 3)) x))) |
| 154.0ms | (* (sqrt (* (- (* x x) (* 2 2)) x)) (sqrt (* (- (* x x) (* 2 2)) x))) |
| 146.0ms | (* (- (* x x) (* 2 2)) x) |
3 alts after pruning (0 fresh and 3 done)
Merged error: 0b
99.7% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 9.7b