


Bits error versus x
Results
Initial program 38.8
Simplified0.0
Final simplification0.0
herbie shell --seed 2019004 +o rules:numerics
(FPCore (x)
:name "Expanding a square"
(- (* (+ x 1) (+ x 1)) 1))
Time bar (total: 5.3s)Debug log
1 calls. Slowest were:
| 441.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) |
1 calls. Slowest were:
| 4.0ms | (* (+ 2 x) x) |
1 calls. Slowest were:
| 25.0ms | (* (+ 2 x) x) |
7 calls. Slowest were:
| 210.0ms | (* (- (* 2 2) (* x x)) x) |
| 15.0ms | (* (+ (pow 2 3) (pow x 3)) x) |
| 6.0ms | (+ (* 2 x) (pow x 2)) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0b
Found 2 expressions with local error:
| 7.0b | (/ (* (- (* 2 2) (* x x)) x) (- 2 x)) |
| 0.1b | (* (- (* 2 2) (* x x)) x) |
2 calls. Slowest were:
| 7.0ms | (/ (* (- (* 2 2) (* x x)) x) (- 2 x)) |
| 4.0ms | (* (- (* 2 2) (* x x)) x) |
2 calls. Slowest were:
| 42.0ms | (/ (* (- (* 2 2) (* x x)) x) (- 2 x)) |
| 29.0ms | (* (- (* 2 2) (* x x)) x) |
27 calls. Slowest were:
| 192.0ms | (/ (- (* 2 2) (* x x)) (* (cbrt (- 2 x)) (cbrt (- 2 x)))) |
| 176.0ms | (* (- (* (* 2 2) (* 2 2)) (* (* x x) (* x x))) x) |
| 175.0ms | (* (- (* (* 2 2) (* 2 2)) (* (* x x) (* x x))) x) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0b
Found 2 expressions with local error:
| 0.1b | (/ (- 4 (* x x)) (/ (- 2 x) x)) |
| 0.0b | (/ (- 2 x) x) |
2 calls. Slowest were:
| 3.0ms | (/ (- 4 (* x x)) (/ (- 2 x) x)) |
| 2.0ms | (/ (- 2 x) x) |
2 calls. Slowest were:
| 41.0ms | (/ (- 4 (* x x)) (/ (- 2 x) x)) |
| 19.0ms | (/ (- 2 x) x) |
46 calls. Slowest were:
| 295.0ms | (/ (* (* (- 4 (* x x)) (- 4 (* x x))) (- 4 (* x x))) (* (* (/ (- 2 x) x) (/ (- 2 x) x)) (/ (- 2 x) x))) |
| 127.0ms | (- (* 4 4) (* (* x x) (* x x))) |
| 58.0ms | (/ (- 4 (* x x)) (/ 1 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