


Bits error versus x
Results
Initial program 30.0
rmApplied flip3--30.0
Taylor expanded around inf 0.6
rmApplied add-sqr-sqrt0.6
Taylor expanded around 0 1.8
Simplified0.6
Final simplification0.6
herbie shell --seed 2019010 +o rules:numerics
(FPCore (x)
:name "2cbrt (problem 3.3.4)"
(- (cbrt (+ x 1)) (cbrt x)))
Time bar (total: 46.6s)Debug log
| 4.0ms | (- (cbrt (+ x 1)) (cbrt x)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 25.8b
Found 3 expressions with local error:
| 3.0b | (- (cbrt (+ x 1)) (cbrt x)) |
| 0.6b | (cbrt x) |
| 0.2b | (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 |
| 7.0ms | (- (cbrt (+ x 1)) (cbrt x)) |
| 1.0ms | (cbrt (+ x 1)) |
| 0.0ms | (cbrt x) |
| 294.0ms | (cbrt x) |
| 124.0ms | (- (cbrt (+ x 1)) (cbrt x)) |
| 32.0ms | (cbrt (+ x 1)) |
| 295.0ms | (- (+ (* 1/3 x) 1) (+ (* 1/9 (pow x 2)) (pow x 1/3))) |
| 293.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))))) |
| 206.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)))) |
| 89.0ms | (- (+ (* 1/3 x) 1) (* 1/9 (pow x 2))) |
| 64.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: 11.4b
Found 4 expressions with local error:
| 2.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 |
| 17.0ms | (- (pow (cbrt (+ x 1)) 3) (pow (cbrt x) 3)) |
| 1.0ms | (pow (cbrt x) 3) |
| 0.0ms | (cbrt x) |
| 0.0ms | (cbrt x) |
| 370.0ms | (pow (cbrt x) 3) |
| 300.0ms | (cbrt x) |
| 272.0ms | (cbrt x) |
| 58.0ms | (- (pow (cbrt (+ x 1)) 3) (pow (cbrt x) 3)) |
| 587.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))) |
| 339.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))) |
| 335.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))) |
| 325.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))) |
| 323.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))) |
5 alts after pruning (5 fresh and 0 done)
Merged error: 0.3b
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 |
| 4.0ms | (* (cbrt x) (cbrt x)) |
| 0.0ms | (cbrt x) |
| 0.0ms | (cbrt x) |
| 0.0ms | (cbrt x) |
| 278.0ms | (cbrt x) |
| 272.0ms | (cbrt x) |
| 259.0ms | (* (cbrt x) (cbrt x)) |
| 249.0ms | (cbrt x) |
| 12.0ms | (* (pow (* x -1) 1/3) (cbrt -1)) |
| 10.0ms | (* (pow (* x -1) 1/3) (cbrt -1)) |
| 9.0ms | (* (pow (* x -1) 1/3) (cbrt -1)) |
| 9.0ms | (* (pow (pow x 2) 1/3) (pow (cbrt -1) 2)) |
| 4.0ms | (pow (/ 1 x) -1/3) |
9 alts after pruning (9 fresh and 0 done)
Merged error: 0.2b
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) |
| 295.0ms | (cbrt x) |
| 289.0ms | (cbrt x) |
| 274.0ms | (cbrt x) |
| 270.0ms | (cbrt x) |
| 9.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)) |
| 8.0ms | (* (pow (* x -1) 1/3) (cbrt -1)) |
| 3.0ms | (pow (/ 1 x) -1/3) |
13 alts after pruning (13 fresh and 0 done)
Merged error: 0.2b
0% (0.3b remaining)
Error of 0.6b against oracle of 0.3b and baseline of 0.6b