


Bits error versus x
Results
Initial program 38.7
Simplified0.0
Final simplification0.0
herbie shell --seed 2019008
(FPCore (x)
:name "Expanding a square"
(- (* (+ x 1) (+ x 1)) 1))
Time bar (total: 11.0s)Debug log
1 calls. Slowest were:
| 170.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) |
1 calls. Slowest were:
| 4.0ms | (* (+ x 2) x) |
1 calls. Slowest were:
| 30.0ms | (* (+ x 2) x) |
7 calls. Slowest were:
| 147.0ms | (* (- (* x x) (* 2 2)) x) |
| 16.0ms | (* (+ (pow x 3) (pow 2 3)) x) |
| 5.0ms | (+ (* 2 x) (pow x 2)) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.9b | (cbrt (+ x 2)) |
| 0.9b | (cbrt (+ x 2)) |
| 0.9b | (cbrt (+ x 2)) |
| 0.4b | (* (* (cbrt (+ x 2)) (cbrt (+ x 2))) (* (cbrt (+ x 2)) x)) |
4 calls. Slowest were:
| 19.0ms | (* (* (cbrt (+ x 2)) (cbrt (+ x 2))) (* (cbrt (+ x 2)) x)) |
| 1.0ms | (cbrt (+ x 2)) |
| 1.0ms | (cbrt (+ x 2)) |
4 calls. Slowest were:
| 273.0ms | (* (* (cbrt (+ x 2)) (cbrt (+ x 2))) (* (cbrt (+ x 2)) x)) |
| 38.0ms | (cbrt (+ x 2)) |
| 31.0ms | (cbrt (+ x 2)) |
| 31.0ms | (cbrt (+ x 2)) |
76 calls. Slowest were:
| 274.0ms | (* (* (* (* (cbrt (+ x 2)) (cbrt (+ x 2))) (* (cbrt (+ x 2)) (cbrt (+ x 2)))) (* (cbrt (+ x 2)) (cbrt (+ x 2)))) (* (* (* (cbrt (+ x 2)) x) (* (cbrt (+ x 2)) x)) (* (cbrt (+ x 2)) x))) |
| 247.0ms | (* (* (+ x 2) (+ x 2)) (* (* (* (cbrt (+ x 2)) x) (* (cbrt (+ x 2)) x)) (* (cbrt (+ x 2)) x))) |
| 143.0ms | (- (+ (* 1/6 (* x (pow 2 1/3))) (pow 2 1/3)) (* 1/36 (* (pow x 2) (pow 2 1/3)))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.9b | (cbrt (* (* (cbrt (+ x 2)) (cbrt (+ x 2))) (cbrt (+ x 2)))) |
| 0.9b | (cbrt (+ x 2)) |
| 0.9b | (cbrt (+ x 2)) |
| 0.9b | (cbrt (+ x 2)) |
4 calls. Slowest were:
| 11.0ms | (cbrt (* (* (cbrt (+ x 2)) (cbrt (+ x 2))) (cbrt (+ x 2)))) |
| 1.0ms | (cbrt (+ x 2)) |
| 1.0ms | (cbrt (+ x 2)) |
4 calls. Slowest were:
| 31.0ms | (cbrt (+ x 2)) |
| 31.0ms | (cbrt (* (* (cbrt (+ x 2)) (cbrt (+ x 2))) (cbrt (+ x 2)))) |
| 30.0ms | (cbrt (+ x 2)) |
| 30.0ms | (cbrt (+ x 2)) |
55 calls. Slowest were:
| 142.0ms | (- (+ (* 1/6 (* x (pow 2 1/3))) (pow 2 1/3)) (* 1/36 (* (pow x 2) (pow 2 1/3)))) |
| 140.0ms | (- (+ (* 1/6 (* x (pow 2 1/3))) (pow 2 1/3)) (* 1/36 (* (pow x 2) (pow 2 1/3)))) |
| 138.0ms | (- (+ (* 1/6 (* x (pow 2 1/3))) (pow 2 1/3)) (* 1/36 (* (pow x 2) (pow 2 1/3)))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0.0b
Found 2 expressions with local error:
| 9.4b | (/ (+ (pow x 4) (* 8 x)) (+ (* x x) (- (* 2 2) (* x 2)))) |
| 0.0b | (+ (* x x) (- (* 2 2) (* x 2))) |
2 calls. Slowest were:
| 16.0ms | (/ (+ (pow x 4) (* 8 x)) (+ (* x x) (- (* 2 2) (* x 2)))) |
| 5.0ms | (+ (* x x) (- (* 2 2) (* x 2))) |
2 calls. Slowest were:
| 58.0ms | (/ (+ (pow x 4) (* 8 x)) (+ (* x x) (- (* 2 2) (* x 2)))) |
| 9.0ms | (+ (* x x) (- (* 2 2) (* x 2))) |
40 calls. Slowest were:
| 192.0ms | (+ (* (* x x) (* x x)) (- (* (- (* 2 2) (* x 2)) (- (* 2 2) (* x 2))) (* (* x x) (- (* 2 2) (* x 2))))) |
| 123.0ms | (- (* (pow x 4) (pow x 4)) (* (* 8 x) (* 8 x))) |
| 117.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))))) |
3 alts after pruning (1 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