



Bits error versus x
Results
| Original | 29.8 |
|---|---|
| Target | 0.2 |
| Herbie | 29.7 |
Initial program 29.8
rmApplied add-cube-cbrt29.8
Applied sqrt-prod29.8
Simplified29.8
rmApplied add-cbrt-cube29.8
rmApplied add-exp-log29.7
rmApplied add-cube-cbrt29.7
Final simplification29.7
herbie shell --seed 2019007
(FPCore (x)
:name "2sqrt (example 3.1)"
:herbie-target
(/ 1 (+ (sqrt (+ x 1)) (sqrt x)))
(- (sqrt (+ x 1)) (sqrt x)))
Time bar (total: 10.1s)Debug log
1 calls. Slowest were:
| 4.0ms | (- (sqrt (+ x 1)) (sqrt x)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 33.6b
Found 2 expressions with local error:
| 3.3b | (- (sqrt (+ x 1)) (sqrt x)) |
| 0.0b | (sqrt (+ x 1)) |
2 calls. Slowest were:
| 12.0ms | (- (sqrt (+ x 1)) (sqrt x)) |
| 1.0ms | (sqrt (+ x 1)) |
2 calls. Slowest were:
| 37.0ms | (- (sqrt (+ x 1)) (sqrt x)) |
| 18.0ms | (sqrt (+ x 1)) |
18 calls. Slowest were:
| 74.0ms | (- (+ (* 1/2 x) 1) (* 1/8 (pow x 2))) |
| 27.0ms | (sqrt (- (* x x) (* 1 1))) |
| 13.0ms | (/ (exp (sqrt (+ x 1))) (exp (sqrt x))) |
11 alts after pruning (11 fresh and 0 done)
Merged error: 33.0b
Found 4 expressions with local error:
| 14.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:
| 14.0ms | (- (* (fabs (cbrt (+ 1 x))) (sqrt (cbrt (+ x 1)))) (sqrt x)) |
| 11.0ms | (* (fabs (cbrt (+ 1 x))) (sqrt (cbrt (+ x 1)))) |
| 1.0ms | (cbrt (+ x 1)) |
4 calls. Slowest were:
| 90.0ms | (- (* (fabs (cbrt (+ 1 x))) (sqrt (cbrt (+ x 1)))) (sqrt x)) |
| 51.0ms | (cbrt (+ 1 x)) |
| 46.0ms | (* (fabs (cbrt (+ 1 x))) (sqrt (cbrt (+ x 1)))) |
| 36.0ms | (cbrt (+ x 1)) |
39 calls. Slowest were:
| 189.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)))) |
| 179.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)))) |
| 178.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: 32.9b
Found 4 expressions with local error:
| 14.8b | (- (* (fabs (cbrt (* (* (cbrt (+ 1 x)) (cbrt (+ 1 x))) (cbrt (+ 1 x))))) (sqrt (cbrt (+ x 1)))) (sqrt x)) |
| 0.3b | (cbrt (+ 1 x)) |
| 0.3b | (cbrt (+ 1 x)) |
| 0.3b | (cbrt (+ 1 x)) |
4 calls. Slowest were:
| 13.0ms | (- (* (fabs (cbrt (* (* (cbrt (+ 1 x)) (cbrt (+ 1 x))) (cbrt (+ 1 x))))) (sqrt (cbrt (+ x 1)))) (sqrt x)) |
| 1.0ms | (cbrt (+ 1 x)) |
| 1.0ms | (cbrt (+ 1 x)) |
4 calls. Slowest were:
| 88.0ms | (- (* (fabs (cbrt (* (* (cbrt (+ 1 x)) (cbrt (+ 1 x))) (cbrt (+ 1 x))))) (sqrt (cbrt (+ x 1)))) (sqrt x)) |
| 51.0ms | (cbrt (+ 1 x)) |
| 50.0ms | (cbrt (+ 1 x)) |
| 50.0ms | (cbrt (+ 1 x)) |
28 calls. Slowest were:
| 173.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)))) |
| 167.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)))) |
| 133.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: 32.9b
Found 4 expressions with local error:
| 14.8b | (- (* (fabs (cbrt (* (* (cbrt (+ 1 x)) (cbrt (+ 1 x))) (cbrt (+ 1 x))))) (sqrt (cbrt (+ x 1)))) (sqrt x)) |
| 3.5b | (log (- (* (fabs (cbrt (* (* (cbrt (+ 1 x)) (cbrt (+ 1 x))) (cbrt (+ 1 x))))) (sqrt (cbrt (+ x 1)))) (sqrt x))) |
| 0.5b | (exp (log (- (* (fabs (cbrt (* (* (cbrt (+ 1 x)) (cbrt (+ 1 x))) (cbrt (+ 1 x))))) (sqrt (cbrt (+ x 1)))) (sqrt x)))) |
| 0.3b | (cbrt (+ x 1)) |
4 calls. Slowest were:
| 20.0ms | (exp (log (- (* (fabs (cbrt (* (* (cbrt (+ 1 x)) (cbrt (+ 1 x))) (cbrt (+ 1 x))))) (sqrt (cbrt (+ x 1)))) (sqrt x)))) |
| 18.0ms | (log (- (* (fabs (cbrt (* (* (cbrt (+ 1 x)) (cbrt (+ 1 x))) (cbrt (+ 1 x))))) (sqrt (cbrt (+ x 1)))) (sqrt x))) |
| 13.0ms | (- (* (fabs (cbrt (* (* (cbrt (+ 1 x)) (cbrt (+ 1 x))) (cbrt (+ 1 x))))) (sqrt (cbrt (+ x 1)))) (sqrt x)) |
4 calls. Slowest were:
| 88.0ms | (- (* (fabs (cbrt (* (* (cbrt (+ 1 x)) (cbrt (+ 1 x))) (cbrt (+ 1 x))))) (sqrt (cbrt (+ x 1)))) (sqrt x)) |
| 79.0ms | (log (- (* (fabs (cbrt (* (* (cbrt (+ 1 x)) (cbrt (+ 1 x))) (cbrt (+ 1 x))))) (sqrt (cbrt (+ x 1)))) (sqrt x))) |
| 52.0ms | (exp (log (- (* (fabs (cbrt (* (* (cbrt (+ 1 x)) (cbrt (+ 1 x))) (cbrt (+ 1 x))))) (sqrt (cbrt (+ x 1)))) (sqrt x)))) |
| 37.0ms | (cbrt (+ x 1)) |
34 calls. Slowest were:
| 210.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)))) |
| 106.0ms | (exp (log (- (pow (* (fabs (cbrt (* (* (cbrt (+ 1 x)) (cbrt (+ 1 x))) (cbrt (+ 1 x))))) (sqrt (cbrt (+ x 1)))) 3) (pow (sqrt x) 3)))) |
| 80.0ms | (log (- (pow (* (fabs (cbrt (* (* (cbrt (+ 1 x)) (cbrt (+ 1 x))) (cbrt (+ 1 x))))) (sqrt (cbrt (+ x 1)))) 3) (pow (sqrt x) 3))) |
25 alts after pruning (25 fresh and 0 done)
Merged error: 32.9b
0% (0.8b remaining)
Error of 29.7b against oracle of 28.9b and baseline of 29.7b