


Bits error versus x
Results
Initial program 29.6
rmApplied flip3--29.6
Taylor expanded around 0 0.6
rmApplied add-sqr-sqrt0.6
Final simplification0.6
herbie shell --seed 2019016 +o rules:numerics
(FPCore (x)
:name "2cbrt (problem 3.3.4)"
(- (cbrt (+ x 1)) (cbrt x)))
Time bar (total: 47.4s)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)) |
| 22× | add-sqr-sqrt |
| 20× | *-un-lft-identity |
| 18× | add-cube-cbrt |
| 18× | prod-diff |
| 16× | cbrt-prod |
| 6× | fma-neg |
| 5× | add-log-exp |
| 3× | log1p-expm1-u |
| 3× | add-exp-log |
| 3× | add-cbrt-cube |
| 3× | pow1 |
| 3× | expm1-log1p-u |
| 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 |
| 8.0ms | (- (cbrt (+ x 1)) (cbrt x)) |
| 1.0ms | (cbrt (+ x 1)) |
| 0.0ms | (cbrt x) |
| 274.0ms | (cbrt x) |
| 121.0ms | (- (cbrt (+ x 1)) (cbrt x)) |
| 38.0ms | (cbrt (+ x 1)) |
| 453.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))))) |
| 357.0ms | (- (+ (* 1/3 x) 1) (+ (* 1/9 (pow x 2)) (pow x 1/3))) |
| 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)))) |
| 94.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))) |
| 84.0ms | (- (+ (* 1/3 x) 1) (* 1/9 (pow x 2))) |
9 alts after pruning (9 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) |
| 187× | prod-diff |
| 147× | add-sqr-sqrt |
| 141× | cube-prod |
| 141× | unpow-prod-down |
| 127× | *-un-lft-identity |
| 117× | add-cube-cbrt |
| 78× | cbrt-prod |
| 30× | unpow3 |
| 30× | cube-mult |
| 17× | fma-neg |
| 15× | difference-of-squares |
| 6× | add-log-exp |
| 5× | distribute-lft-out-- |
| 5× | add-exp-log |
| 5× | pow1 |
| 4× | log1p-expm1-u |
| 4× | add-cbrt-cube |
| 4× | expm1-log1p-u |
| 3× | pow1/3 |
| 2× | pow-pow |
| 1× | rem-cube-cbrt |
| 1× | flip-- |
| 1× | pow-exp |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | sub-neg |
| 1× | difference-cubes |
| 1× | pow-to-exp |
| 21.0ms | (- (pow (cbrt (+ x 1)) 3) (pow (cbrt x) 3)) |
| 2.0ms | (pow (cbrt x) 3) |
| 0.0ms | (cbrt x) |
| 0.0ms | (cbrt x) |
| 355.0ms | (pow (cbrt x) 3) |
| 278.0ms | (cbrt x) |
| 265.0ms | (cbrt x) |
| 106.0ms | (- (pow (cbrt (+ x 1)) 3) (pow (cbrt x) 3)) |
| 528.0ms | (fma (pow (cbrt (* (cbrt (+ x 1)) (cbrt (+ x 1)))) 3) (pow (cbrt (cbrt (+ x 1))) 3) (- (* (pow (sqrt (cbrt x)) 3) (pow (sqrt (cbrt x)) 3)))) |
| 353.0ms | (fma (- (pow (cbrt (cbrt x)) 3)) (pow (* (cbrt (cbrt x)) (cbrt (cbrt x))) 3) (* (pow (cbrt (cbrt x)) 3) (pow (* (cbrt (cbrt x)) (cbrt (cbrt x))) 3))) |
| 353.0ms | (fma (- (pow (cbrt (cbrt x)) 3)) (pow (* (cbrt (cbrt x)) (cbrt (cbrt x))) 3) (* (pow (cbrt (cbrt x)) 3) (pow (* (cbrt (cbrt x)) (cbrt (cbrt x))) 3))) |
| 348.0ms | (fma (- (pow (cbrt (cbrt x)) 3)) (pow (* (cbrt (cbrt x)) (cbrt (cbrt x))) 3) (* (pow (cbrt (cbrt x)) 3) (pow (* (cbrt (cbrt x)) (cbrt (cbrt x))) 3))) |
| 342.0ms | (fma (- (pow (cbrt (cbrt x)) 3)) (pow (* (cbrt (cbrt x)) (cbrt (cbrt x))) 3) (* (pow (cbrt (cbrt x)) 3) (pow (* (cbrt (cbrt x)) (cbrt (cbrt x))) 3))) |
4 alts after pruning (4 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× | log1p-expm1-u |
| 4× | add-cbrt-cube |
| 4× | expm1-log1p-u |
| 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 |
| 7.0ms | (* (cbrt x) (cbrt x)) |
| 0.0ms | (cbrt x) |
| 0.0ms | (cbrt x) |
| 0.0ms | (cbrt x) |
| 303.0ms | (* (cbrt x) (cbrt x)) |
| 298.0ms | (cbrt x) |
| 263.0ms | (cbrt x) |
| 262.0ms | (cbrt x) |
| 9.0ms | (* (pow (pow x 2) 1/3) (pow (cbrt -1) 2)) |
| 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) |
14 alts after pruning (13 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× | log1p-expm1-u |
| 4× | add-cube-cbrt |
| 4× | add-exp-log |
| 4× | pow1/3 |
| 4× | add-cbrt-cube |
| 4× | *-un-lft-identity |
| 4× | pow1 |
| 4× | expm1-log1p-u |
| 4× | add-sqr-sqrt |
| 0.0ms | (cbrt x) |
| 0.0ms | (cbrt x) |
| 0.0ms | (cbrt x) |
| 0.0ms | (cbrt x) |
| 344.0ms | (cbrt x) |
| 306.0ms | (cbrt x) |
| 300.0ms | (cbrt x) |
| 273.0ms | (cbrt x) |
| 8.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)) |
| 4.0ms | (pow (/ 1 x) -1/3) |
15 alts after pruning (13 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) |