


Bits error versus x
Results
if x < 2.024352565067993e+17Initial program 1.8
rmApplied pow1/31.9
rmApplied flip3--2.0
Taylor expanded around inf 0.2
rmApplied add-cbrt-cube0.2
Applied unpow1/30.2
Applied cbrt-unprod0.2
Simplified0.2
if 2.024352565067993e+17 < x Initial program 61.3
rmApplied pow1/360.5
Taylor expanded around -inf 62.4
Simplified0.6
Final simplification0.4
herbie shell --seed 2019022
(FPCore (x)
:name "2cbrt (problem 3.3.4)"
(- (cbrt (+ x 1)) (cbrt x)))
Time bar (total: 11.4s)Debug log
| 14.0ms | 270× | body | 80 | nan |
| 14.0ms | 50× | body | 1280 | valid |
| 9.0ms | 44× | body | 640 | valid |
| 7.0ms | 126× | body | 80 | valid |
| 3.0ms | 22× | body | 320 | valid |
| 2.0ms | 14× | body | 160 | valid |
| 4.0ms | (- (cbrt (+ x 1)) (cbrt x)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 30.6b
Found 3 expressions with local error:
| 4.0b | (- (cbrt (+ x 1)) (cbrt x)) |
| 0.5b | (cbrt x) |
| 0.3b | (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 |
| 7.0ms | (- (cbrt (+ x 1)) (cbrt x)) |
| 1.0ms | (cbrt (+ x 1)) |
| 0.0ms | (cbrt x) |
| 273.0ms | (cbrt x) |
| 116.0ms | (- (cbrt (+ x 1)) (cbrt x)) |
| 34.0ms | (cbrt (+ x 1)) |
| 249.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))))) |
| 222.0ms | (- (+ (* 1/3 x) 1) (+ (* 1/9 (pow x 2)) (pow x 1/3))) |
| 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)))) |
| 54.0ms | (- (+ (* 1/3 (pow (/ 1 (pow x 2)) 1/3)) (pow (/ 1 x) -1/3)) (* 1/9 (pow (/ 1 (pow x 5)) 1/3))) |
| 51.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))) |
10 alts after pruning (10 fresh and 0 done)
Merged error: 15.1b
Found 3 expressions with local error:
| 30.7b | (- (cbrt (+ x 1)) (pow x 1/3)) |
| 5.1b | (pow x 1/3) |
| 0.3b | (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 |
| 7.0ms | (- (cbrt (+ x 1)) (pow x 1/3)) |
| 0.0ms | (cbrt (+ x 1)) |
| 0.0ms | (pow x 1/3) |
| 270.0ms | (pow x 1/3) |
| 130.0ms | (- (cbrt (+ x 1)) (pow x 1/3)) |
| 46.0ms | (cbrt (+ x 1)) |
| 318.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)))) |
| 201.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)))) |
| 193.0ms | (- (+ (* 1/3 x) 1) (+ (* 1/9 (pow x 2)) (pow x 1/3))) |
| 96.0ms | (exp (* 1/3 (- (log -1) (log (/ -1 x))))) |
| 87.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))) |
6 alts after pruning (6 fresh and 0 done)
Merged error: 0.3b
Found 4 expressions with local error:
| 29.9b | (- (pow (cbrt (+ x 1)) 3) (pow (pow x 1/3) 3)) |
| 5.1b | (pow x 1/3) |
| 5.1b | (pow x 1/3) |
| 5.1b | (pow x 1/3) |
| 34× | add-sqr-sqrt |
| 15× | difference-of-squares |
| 15× | cube-prod |
| 15× | unpow-prod-down |
| 14× | *-un-lft-identity |
| 6× | add-log-exp |
| 6× | cbrt-prod |
| 5× | distribute-lft-out-- |
| 4× | add-cube-cbrt |
| 4× | add-exp-log |
| 4× | add-cbrt-cube |
| 4× | pow1 |
| 3× | unpow1/3 |
| 3× | pow-to-exp |
| 1× | flip-- |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | sub-neg |
| 1× | difference-cubes |
| 10.0ms | (- (pow (cbrt (+ x 1)) 3) (pow (pow x 1/3) 3)) |
| 0.0ms | (pow x 1/3) |
| 0.0ms | (pow x 1/3) |
| 0.0ms | (pow x 1/3) |
| 297.0ms | (pow x 1/3) |
| 257.0ms | (pow x 1/3) |
| 245.0ms | (pow x 1/3) |
| 27.0ms | (- (pow (cbrt (+ x 1)) 3) (pow (pow x 1/3) 3)) |
| 142.0ms | (exp (* 1/3 (- (log -1) (log (/ -1 x))))) |
| 126.0ms | (exp (* 1/3 (- (log -1) (log (/ -1 x))))) |
| 114.0ms | (exp (* 1/3 (- (log -1) (log (/ -1 x))))) |
| 52.0ms | (/ (exp (pow (cbrt (+ x 1)) 3)) (exp (pow (pow x 1/3) 3))) |
| 33.0ms | (- (pow (cbrt (sqrt (+ x 1))) 3) (pow (sqrt (pow x 1/3)) 3)) |
5 alts after pruning (5 fresh and 0 done)
Merged error: 0.3b
Found 4 expressions with local error:
| 5.1b | (pow x 1/3) |
| 5.1b | (pow x 1/3) |
| 5.1b | (pow x 1/3) |
| 0.5b | (* (pow x 1/3) (pow x 1/3)) |
| 8× | add-exp-log |
| 8× | add-cbrt-cube |
| 7× | unpow1/3 |
| 7× | pow-to-exp |
| 6× | add-cube-cbrt |
| 6× | *-un-lft-identity |
| 6× | add-sqr-sqrt |
| 4× | add-log-exp |
| 4× | cbrt-unprod |
| 4× | prod-exp |
| 4× | pow1 |
| 3× | associate-*l* |
| 3× | associate-*r* |
| 1× | pow-prod-up |
| 1× | *-commutative |
| 1× | pow-prod-down |
| 1× | pow2 |
| 6.0ms | (* (pow x 1/3) (pow x 1/3)) |
| 0.0ms | (pow x 1/3) |
| 0.0ms | (pow x 1/3) |
| 0.0ms | (pow x 1/3) |
| 286.0ms | (* (pow x 1/3) (pow x 1/3)) |
| 279.0ms | (pow x 1/3) |
| 249.0ms | (pow x 1/3) |
| 228.0ms | (pow x 1/3) |
| 147.0ms | (exp (* 1/3 (- (log -1) (log (/ -1 x))))) |
| 139.0ms | (exp (* 1/3 (- (log -1) (log (/ -1 x))))) |
| 122.0ms | (exp (* 1/3 (- (log -1) (log (/ -1 x))))) |
| 27.0ms | (* (* (* (pow x 1/3) (pow x 1/3)) (pow x 1/3)) (* (* (pow x 1/3) (pow x 1/3)) (pow x 1/3))) |
| 12.0ms | (+ (* (log x) 1/3) (log (pow x 1/3))) |
6 alts after pruning (6 fresh and 0 done)
Merged error: 0.2b
95.1% (0.1b remaining)
Error of 0.4b against oracle of 0.3b and baseline of 2.3b
| 659.0ms | 1723× | body | 1280 | valid |
| 533.0ms | 8004× | body | 80 | nan |
| 508.0ms | 665× | body | 320 | valid |
| 269.0ms | 1212× | body | 640 | valid |
| 269.0ms | 4065× | body | 80 | valid |
| 72.0ms | 335× | body | 160 | valid |