



Bits error versus x
Results
| Original | 9.5 |
|---|---|
| Target | 0.3 |
| Herbie | 0.1 |
Initial program 9.5
rmApplied frac-sub26.1
Applied frac-add25.4
Taylor expanded around -inf 0.3
rmApplied associate-/r*0.1
Final simplification0.1
herbie shell --seed 2019007
(FPCore (x)
:name "3frac (problem 3.3.3)"
:herbie-target
(/ 2 (* x (- (* x x) 1)))
(+ (- (/ 1 (+ x 1)) (/ 2 x)) (/ 1 (- x 1))))
Time bar (total: 31.9s)Debug log
1 calls. Slowest were:
| 61.0ms | (+ (- (/ 1 (+ x 1)) (/ 2 x)) (/ 1 (- x 1))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 8.7b
Found 4 expressions with local error:
| 2.4b | (+ (- (/ 1 (+ x 1)) (/ 2 x)) (/ 1 (- x 1))) |
| 0.0b | (- (/ 1 (+ x 1)) (/ 2 x)) |
| 0.0b | (/ 1 (+ x 1)) |
| 0.0b | (/ 1 (- x 1)) |
4 calls. Slowest were:
| 37.0ms | (+ (- (/ 1 (+ x 1)) (/ 2 x)) (/ 1 (- x 1))) |
| 5.0ms | (- (/ 1 (+ x 1)) (/ 2 x)) |
| 1.0ms | (/ 1 (+ x 1)) |
4 calls. Slowest were:
| 37.0ms | (+ (- (/ 1 (+ x 1)) (/ 2 x)) (/ 1 (- x 1))) |
| 11.0ms | (- (/ 1 (+ x 1)) (/ 2 x)) |
| 8.0ms | (/ 1 (+ x 1)) |
| 6.0ms | (/ 1 (- x 1)) |
48 calls. Slowest were:
| 719.0ms | (+ (* (- (* 1 x) (* (+ x 1) 2)) (- x 1)) (* (* (+ x 1) x) 1)) |
| 424.0ms | (* (+ (/ 1 (+ x 1)) (/ 2 x)) (- x 1)) |
| 417.0ms | (- (+ (* 2 x) (+ (* 2 (pow x 3)) (* 2 (/ 1 x))))) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 17.1b | (+ (- (/ 1 (+ x 1)) (/ 2 x)) (/ (/ 1 (* (cbrt (- x 1)) (cbrt (- x 1)))) (cbrt (- x 1)))) |
| 0.3b | (cbrt (- x 1)) |
| 0.3b | (cbrt (- x 1)) |
| 0.3b | (cbrt (- x 1)) |
4 calls. Slowest were:
| 40.0ms | (+ (- (/ 1 (+ x 1)) (/ 2 x)) (/ (/ 1 (* (cbrt (- x 1)) (cbrt (- x 1)))) (cbrt (- x 1)))) |
| 1.0ms | (cbrt (- x 1)) |
| 1.0ms | (cbrt (- x 1)) |
4 calls. Slowest were:
| 92.0ms | (+ (- (/ 1 (+ x 1)) (/ 2 x)) (/ (/ 1 (* (cbrt (- x 1)) (cbrt (- x 1)))) (cbrt (- x 1)))) |
| 49.0ms | (cbrt (- x 1)) |
| 45.0ms | (cbrt (- x 1)) |
| 39.0ms | (cbrt (- x 1)) |
41 calls. Slowest were:
| 384.0ms | (- (+ (* 2 x) (+ (* 2 (pow x 3)) (* 2 (/ 1 x))))) |
| 371.0ms | (- (pow -1 1/3) (+ (* 1/3 (* x (pow -1 1/3))) (* 1/9 (* (pow x 2) (pow -1 1/3))))) |
| 355.0ms | (- (pow -1 1/3) (+ (* 1/3 (* x (pow -1 1/3))) (* 1/9 (* (pow x 2) (pow -1 1/3))))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 18.4b | (+ (* (- (* 1 x) (* (+ x 1) 2)) (- x 1)) (* (* (+ x 1) x) 1)) |
| 0.0b | (* (* (+ x 1) x) (- x 1)) |
| 0.0b | (- (* 1 x) (* (+ x 1) 2)) |
| 0.0b | (* (+ x 1) x) |
4 calls. Slowest were:
| 8.0ms | (+ (* (- (* 1 x) (* (+ x 1) 2)) (- x 1)) (* (* (+ x 1) x) 1)) |
| 7.0ms | (* (* (+ x 1) x) (- x 1)) |
| 2.0ms | (* (+ x 1) x) |
4 calls. Slowest were:
| 59.0ms | (* (* (+ x 1) x) (- x 1)) |
| 18.0ms | (* (+ x 1) x) |
| 11.0ms | (- (* 1 x) (* (+ x 1) 2)) |
| 2.0ms | (+ (* (- (* 1 x) (* (+ x 1) 2)) (- x 1)) (* (* (+ x 1) x) 1)) |
77 calls. Slowest were:
| 1.0s | (+ (* (* (- (pow (* 1 x) 3) (pow (* (+ x 1) 2) 3)) (- (pow x 3) (pow 1 3))) (+ (* x x) (- (* 1 1) (* x 1)))) (* (* (+ (* (* 1 x) (* 1 x)) (+ (* (* (+ x 1) 2) (* (+ x 1) 2)) (* (* 1 x) (* (+ x 1) 2)))) (+ (* x x) (+ (* 1 1) (* x 1)))) (* (* (+ (pow x 3) (pow 1 3)) x) 1))) |
| 800.0ms | (+ (* (* (- (pow (* 1 x) 3) (pow (* (+ x 1) 2) 3)) (- (pow x 3) (pow 1 3))) (- x 1)) (* (* (+ (* (* 1 x) (* 1 x)) (+ (* (* (+ x 1) 2) (* (+ x 1) 2)) (* (* 1 x) (* (+ x 1) 2)))) (+ (* x x) (+ (* 1 1) (* x 1)))) (* (* (- (* x x) (* 1 1)) x) 1))) |
| 642.0ms | (+ (* (* (- (* (* 1 x) (* 1 x)) (* (* (+ x 1) 2) (* (+ x 1) 2))) (- (pow x 3) (pow 1 3))) (+ (* x x) (- (* 1 1) (* x 1)))) (* (* (+ (* 1 x) (* (+ x 1) 2)) (+ (* x x) (+ (* 1 1) (* x 1)))) (* (* (+ (pow x 3) (pow 1 3)) x) 1))) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 0.1b | (/ 2 (* (* (+ x 1) x) (- x 1))) |
| 0.0b | (* (* (+ x 1) x) (- x 1)) |
| 0.0b | (* (+ x 1) x) |
3 calls. Slowest were:
| 7.0ms | (* (* (+ x 1) x) (- x 1)) |
| 3.0ms | (/ 2 (* (* (+ x 1) x) (- x 1))) |
| 2.0ms | (* (+ x 1) x) |
3 calls. Slowest were:
| 37.0ms | (* (* (+ x 1) x) (- x 1)) |
| 26.0ms | (/ 2 (* (* (+ x 1) x) (- x 1))) |
| 25.0ms | (* (+ x 1) x) |
45 calls. Slowest were:
| 537.0ms | (* (* (- (* x x) (* 1 1)) x) (- (* x x) (* 1 1))) |
| 518.0ms | (* (* (- (* x x) (* 1 1)) x) (- (pow x 3) (pow 1 3))) |
| 430.0ms | (- (+ (* 2 x) (+ (* 2 (pow x 3)) (* 2 (/ 1 x))))) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0b
0% (0.1b remaining)
Error of 0.1b against oracle of 0.0b and baseline of 0.1b