



Bits error versus x
Results
| Original | 29.7 |
|---|---|
| Target | 0.2 |
| Herbie | 29.6 |
Initial program 29.7
rmApplied add-cube-cbrt29.7
Applied sqrt-prod29.7
Simplified29.7
rmApplied add-sqr-sqrt29.7
Applied cbrt-prod29.7
rmApplied add-exp-log29.6
rmApplied add-cube-cbrt29.6
Applied cbrt-prod29.6
Final simplification29.6
herbie shell --seed 2019008
(FPCore (x)
:name "2sqrt (example 3.1)"
:herbie-target
(/ 1 (+ (sqrt (+ x 1)) (sqrt x)))
(- (sqrt (+ x 1)) (sqrt x)))
Time bar (total: 10.8s)Debug log
1 calls. Slowest were:
| 6.0ms | (- (sqrt (+ x 1)) (sqrt x)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 27.8b
Found 2 expressions with local error:
| 2.1b | (- (sqrt (+ x 1)) (sqrt x)) |
| 0.0b | (sqrt (+ x 1)) |
2 calls. Slowest were:
| 11.0ms | (- (sqrt (+ x 1)) (sqrt x)) |
| 1.0ms | (sqrt (+ x 1)) |
2 calls. Slowest were:
| 38.0ms | (- (sqrt (+ x 1)) (sqrt x)) |
| 17.0ms | (sqrt (+ x 1)) |
18 calls. Slowest were:
| 55.0ms | (- (+ (* 1/2 x) 1) (* 1/8 (pow x 2))) |
| 38.0ms | (/ (exp (sqrt (+ x 1))) (exp (sqrt x))) |
| 14.0ms | (sqrt (- (* x x) (* 1 1))) |
11 alts after pruning (11 fresh and 0 done)
Merged error: 27.2b
Found 4 expressions with local error:
| 12.8b | (- (* (fabs (cbrt (+ 1 x))) (sqrt (cbrt (+ x 1)))) (sqrt x)) |
| 0.3b | (cbrt (+ x 1)) |
| 0.3b | (cbrt (+ 1 x)) |
| 0.2b | (* (fabs (cbrt (+ 1 x))) (sqrt (cbrt (+ x 1)))) |
4 calls. Slowest were:
| 9.0ms | (* (fabs (cbrt (+ 1 x))) (sqrt (cbrt (+ x 1)))) |
| 7.0ms | (- (* (fabs (cbrt (+ 1 x))) (sqrt (cbrt (+ x 1)))) (sqrt x)) |
| 1.0ms | (cbrt (+ x 1)) |
4 calls. Slowest were:
| 68.0ms | (- (* (fabs (cbrt (+ 1 x))) (sqrt (cbrt (+ x 1)))) (sqrt x)) |
| 42.0ms | (cbrt (+ x 1)) |
| 41.0ms | (cbrt (+ 1 x)) |
| 39.0ms | (* (fabs (cbrt (+ 1 x))) (sqrt (cbrt (+ x 1)))) |
39 calls. Slowest were:
| 243.0ms | (- (+ (fabs (pow (+ x 1) 1/3)) (* 1/6 (* (fabs (pow (+ x 1) 1/3)) x))) (* 5/72 (* (fabs (pow (+ x 1) 1/3)) (pow x 2)))) |
| 200.0ms | (- (+ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) (* 1/3 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) x))) (* 1/9 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) (pow x 2)))) |
| 146.0ms | (- (+ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) (* 1/3 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) x))) (* 1/9 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) (pow x 2)))) |
20 alts after pruning (20 fresh and 0 done)
Merged error: 27.2b
Found 4 expressions with local error:
| 9.8b | (- (* (fabs (cbrt (+ 1 x))) (sqrt (* (cbrt (sqrt (+ x 1))) (cbrt (sqrt (+ x 1)))))) (sqrt x)) |
| 0.3b | (cbrt (+ 1 x)) |
| 0.3b | (cbrt (sqrt (+ x 1))) |
| 0.3b | (cbrt (sqrt (+ x 1))) |
4 calls. Slowest were:
| 15.0ms | (- (* (fabs (cbrt (+ 1 x))) (sqrt (* (cbrt (sqrt (+ x 1))) (cbrt (sqrt (+ x 1)))))) (sqrt x)) |
| 1.0ms | (cbrt (sqrt (+ x 1))) |
| 1.0ms | (cbrt (sqrt (+ x 1))) |
4 calls. Slowest were:
| 85.0ms | (- (* (fabs (cbrt (+ 1 x))) (sqrt (* (cbrt (sqrt (+ x 1))) (cbrt (sqrt (+ x 1)))))) (sqrt x)) |
| 56.0ms | (cbrt (sqrt (+ x 1))) |
| 51.0ms | (cbrt (+ 1 x)) |
| 35.0ms | (cbrt (sqrt (+ x 1))) |
34 calls. Slowest were:
| 207.0ms | (- (+ (exp (* 1/6 (- (log -1) (log (/ -1 x))))) (* 1/6 (/ (exp (* 1/6 (- (log -1) (log (/ -1 x))))) x))) (* 5/72 (/ (exp (* 1/6 (- (log -1) (log (/ -1 x))))) (pow x 2)))) |
| 203.0ms | (- (+ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) (* 1/3 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) x))) (* 1/9 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) (pow x 2)))) |
| 178.0ms | (- (+ (exp (* 1/6 (- (log -1) (log (/ -1 x))))) (* 1/6 (/ (exp (* 1/6 (- (log -1) (log (/ -1 x))))) x))) (* 5/72 (/ (exp (* 1/6 (- (log -1) (log (/ -1 x))))) (pow x 2)))) |
22 alts after pruning (22 fresh and 0 done)
Merged error: 27.2b
Found 4 expressions with local error:
| 9.8b | (- (* (fabs (cbrt (+ 1 x))) (sqrt (* (cbrt (sqrt (+ x 1))) (cbrt (sqrt (+ x 1)))))) (sqrt x)) |
| 6.9b | (log (- (* (fabs (cbrt (+ 1 x))) (sqrt (* (cbrt (sqrt (+ x 1))) (cbrt (sqrt (+ x 1)))))) (sqrt x))) |
| 0.4b | (exp (log (- (* (fabs (cbrt (+ 1 x))) (sqrt (* (cbrt (sqrt (+ x 1))) (cbrt (sqrt (+ x 1)))))) (sqrt x)))) |
| 0.3b | (cbrt (+ 1 x)) |
4 calls. Slowest were:
| 27.0ms | (exp (log (- (* (fabs (cbrt (+ 1 x))) (sqrt (* (cbrt (sqrt (+ x 1))) (cbrt (sqrt (+ x 1)))))) (sqrt x)))) |
| 25.0ms | (log (- (* (fabs (cbrt (+ 1 x))) (sqrt (* (cbrt (sqrt (+ x 1))) (cbrt (sqrt (+ x 1)))))) (sqrt x))) |
| 24.0ms | (- (* (fabs (cbrt (+ 1 x))) (sqrt (* (cbrt (sqrt (+ x 1))) (cbrt (sqrt (+ x 1)))))) (sqrt x)) |
4 calls. Slowest were:
| 92.0ms | (log (- (* (fabs (cbrt (+ 1 x))) (sqrt (* (cbrt (sqrt (+ x 1))) (cbrt (sqrt (+ x 1)))))) (sqrt x))) |
| 63.0ms | (- (* (fabs (cbrt (+ 1 x))) (sqrt (* (cbrt (sqrt (+ x 1))) (cbrt (sqrt (+ x 1)))))) (sqrt x)) |
| 52.0ms | (exp (log (- (* (fabs (cbrt (+ 1 x))) (sqrt (* (cbrt (sqrt (+ x 1))) (cbrt (sqrt (+ x 1)))))) (sqrt x)))) |
| 41.0ms | (cbrt (+ 1 x)) |
34 calls. Slowest were:
| 218.0ms | (- (+ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) (* 1/3 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) x))) (* 1/9 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) (pow x 2)))) |
| 173.0ms | (exp (log (- (pow (* (fabs (cbrt (+ 1 x))) (sqrt (* (cbrt (sqrt (+ x 1))) (cbrt (sqrt (+ x 1)))))) 3) (pow (sqrt x) 3)))) |
| 144.0ms | (log (- (pow (* (fabs (cbrt (+ 1 x))) (sqrt (* (cbrt (sqrt (+ x 1))) (cbrt (sqrt (+ x 1)))))) 3) (pow (sqrt x) 3))) |
34 alts after pruning (34 fresh and 0 done)
Merged error: 27.2b
0% (0.7b remaining)
Error of 29.6b against oracle of 28.8b and baseline of 29.6b