



Bits error versus x
Results
| Original | 9.7 |
|---|---|
| Target | 0.3 |
| Herbie | 0.1 |
Initial program 9.7
rmApplied frac-sub25.3
Applied frac-add24.7
Taylor expanded around inf 0.3
rmApplied associate-/r*0.1
Final simplification0.1
herbie shell --seed 2019010
(FPCore (x)
:name "3frac (problem 3.3.3)"
:herbie-target
(/ 2 (* x (- (* x x) 1)))
(+ (- (/ 1 (+ x 1)) (/ 2 x)) (/ 1 (- x 1))))
Time bar (total: 43.2s)Debug log
| 80.0ms | (+ (- (/ 1 (+ x 1)) (/ 2 x)) (/ 1 (- x 1))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 10.0b
Found 4 expressions with local error:
| 2.6b | (+ (- (/ 1 (+ x 1)) (/ 2 x)) (/ 1 (- x 1))) |
| 0.0b | (/ 1 (- x 1)) |
| 0.0b | (/ 1 (+ x 1)) |
| 0.0b | (- (/ 1 (+ x 1)) (/ 2 x)) |
| 20× | *-un-lft-identity |
| 11× | add-log-exp |
| 8× | div-inv |
| 8× | add-sqr-sqrt |
| 6× | distribute-lft-out-- |
| 6× | distribute-lft-out |
| 6× | add-cube-cbrt |
| 6× | add-exp-log |
| 6× | associate-/r* |
| 6× | pow1 |
| 4× | associate-/r/ |
| 4× | add-cbrt-cube |
| 3× | flip-- |
| 3× | frac-add |
| 3× | flip3-- |
| 2× | inv-pow |
| 2× | pow-flip |
| 2× | flip-+ |
| 2× | frac-sub |
| 2× | diff-log |
| 2× | flip3-+ |
| 2× | frac-2neg |
| 2× | sub-neg |
| 2× | sum-log |
| 2× | clear-num |
| 2× | associate-+l+ |
| 2× | rec-exp |
| 1× | difference-of-squares |
| 1× | associate-+l- |
| 1× | +-commutative |
| 41.0ms | (+ (- (/ 1 (+ x 1)) (/ 2 x)) (/ 1 (- x 1))) |
| 15.0ms | (- (/ 1 (+ x 1)) (/ 2 x)) |
| 2.0ms | (/ 1 (- x 1)) |
| 2.0ms | (/ 1 (+ x 1)) |
| 61.0ms | (+ (- (/ 1 (+ x 1)) (/ 2 x)) (/ 1 (- x 1))) |
| 17.0ms | (- (/ 1 (+ x 1)) (/ 2 x)) |
| 11.0ms | (/ 1 (+ x 1)) |
| 11.0ms | (/ 1 (- x 1)) |
| 533.0ms | (* (+ (/ 1 (+ x 1)) (/ 2 x)) (- x 1)) |
| 436.0ms | (- (+ (* 2 x) (+ (* 2 (pow x 3)) (* 2 (/ 1 x))))) |
| 365.0ms | (+ (* (- (* 1 x) (* (+ x 1) 2)) (- x 1)) (* (* (+ x 1) x) 1)) |
| 274.0ms | (* (* (+ x 1) x) (- x 1)) |
| 253.0ms | (+ (* (- (* (/ 1 (+ x 1)) (/ 1 (+ x 1))) (* (/ 2 x) (/ 2 x))) (- x 1)) (* (+ (/ 1 (+ x 1)) (/ 2 x)) 1)) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 2.6b | (+ (* 1 (- (/ 1 (+ x 1)) (/ 2 x))) (/ 1 (- x 1))) |
| 0.0b | (/ 1 (- x 1)) |
| 0.0b | (/ 1 (+ x 1)) |
| 0.0b | (- (/ 1 (+ x 1)) (/ 2 x)) |
| 10× | *-un-lft-identity |
| 8× | add-log-exp |
| 8× | add-sqr-sqrt |
| 6× | add-cube-cbrt |
| 6× | add-exp-log |
| 6× | associate-/r* |
| 6× | pow1 |
| 4× | div-inv |
| 4× | associate-/r/ |
| 4× | add-cbrt-cube |
| 4× | associate-+l+ |
| 3× | flip-- |
| 3× | associate-*r/ |
| 3× | frac-add |
| 3× | flip3-- |
| 3× | sub-neg |
| 2× | inv-pow |
| 2× | distribute-lft-out-- |
| 2× | distribute-lft-out |
| 2× | pow-flip |
| 2× | flip-+ |
| 2× | frac-sub |
| 2× | flip3-+ |
| 2× | distribute-lft-in |
| 2× | frac-2neg |
| 2× | clear-num |
| 2× | rec-exp |
| 2× | distribute-rgt-in |
| 1× | difference-of-squares |
| 1× | diff-log |
| 1× | sum-log |
| 1× | +-commutative |
| 14.0ms | (+ (* 1 (- (/ 1 (+ x 1)) (/ 2 x))) (/ 1 (- x 1))) |
| 10.0ms | (- (/ 1 (+ x 1)) (/ 2 x)) |
| 2.0ms | (/ 1 (- x 1)) |
| 2.0ms | (/ 1 (+ x 1)) |
| 63.0ms | (+ (* 1 (- (/ 1 (+ x 1)) (/ 2 x))) (/ 1 (- x 1))) |
| 18.0ms | (- (/ 1 (+ x 1)) (/ 2 x)) |
| 11.0ms | (/ 1 (- x 1)) |
| 11.0ms | (/ 1 (+ x 1)) |
| 406.0ms | (* (+ (/ 1 (+ x 1)) (/ 2 x)) (- x 1)) |
| 345.0ms | (- (+ (* 2 x) (+ (* 2 (pow x 3)) (* 2 (/ 1 x))))) |
| 321.0ms | (+ (* (* 1 (- (* 1 x) (* (+ x 1) 2))) (- x 1)) (* (* (+ x 1) x) 1)) |
| 295.0ms | (+ (* (* 1 (- (* (/ 1 (+ x 1)) (/ 1 (+ x 1))) (* (/ 2 x) (/ 2 x)))) (- x 1)) (* (+ (/ 1 (+ x 1)) (/ 2 x)) 1)) |
| 279.0ms | (* (* (+ x 1) x) (- x 1)) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 14.3b | (+ (* (- (* 1 x) (* (+ x 1) 2)) (- x 1)) (* (* (+ x 1) x) 1)) |
| 0.0b | (* (* (+ x 1) x) (- x 1)) |
| 0.0b | (- (* 1 x) (* (+ x 1) 2)) |
| 0.0b | (/ (+ (* (- (* 1 x) (* (+ x 1) 2)) (- x 1)) (* (* (+ x 1) x) 1)) (* (* (+ x 1) x) (- x 1))) |
| 88× | associate-*l/ |
| 32× | frac-add |
| 31× | flip-- |
| 31× | flip3-- |
| 24× | flip-+ |
| 24× | flip3-+ |
| 24× | frac-times |
| 18× | associate-/l/ |
| 12× | associate-*r/ |
| 11× | add-exp-log |
| 11× | add-cbrt-cube |
| 8× | add-log-exp |
| 8× | associate-/r/ |
| 7× | add-cube-cbrt |
| 7× | *-un-lft-identity |
| 7× | add-sqr-sqrt |
| 6× | pow1 |
| 5× | sub-neg |
| 4× | distribute-lft-in |
| 4× | associate-+l+ |
| 4× | distribute-rgt-in |
| 3× | associate-/l* |
| 3× | associate-*r* |
| 3× | times-frac |
| 2× | cbrt-unprod |
| 2× | prod-exp |
| 2× | div-exp |
| 2× | cbrt-undiv |
| 1× | div-inv |
| 1× | *-commutative |
| 1× | pow-prod-down |
| 1× | associate-*l* |
| 1× | diff-log |
| 1× | frac-2neg |
| 1× | sum-log |
| 1× | associate-/r* |
| 1× | clear-num |
| 1× | +-commutative |
| 31.0ms | (/ (+ (* (- (* 1 x) (* (+ x 1) 2)) (- x 1)) (* (* (+ x 1) x) 1)) (* (* (+ x 1) x) (- x 1))) |
| 8.0ms | (+ (* (- (* 1 x) (* (+ x 1) 2)) (- x 1)) (* (* (+ x 1) x) 1)) |
| 7.0ms | (* (* (+ x 1) x) (- x 1)) |
| 2.0ms | (- (* 1 x) (* (+ x 1) 2)) |
| 36.0ms | (* (* (+ x 1) x) (- x 1)) |
| 29.0ms | (/ (+ (* (- (* 1 x) (* (+ x 1) 2)) (- x 1)) (* (* (+ x 1) x) 1)) (* (* (+ x 1) x) (- x 1))) |
| 11.0ms | (- (* 1 x) (* (+ x 1) 2)) |
| 2.0ms | (+ (* (- (* 1 x) (* (+ x 1) 2)) (- x 1)) (* (* (+ x 1) x) 1)) |
| 1.1s | (+ (* (* (- (pow (* 1 x) 3) (pow (* (+ x 1) 2) 3)) (- (pow x 3) (pow 1 3))) (+ (* x x) (- (* 1 1) (* x 1)))) (* (* (+ (* (* 1 x) (* 1 x)) (+ (* (* (+ x 1) 2) (* (+ x 1) 2)) (* (* 1 x) (* (+ x 1) 2)))) (+ (* x x) (+ (* 1 1) (* x 1)))) (* (* (+ (pow x 3) (pow 1 3)) x) 1))) |
| 1.0s | (+ (* (* (- (pow (* 1 x) 3) (pow (* (+ x 1) 2) 3)) (- (pow x 3) (pow 1 3))) (+ (* x x) (- (* 1 1) (* x 1)))) (* (* (+ (* (* 1 x) (* 1 x)) (+ (* (* (+ x 1) 2) (* (+ x 1) 2)) (* (* 1 x) (* (+ x 1) 2)))) (+ (* x x) (+ (* 1 1) (* x 1)))) (* (* (+ (pow x 3) (pow 1 3)) x) 1))) |
| 874.0ms | (+ (* (* (- (pow (* 1 x) 3) (pow (* (+ x 1) 2) 3)) (- (pow x 3) (pow 1 3))) (- x 1)) (* (* (+ (* (* 1 x) (* 1 x)) (+ (* (* (+ x 1) 2) (* (+ x 1) 2)) (* (* 1 x) (* (+ x 1) 2)))) (+ (* x x) (+ (* 1 1) (* x 1)))) (* (* (- (* x x) (* 1 1)) x) 1))) |
| 750.0ms | (+ (* (* (- (pow (* 1 x) 3) (pow (* (+ x 1) 2) 3)) (- (pow x 3) (pow 1 3))) (- x 1)) (* (* (+ (* (* 1 x) (* 1 x)) (+ (* (* (+ x 1) 2) (* (+ x 1) 2)) (* (* 1 x) (* (+ x 1) 2)))) (+ (* x x) (+ (* 1 1) (* x 1)))) (* (* (- (* x x) (* 1 1)) x) 1))) |
| 684.0ms | (+ (pow (* (- (* 1 x) (* (+ x 1) 2)) (- x 1)) 3) (pow (* (* (+ x 1) x) 1) 3)) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.0b
Found 3 expressions with local error:
| 0.2b | (/ 2 (* (* (+ x 1) x) (- x 1))) |
| 0.0b | (* (* (+ x 1) x) (- x 1)) |
| 0.0b | (* (+ x 1) x) |
| 18× | associate-*l/ |
| 8× | associate-/r/ |
| 8× | frac-times |
| 7× | flip-+ |
| 7× | flip3-+ |
| 6× | flip-- |
| 6× | flip3-- |
| 5× | add-cube-cbrt |
| 5× | add-exp-log |
| 5× | add-cbrt-cube |
| 5× | *-un-lft-identity |
| 5× | pow1 |
| 5× | add-sqr-sqrt |
| 4× | associate-*r/ |
| 4× | associate-*l* |
| 3× | add-log-exp |
| 3× | associate-*r* |
| 2× | *-commutative |
| 2× | distribute-lft-in |
| 2× | sub-neg |
| 2× | distribute-rgt-in |
| 1× | div-inv |
| 1× | cbrt-unprod |
| 1× | prod-exp |
| 1× | pow-prod-down |
| 1× | frac-2neg |
| 1× | associate-/r* |
| 1× | clear-num |
| 9.0ms | (* (* (+ x 1) x) (- x 1)) |
| 3.0ms | (* (+ x 1) x) |
| 3.0ms | (/ 2 (* (* (+ x 1) x) (- x 1))) |
| 52.0ms | (* (* (+ x 1) x) (- x 1)) |
| 24.0ms | (/ 2 (* (* (+ x 1) x) (- x 1))) |
| 19.0ms | (* (+ x 1) x) |
| 541.0ms | (* (+ (* x x) (- (* 1 1) (* x 1))) (+ (* x x) (+ (* 1 1) (* x 1)))) |
| 496.0ms | (* (* (- (* x x) (* 1 1)) x) (- (pow x 3) (pow 1 3))) |
| 423.0ms | (- (+ (* 2 x) (+ (* 2 (pow x 3)) (* 2 (/ 1 x))))) |
| 348.0ms | (* (* (+ (pow x 3) (pow 1 3)) x) (- (* x x) (* 1 1))) |
| 297.0ms | (* (* (+ x 1) x) (- x 1)) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.0b
0% (0.0b remaining)
Error of 0.1b against oracle of 0.0b and baseline of 0.1b