


Bits error versus x
Results
Initial program 29.3
rmApplied flip3--29.3
Taylor expanded around -inf 0.5
Final simplification0.5
herbie shell --seed 2019021
(FPCore (x)
:name "2cbrt (problem 3.3.4)"
(- (cbrt (+ x 1)) (cbrt x)))
Time bar (total: 11.8s)Debug log
| 16.0ms | 42× | body | 640 | valid |
| 13.0ms | 49× | body | 1280 | valid |
| 13.0ms | 263× | body | 80 | nan |
| 7.0ms | 138× | body | 80 | valid |
| 3.0ms | 21× | body | 320 | valid |
| 1.0ms | 7× | body | 160 | valid |
| 8.0ms | (- (cbrt (+ x 1)) (cbrt x)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 28.5b
Found 3 expressions with local error:
| 2.4b | (- (cbrt (+ x 1)) (cbrt x)) |
| 0.6b | (cbrt x) |
| 0.2b | (cbrt (+ x 1)) |
| 8× | add-sqr-sqrt |
| 6× | *-un-lft-identity |
| 5× | add-log-exp |
| 4× | add-cube-cbrt |
| 4× | cbrt-prod |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 3× | pow1 |
| 2× | difference-of-squares |
| 2× | pow1/3 |
| 2× | cbrt-div |
| 1× | distribute-lft-out-- |
| 1× | flip-- |
| 1× | flip-+ |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | flip3-+ |
| 1× | sub-neg |
| 10.0ms | (- (cbrt (+ x 1)) (cbrt x)) |
| 1.0ms | (cbrt (+ x 1)) |
| 0.0ms | (cbrt x) |
| 231.0ms | (cbrt x) |
| 103.0ms | (- (cbrt (+ x 1)) (cbrt x)) |
| 53.0ms | (cbrt (+ x 1)) |
| 256.0ms | (- (+ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) (* 1/3 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) x))) (+ (* (pow (* x -1) 1/3) (cbrt -1)) (* 1/9 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) (pow x 2))))) |
| 231.0ms | (- (+ (* 1/3 x) 1) (+ (* 1/9 (pow x 2)) (pow x 1/3))) |
| 162.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)))) |
| 62.0ms | (- (+ (* 1/3 (pow (/ 1 (pow x 2)) 1/3)) (* 5/81 (pow (/ 1 (pow x 8)) 1/3))) (* 1/9 (pow (/ 1 (pow x 5)) 1/3))) |
| 53.0ms | (- (+ (* 1/3 (pow (/ 1 (pow x 2)) 1/3)) (pow (/ 1 x) -1/3)) (* 1/9 (pow (/ 1 (pow x 5)) 1/3))) |
9 alts after pruning (9 fresh and 0 done)
Merged error: 14.5b
Found 3 expressions with local error:
| 28.8b | (- (cbrt (+ x 1)) (pow x 1/3)) |
| 5.1b | (pow x 1/3) |
| 0.2b | (cbrt (+ x 1)) |
| 8× | add-sqr-sqrt |
| 6× | *-un-lft-identity |
| 5× | add-log-exp |
| 4× | add-cube-cbrt |
| 4× | cbrt-prod |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 3× | pow1 |
| 2× | difference-of-squares |
| 2× | cbrt-div |
| 1× | distribute-lft-out-- |
| 1× | flip-- |
| 1× | flip-+ |
| 1× | diff-log |
| 1× | pow1/3 |
| 1× | unpow1/3 |
| 1× | flip3-- |
| 1× | flip3-+ |
| 1× | sub-neg |
| 1× | pow-to-exp |
| 11.0ms | (- (cbrt (+ x 1)) (pow x 1/3)) |
| 1.0ms | (cbrt (+ x 1)) |
| 0.0ms | (pow x 1/3) |
| 229.0ms | (pow x 1/3) |
| 105.0ms | (- (cbrt (+ x 1)) (pow x 1/3)) |
| 41.0ms | (cbrt (+ x 1)) |
| 272.0ms | (- (+ (* 5/81 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) (pow x 3))) (* 1/3 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) x))) (* 1/9 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) (pow x 2)))) |
| 209.0ms | (- (+ (* 1/3 x) 1) (+ (* 1/9 (pow x 2)) (pow x 1/3))) |
| 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)))) |
| 96.0ms | (exp (* 1/3 (- (log -1) (log (/ -1 x))))) |
| 53.0ms | (- (+ (* 1/3 (pow (/ 1 (pow x 2)) 1/3)) (* 5/81 (pow (/ 1 (pow x 8)) 1/3))) (* 1/9 (pow (/ 1 (pow x 5)) 1/3))) |
5 alts after pruning (5 fresh and 0 done)
Merged error: 0.3b
Found 4 expressions with local error:
| 28.8b | (- (cbrt (+ x 1)) (pow x 1/3)) |
| 28.8b | (- (cbrt (+ x 1)) (pow x 1/3)) |
| 28.8b | (- (cbrt (+ x 1)) (pow x 1/3)) |
| 5.1b | (pow x 1/3) |
| 16× | add-sqr-sqrt |
| 10× | add-log-exp |
| 10× | *-un-lft-identity |
| 6× | difference-of-squares |
| 4× | add-cube-cbrt |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 3× | distribute-lft-out-- |
| 3× | flip-- |
| 3× | diff-log |
| 3× | flip3-- |
| 3× | sub-neg |
| 3× | cbrt-prod |
| 1× | unpow1/3 |
| 1× | pow-to-exp |
| 5.0ms | (- (cbrt (+ x 1)) (pow x 1/3)) |
| 5.0ms | (- (cbrt (+ x 1)) (pow x 1/3)) |
| 5.0ms | (- (cbrt (+ x 1)) (pow x 1/3)) |
| 0.0ms | (pow x 1/3) |
| 279.0ms | (pow x 1/3) |
| 144.0ms | (- (cbrt (+ x 1)) (pow x 1/3)) |
| 138.0ms | (- (cbrt (+ x 1)) (pow x 1/3)) |
| 130.0ms | (- (cbrt (+ x 1)) (pow x 1/3)) |
| 303.0ms | (- (+ (* 5/81 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) (pow x 3))) (* 1/3 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) x))) (* 1/9 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) (pow x 2)))) |
| 276.0ms | (- (+ (* 5/81 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) (pow x 3))) (* 1/3 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) x))) (* 1/9 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) (pow x 2)))) |
| 247.0ms | (- (+ (* 5/81 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) (pow x 3))) (* 1/3 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) x))) (* 1/9 (/ (exp (* 1/3 (- (log -1) (log (/ -1 x))))) (pow x 2)))) |
| 206.0ms | (- (+ (* 1/3 x) 1) (+ (* 1/9 (pow x 2)) (pow x 1/3))) |
| 178.0ms | (- (+ (* 1/3 x) 1) (+ (* 1/9 (pow x 2)) (pow x 1/3))) |
5 alts after pruning (4 fresh and 1 done)
Merged error: 0.3b
Found 4 expressions with local error:
| 1.9b | (- (pow (cbrt (+ x 1)) 3) (pow (cbrt x) 3)) |
| 0.7b | (pow (cbrt x) 3) |
| 0.6b | (cbrt x) |
| 0.6b | (cbrt x) |
| 36× | add-sqr-sqrt |
| 18× | cube-prod |
| 18× | unpow-prod-down |
| 16× | *-un-lft-identity |
| 15× | difference-of-squares |
| 6× | add-log-exp |
| 6× | add-cube-cbrt |
| 6× | cbrt-prod |
| 5× | distribute-lft-out-- |
| 5× | add-exp-log |
| 5× | pow1 |
| 4× | add-cbrt-cube |
| 3× | pow1/3 |
| 2× | pow-pow |
| 1× | rem-cube-cbrt |
| 1× | flip-- |
| 1× | pow-exp |
| 1× | unpow3 |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | sub-neg |
| 1× | difference-cubes |
| 1× | pow-to-exp |
| 1× | cube-mult |
| 19.0ms | (- (pow (cbrt (+ x 1)) 3) (pow (cbrt x) 3)) |
| 1.0ms | (pow (cbrt x) 3) |
| 0.0ms | (cbrt x) |
| 0.0ms | (cbrt x) |
| 320.0ms | (pow (cbrt x) 3) |
| 314.0ms | (cbrt x) |
| 268.0ms | (cbrt x) |
| 74.0ms | (- (pow (cbrt (+ x 1)) 3) (pow (cbrt x) 3)) |
| 44.0ms | (/ (exp (pow (cbrt (+ x 1)) 3)) (exp (pow (cbrt x) 3))) |
| 34.0ms | (+ (* (cbrt (+ x 1)) (cbrt (+ x 1))) (+ (* (cbrt x) (cbrt x)) (* (cbrt (+ x 1)) (cbrt x)))) |
| 28.0ms | (- (pow (cbrt (sqrt (+ x 1))) 3) (pow (sqrt (cbrt x)) 3)) |
| 27.0ms | (pow (* (cbrt (cbrt x)) (cbrt (cbrt x))) 3) |
| 27.0ms | (- (pow (sqrt (cbrt (+ x 1))) 3) (pow (sqrt (cbrt x)) 3)) |
5 alts after pruning (4 fresh and 1 done)
Merged error: 0.1b
0% (0.3b remaining)
Error of 0.5b against oracle of 0.2b and baseline of 0.5b
| 1.0s | 1690× | body | 1280 | valid |
| 600.0ms | 7849× | body | 80 | nan |
| 308.0ms | 1223× | body | 640 | valid |
| 277.0ms | 4150× | body | 80 | valid |
| 105.0ms | 617× | body | 320 | valid |
| 76.0ms | 321× | body | 160 | valid |