



Bits error versus x
Results
| Original | 30.1 |
|---|---|
| Target | 0.2 |
| Herbie | 0.2 |
Initial program 30.1
rmApplied flip--29.9
Taylor expanded around 0 0.2
Final simplification0.2
herbie shell --seed 2019002
(FPCore (x)
:name "2sqrt (example 3.1)"
:herbie-target
(/ 1 (+ (sqrt (+ x 1)) (sqrt x)))
(- (sqrt (+ x 1)) (sqrt x)))
Time bar (total: 11.8s)Debug log
1 calls. Slowest were:
| 4.0ms | (- (sqrt (+ x 1)) (sqrt x)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 32.4b
Found 1 expressions with local error:
| 3.3b | (- (sqrt (+ x 1)) (sqrt x)) |
1 calls. Slowest were:
| 11.0ms | (- (sqrt (+ x 1)) (sqrt x)) |
1 calls. Slowest were:
| 38.0ms | (- (sqrt (+ x 1)) (sqrt x)) |
9 calls. Slowest were:
| 26.0ms | (/ (exp (sqrt (+ x 1))) (exp (sqrt x))) |
| 18.0ms | (- (sqrt (sqrt (+ x 1))) (sqrt (sqrt x))) |
| 10.0ms | (- (sqrt (sqrt (+ x 1))) (sqrt (sqrt x))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 32.2b
Found 4 expressions with local error:
| 2.7b | (- (* (sqrt (+ x 1)) (sqrt (+ x 1))) (* (sqrt x) (sqrt x))) |
| 0.6b | (* (sqrt x) (sqrt x)) |
| 0.3b | (* (sqrt (+ x 1)) (sqrt (+ x 1))) |
| 0.0b | (/ (- (* (sqrt (+ x 1)) (sqrt (+ x 1))) (* (sqrt x) (sqrt x))) (+ (sqrt (+ x 1)) (sqrt x))) |
4 calls. Slowest were:
| 21.0ms | (/ (- (* (sqrt (+ x 1)) (sqrt (+ x 1))) (* (sqrt x) (sqrt x))) (+ (sqrt (+ x 1)) (sqrt x))) |
| 10.0ms | (- (* (sqrt (+ x 1)) (sqrt (+ x 1))) (* (sqrt x) (sqrt x))) |
| 5.0ms | (* (sqrt (+ x 1)) (sqrt (+ x 1))) |
4 calls. Slowest were:
| 43.0ms | (/ (- (* (sqrt (+ x 1)) (sqrt (+ x 1))) (* (sqrt x) (sqrt x))) (+ (sqrt (+ x 1)) (sqrt x))) |
| 12.0ms | (* (sqrt (+ x 1)) (sqrt (+ x 1))) |
| 7.0ms | (* (sqrt x) (sqrt x)) |
| 7.0ms | (- (* (sqrt (+ x 1)) (sqrt (+ x 1))) (* (sqrt x) (sqrt x))) |
108 calls. Slowest were:
| 475.0ms | (- (pow (* (sqrt (+ x 1)) (sqrt (+ x 1))) 3) (pow (* (sqrt x) (sqrt x)) 3)) |
| 422.0ms | (- (* (* (sqrt (+ x 1)) (sqrt (+ x 1))) (* (sqrt (+ x 1)) (sqrt (+ x 1)))) (* (* (sqrt x) (sqrt x)) (* (sqrt x) (sqrt x)))) |
| 182.0ms | (* (* (* (sqrt (+ x 1)) (sqrt (+ x 1))) (sqrt (+ x 1))) (* (* (sqrt (+ x 1)) (sqrt (+ x 1))) (sqrt (+ x 1)))) |
6 alts after pruning (5 fresh and 1 done)
Merged error: 0.0b
Found 2 expressions with local error:
| 0.2b | (/ 1 (+ (sqrt (+ x 1)) (sqrt x))) |
| 0.0b | (+ (sqrt (+ x 1)) (sqrt x)) |
2 calls. Slowest were:
| 6.0ms | (+ (sqrt (+ x 1)) (sqrt x)) |
| 4.0ms | (/ 1 (+ (sqrt (+ x 1)) (sqrt x))) |
2 calls. Slowest were:
| 33.0ms | (+ (sqrt (+ x 1)) (sqrt x)) |
| 29.0ms | (/ 1 (+ (sqrt (+ x 1)) (sqrt x))) |
15 calls. Slowest were:
| 111.0ms | (+ (* (sqrt (+ x 1)) (sqrt (+ x 1))) (- (* (sqrt x) (sqrt x)) (* (sqrt (+ x 1)) (sqrt x)))) |
| 10.0ms | (* (exp (sqrt (+ x 1))) (exp (sqrt x))) |
| 8.0ms | (- (sqrt (+ x 1)) (sqrt x)) |
8 alts after pruning (6 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.2b | (/ (/ 1 (sqrt (+ (sqrt (+ x 1)) (sqrt x)))) (sqrt (+ (sqrt (+ x 1)) (sqrt x)))) |
| 0.1b | (/ 1 (sqrt (+ (sqrt (+ x 1)) (sqrt x)))) |
| 0.1b | (sqrt (+ (sqrt (+ x 1)) (sqrt x))) |
| 0.1b | (sqrt (+ (sqrt (+ x 1)) (sqrt x))) |
4 calls. Slowest were:
| 10.0ms | (/ (/ 1 (sqrt (+ (sqrt (+ x 1)) (sqrt x)))) (sqrt (+ (sqrt (+ x 1)) (sqrt x)))) |
| 5.0ms | (sqrt (+ (sqrt (+ x 1)) (sqrt x))) |
| 5.0ms | (sqrt (+ (sqrt (+ x 1)) (sqrt x))) |
4 calls. Slowest were:
| 72.0ms | (/ 1 (sqrt (+ (sqrt (+ x 1)) (sqrt x)))) |
| 54.0ms | (sqrt (+ (sqrt (+ x 1)) (sqrt x))) |
| 50.0ms | (/ (/ 1 (sqrt (+ (sqrt (+ x 1)) (sqrt x)))) (sqrt (+ (sqrt (+ x 1)) (sqrt x)))) |
| 45.0ms | (sqrt (+ (sqrt (+ x 1)) (sqrt x))) |
143 calls. Slowest were:
| 452.0ms | (/ (* (* (/ 1 (sqrt (+ (sqrt (+ x 1)) (sqrt x)))) (/ 1 (sqrt (+ (sqrt (+ x 1)) (sqrt x))))) (/ 1 (sqrt (+ (sqrt (+ x 1)) (sqrt x))))) (* (* (sqrt (+ (sqrt (+ x 1)) (sqrt x))) (sqrt (+ (sqrt (+ x 1)) (sqrt x)))) (sqrt (+ (sqrt (+ x 1)) (sqrt x))))) |
| 166.0ms | (/ (sqrt (+ (* (sqrt (+ x 1)) (sqrt (+ x 1))) (- (* (sqrt x) (sqrt x)) (* (sqrt (+ x 1)) (sqrt x))))) (sqrt (+ (sqrt (+ x 1)) (sqrt x)))) |
| 164.0ms | (/ (sqrt (+ (* (sqrt (+ x 1)) (sqrt (+ x 1))) (- (* (sqrt x) (sqrt x)) (* (sqrt (+ x 1)) (sqrt x))))) (sqrt (sqrt (+ (sqrt (+ x 1)) (sqrt x))))) |
8 alts after pruning (6 fresh and 2 done)
Merged error: 0b
0% (0.1b remaining)
Error of 0.2b against oracle of 0.0b and baseline of 0.2b