


Bits error versus x
Results
Initial program 29.6
rmApplied flip3--29.6
Taylor expanded around inf 0.6
rmApplied add-sqr-sqrt0.6
Final simplification0.6
herbie shell --seed 2019016
(FPCore (x)
:name "2cbrt (problem 3.3.4)"
(- (cbrt (+ x 1)) (cbrt x)))
Time bar (total: 11.2s)Debug log
| 573× | (pre true 80) |
| 316× | (body nan 80) |
| 138× | (body real 80) |
| 60× | (body real 1280) |
| 39× | (body real 640) |
| 11× | (body real 320) |
| 9× | (body real 160) |
| 7.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.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 |
| 10.0ms | (- (cbrt (+ x 1)) (cbrt x)) |
| 1.0ms | (cbrt (+ x 1)) |
| 0.0ms | (cbrt x) |
| 245.0ms | (cbrt x) |
| 109.0ms | (- (cbrt (+ x 1)) (cbrt x)) |
| 49.0ms | (cbrt (+ x 1)) |
| 220.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))))) |
| 216.0ms | (- (+ (* 1/3 x) 1) (+ (* 1/9 (pow x 2)) (pow x 1/3))) |
| 181.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)))) |
| 82.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))) |
| 67.0ms | (- (+ (* 1/3 (pow (/ 1 (pow x 2)) 1/3)) (pow (/ 1 x) -1/3)) (* 1/9 (pow (/ 1 (pow x 5)) 1/3))) |
7 alts after pruning (7 fresh and 0 done)
Merged error: 16.4b
Found 4 expressions with local error:
| 1.7b | (- (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 |
| 16.0ms | (- (pow (cbrt (+ x 1)) 3) (pow (cbrt x) 3)) |
| 1.0ms | (pow (cbrt x) 3) |
| 0.0ms | (cbrt x) |
| 0.0ms | (cbrt x) |
| 308.0ms | (pow (cbrt x) 3) |
| 305.0ms | (cbrt x) |
| 248.0ms | (cbrt x) |
| 72.0ms | (- (pow (cbrt (+ x 1)) 3) (pow (cbrt x) 3)) |
| 31.0ms | (/ (exp (pow (cbrt (+ x 1)) 3)) (exp (pow (cbrt x) 3))) |
| 25.0ms | (- (pow (cbrt (sqrt (+ x 1))) 3) (pow (sqrt (cbrt x)) 3)) |
| 25.0ms | (- (pow (cbrt (sqrt (+ x 1))) 3) (pow (sqrt (cbrt x)) 3)) |
| 25.0ms | (- (sqrt (pow (cbrt (+ x 1)) 3)) (pow (sqrt (cbrt x)) 3)) |
| 20.0ms | (- (pow (sqrt (cbrt (+ x 1))) 3) (sqrt (pow (cbrt x) 3))) |
5 alts after pruning (5 fresh and 0 done)
Merged error: 0.4b
Found 4 expressions with local error:
| 0.6b | (cbrt x) |
| 0.6b | (cbrt x) |
| 0.6b | (cbrt x) |
| 0.5b | (* (cbrt x) (cbrt x)) |
| 9× | pow1 |
| 7× | pow1/3 |
| 6× | add-cube-cbrt |
| 6× | add-exp-log |
| 6× | *-un-lft-identity |
| 6× | add-sqr-sqrt |
| 4× | add-log-exp |
| 4× | add-cbrt-cube |
| 3× | associate-*l* |
| 3× | associate-*r* |
| 2× | pow-prod-up |
| 2× | pow-prod-down |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | pow-plus |
| 1× | pow2 |
| 3.0ms | (* (cbrt x) (cbrt x)) |
| 0.0ms | (cbrt x) |
| 0.0ms | (cbrt x) |
| 0.0ms | (cbrt x) |
| 339.0ms | (* (cbrt x) (cbrt x)) |
| 312.0ms | (cbrt x) |
| 312.0ms | (cbrt x) |
| 212.0ms | (cbrt x) |
| 16.0ms | (* (pow (pow x 2) 1/3) (pow (cbrt -1) 2)) |
| 8.0ms | (* (pow (* x -1) 1/3) (cbrt -1)) |
| 8.0ms | (* (pow (* x -1) 1/3) (cbrt -1)) |
| 8.0ms | (* (pow (* x -1) 1/3) (cbrt -1)) |
| 3.0ms | (pow (/ 1 x) -1/3) |
16 alts after pruning (15 fresh and 1 done)
Merged error: 0.3b
Found 4 expressions with local error:
| 0.6b | (cbrt x) |
| 0.6b | (cbrt x) |
| 0.6b | (cbrt x) |
| 0.6b | (cbrt x) |
| 4× | add-log-exp |
| 4× | add-cube-cbrt |
| 4× | add-exp-log |
| 4× | pow1/3 |
| 4× | add-cbrt-cube |
| 4× | *-un-lft-identity |
| 4× | pow1 |
| 4× | add-sqr-sqrt |
| 0.0ms | (cbrt x) |
| 0.0ms | (cbrt x) |
| 0.0ms | (cbrt x) |
| 0.0ms | (cbrt x) |
| 329.0ms | (cbrt x) |
| 324.0ms | (cbrt x) |
| 303.0ms | (cbrt x) |
| 277.0ms | (cbrt x) |
| 7.0ms | (* (pow (* x -1) 1/3) (cbrt -1)) |
| 5.0ms | (* (pow (* x -1) 1/3) (cbrt -1)) |
| 5.0ms | (* (pow (* x -1) 1/3) (cbrt -1)) |
| 5.0ms | (* (pow (* x -1) 1/3) (cbrt -1)) |
| 2.0ms | (pow (/ 1 x) -1/3) |
17 alts after pruning (15 fresh and 2 done)
Merged error: 0.2b
0% (0.3b remaining)
Error of 0.6b against oracle of 0.3b and baseline of 0.6b
| 16094× | (pre true 80) |
| 8093× | (body nan 80) |
| 4124× | (body real 80) |
| 1740× | (body real 1280) |
| 1213× | (body real 640) |
| 610× | (body real 320) |
| 314× | (body real 160) |