



Bits error versus x
Results
| Original | 30.1 |
|---|---|
| Target | 0.2 |
| Herbie | 30.0 |
Initial program 30.1
rmApplied add-cube-cbrt30.1
Applied sqrt-prod30.1
Simplified30.1
rmApplied add-cube-cbrt30.1
Applied cbrt-prod30.0
rmApplied flip--30.0
rmApplied add-sqr-sqrt30.0
Applied associate-*l*30.0
Final simplification30.0
herbie shell --seed 2019010
(FPCore (x)
:name "2sqrt (example 3.1)"
:herbie-target
(/ 1 (+ (sqrt (+ x 1)) (sqrt x)))
(- (sqrt (+ x 1)) (sqrt x)))
Time bar (total: 12.2s)Debug log
| 8.0ms | (- (sqrt (+ x 1)) (sqrt x)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 25.9b
Found 2 expressions with local error:
| 3.3b | (- (sqrt (+ x 1)) (sqrt x)) |
| 0.0b | (sqrt (+ x 1)) |
| 8× | add-sqr-sqrt |
| 5× | *-un-lft-identity |
| 4× | add-log-exp |
| 4× | sqrt-prod |
| 3× | add-cube-cbrt |
| 2× | difference-of-squares |
| 2× | add-exp-log |
| 2× | sqrt-div |
| 2× | add-cbrt-cube |
| 2× | pow1 |
| 1× | distribute-lft-out-- |
| 1× | flip-- |
| 1× | flip-+ |
| 1× | diff-log |
| 1× | pow1/2 |
| 1× | flip3-- |
| 1× | flip3-+ |
| 1× | sub-neg |
| 1× | rem-sqrt-square |
| 13.0ms | (- (sqrt (+ x 1)) (sqrt x)) |
| 1.0ms | (sqrt (+ x 1)) |
| 50.0ms | (- (sqrt (+ x 1)) (sqrt x)) |
| 11.0ms | (sqrt (+ x 1)) |
| 44.0ms | (- (+ (* 1/2 x) 1) (* 1/8 (pow x 2))) |
| 25.0ms | (sqrt (- (* x x) (* 1 1))) |
| 14.0ms | (/ (exp (sqrt (+ x 1))) (exp (sqrt x))) |
| 5.0ms | (- (sqrt (sqrt (+ x 1))) (sqrt (sqrt x))) |
| 5.0ms | (- (sqrt (sqrt (+ x 1))) (sqrt (sqrt x))) |
9 alts after pruning (9 fresh and 0 done)
Merged error: 25.3b
Found 4 expressions with local error:
| 13.0b | (- (* (fabs (cbrt (+ 1 x))) (sqrt (cbrt (+ x 1)))) (sqrt x)) |
| 0.2b | (cbrt (+ x 1)) |
| 0.2b | (cbrt (+ 1 x)) |
| 0.1b | (* (fabs (cbrt (+ 1 x))) (sqrt (cbrt (+ x 1)))) |
| 10× | add-cube-cbrt |
| 10× | *-un-lft-identity |
| 10× | add-sqr-sqrt |
| 9× | associate-*r* |
| 9× | cbrt-prod |
| 6× | add-log-exp |
| 6× | sqrt-prod |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 6× | cbrt-div |
| 6× | pow1 |
| 3× | flip-+ |
| 3× | associate-*l* |
| 3× | flip3-+ |
| 2× | associate-*r/ |
| 2× | sqrt-div |
| 2× | pow1/3 |
| 1× | flip-- |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | sub-neg |
| 7.0ms | (- (* (fabs (cbrt (+ 1 x))) (sqrt (cbrt (+ x 1)))) (sqrt x)) |
| 5.0ms | (* (fabs (cbrt (+ 1 x))) (sqrt (cbrt (+ x 1)))) |
| 1.0ms | (cbrt (+ x 1)) |
| 1.0ms | (cbrt (+ 1 x)) |
| 61.0ms | (- (* (fabs (cbrt (+ 1 x))) (sqrt (cbrt (+ x 1)))) (sqrt x)) |
| 60.0ms | (* (fabs (cbrt (+ 1 x))) (sqrt (cbrt (+ x 1)))) |
| 40.0ms | (cbrt (+ x 1)) |
| 40.0ms | (cbrt (+ 1 x)) |
| 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)))) |
| 170.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)))) |
| 161.0ms | (- (+ (* 1/6 (/ (* (fabs (pow (+ x 1) 1/3)) (exp (* 1/6 (- (log -1) (log (/ -1 x)))))) x)) (* (fabs (pow (+ x 1) 1/3)) (exp (* 1/6 (- (log -1) (log (/ -1 x))))))) (* 5/72 (/ (* (fabs (pow (+ x 1) 1/3)) (exp (* 1/6 (- (log -1) (log (/ -1 x)))))) (pow x 2)))) |
| 152.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)))) |
| 141.0ms | (- (+ (* 1/6 (* (fabs (pow (+ x 1) 1/3)) (pow (/ 1 (pow x 5)) 1/6))) (* (fabs (pow (+ x 1) 1/3)) (pow x 1/6))) (* 5/72 (* (fabs (pow (+ x 1) 1/3)) (pow (/ 1 (pow x 11)) 1/6)))) |
17 alts after pruning (17 fresh and 0 done)
Merged error: 25.3b
Found 4 expressions with local error:
| 16.4b | (- (* (fabs (* (cbrt (* (cbrt (+ 1 x)) (cbrt (+ 1 x)))) (cbrt (cbrt (+ 1 x))))) (sqrt (cbrt (+ x 1)))) (sqrt x)) |
| 0.2b | (* (cbrt (+ 1 x)) (cbrt (+ 1 x))) |
| 0.2b | (cbrt (+ x 1)) |
| 0.2b | (cbrt (+ 1 x)) |
| 16× | cbrt-div |
| 12× | cbrt-prod |
| 10× | add-cube-cbrt |
| 10× | *-un-lft-identity |
| 10× | add-sqr-sqrt |
| 9× | pow1 |
| 8× | flip-+ |
| 8× | flip3-+ |
| 6× | add-log-exp |
| 6× | add-exp-log |
| 6× | associate-*l* |
| 6× | associate-*r* |
| 6× | pow1/3 |
| 4× | add-cbrt-cube |
| 4× | frac-times |
| 2× | pow-prod-up |
| 2× | associate-*r/ |
| 2× | associate-*l/ |
| 2× | pow-prod-down |
| 1× | flip-- |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | pow-plus |
| 1× | sub-neg |
| 1× | pow2 |
| 13.0ms | (- (* (fabs (* (cbrt (* (cbrt (+ 1 x)) (cbrt (+ 1 x)))) (cbrt (cbrt (+ 1 x))))) (sqrt (cbrt (+ x 1)))) (sqrt x)) |
| 10.0ms | (* (cbrt (+ 1 x)) (cbrt (+ 1 x))) |
| 1.0ms | (cbrt (+ x 1)) |
| 1.0ms | (cbrt (+ 1 x)) |
| 82.0ms | (- (* (fabs (* (cbrt (* (cbrt (+ 1 x)) (cbrt (+ 1 x)))) (cbrt (cbrt (+ 1 x))))) (sqrt (cbrt (+ x 1)))) (sqrt x)) |
| 48.0ms | (cbrt (+ 1 x)) |
| 36.0ms | (* (cbrt (+ 1 x)) (cbrt (+ 1 x))) |
| 32.0ms | (cbrt (+ x 1)) |
| 225.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)))) |
| 190.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)))) |
| 69.0ms | (- (+ (* 1/3 (pow (/ 1 (pow x 2)) 1/3)) (pow (/ 1 x) -1/3)) (* 1/9 (pow (/ 1 (pow x 5)) 1/3))) |
| 61.0ms | (- (+ (* 2/3 (pow (/ 1 x) 1/3)) (pow (/ -1 x) -2/3)) (* 1/9 (pow (/ 1 (pow x 4)) 1/3))) |
| 60.0ms | (- (+ (* 2/3 x) 1) (* 1/9 (pow x 2))) |
18 alts after pruning (18 fresh and 0 done)
Merged error: 25.3b
Found 4 expressions with local error:
| 16.1b | (- (* (* (fabs (* (cbrt (* (cbrt (+ 1 x)) (cbrt (+ 1 x)))) (cbrt (cbrt (+ 1 x))))) (sqrt (cbrt (+ x 1)))) (* (fabs (* (cbrt (* (cbrt (+ 1 x)) (cbrt (+ 1 x)))) (cbrt (cbrt (+ 1 x))))) (sqrt (cbrt (+ x 1))))) (* (sqrt x) (sqrt x))) |
| 0.5b | (* (sqrt x) (sqrt x)) |
| 0.2b | (* (cbrt (+ 1 x)) (cbrt (+ 1 x))) |
| 0.2b | (* (cbrt (+ 1 x)) (cbrt (+ 1 x))) |
| 24× | cbrt-div |
| 19× | pow1 |
| 15× | associate-*l* |
| 15× | associate-*r* |
| 14× | add-cube-cbrt |
| 14× | *-un-lft-identity |
| 14× | add-sqr-sqrt |
| 12× | flip-+ |
| 12× | flip3-+ |
| 12× | cbrt-prod |
| 10× | add-exp-log |
| 8× | pow1/3 |
| 8× | frac-times |
| 6× | add-log-exp |
| 6× | pow-prod-up |
| 6× | pow-prod-down |
| 6× | add-cbrt-cube |
| 4× | associate-*r/ |
| 4× | associate-*l/ |
| 4× | pow1/2 |
| 3× | cbrt-unprod |
| 3× | *-commutative |
| 3× | prod-exp |
| 3× | pow-plus |
| 3× | pow2 |
| 1× | difference-of-squares |
| 1× | flip-- |
| 1× | diff-log |
| 1× | sqrt-unprod |
| 1× | flip3-- |
| 1× | rem-square-sqrt |
| 1× | sub-neg |
| 29.0ms | (- (* (* (fabs (* (cbrt (* (cbrt (+ 1 x)) (cbrt (+ 1 x)))) (cbrt (cbrt (+ 1 x))))) (sqrt (cbrt (+ x 1)))) (* (fabs (* (cbrt (* (cbrt (+ 1 x)) (cbrt (+ 1 x)))) (cbrt (cbrt (+ 1 x))))) (sqrt (cbrt (+ x 1))))) (* (sqrt x) (sqrt x))) |
| 7.0ms | (* (cbrt (+ 1 x)) (cbrt (+ 1 x))) |
| 5.0ms | (* (cbrt (+ 1 x)) (cbrt (+ 1 x))) |
| 4.0ms | (* (sqrt x) (sqrt x)) |
| 56.0ms | (- (* (* (fabs (* (cbrt (* (cbrt (+ 1 x)) (cbrt (+ 1 x)))) (cbrt (cbrt (+ 1 x))))) (sqrt (cbrt (+ x 1)))) (* (fabs (* (cbrt (* (cbrt (+ 1 x)) (cbrt (+ 1 x)))) (cbrt (cbrt (+ 1 x))))) (sqrt (cbrt (+ x 1))))) (* (sqrt x) (sqrt x))) |
| 34.0ms | (* (cbrt (+ 1 x)) (cbrt (+ 1 x))) |
| 32.0ms | (* (cbrt (+ 1 x)) (cbrt (+ 1 x))) |
| 7.0ms | (* (sqrt x) (sqrt x)) |
| 320.0ms | (- (+ (pow (fabs (pow (+ x 1) 1/3)) 2) (* 1/3 (* (pow (fabs (pow (+ x 1) 1/3)) 2) x))) (+ x (* 1/9 (* (pow (fabs (pow (+ x 1) 1/3)) 2) (pow x 2))))) |
| 94.0ms | (- (+ (* 1/3 (* (pow (fabs (pow (+ x 1) 1/3)) 2) (pow (/ 1 (pow x 2)) 1/3))) (* (pow (fabs (pow (+ x 1) 1/3)) 2) (pow x 1/3))) x) |
| 83.0ms | (- (+ (* 2/3 x) 1) (* 1/9 (pow x 2))) |
| 69.0ms | (- (+ (* 2/3 (pow (/ 1 x) 1/3)) (pow (/ -1 x) -2/3)) (* 1/9 (pow (/ 1 (pow x 4)) 1/3))) |
| 67.0ms | (- (+ (* 2/3 (pow (/ 1 x) 1/3)) (pow (/ 1 x) -2/3)) (* 1/9 (pow (/ 1 (pow x 4)) 1/3))) |
21 alts after pruning (21 fresh and 0 done)
Merged error: 24.9b
0% (1.1b remaining)
Error of 30.0b against oracle of 28.9b and baseline of 30.0b