



Bits error versus x
Results
| Original | 61.0 |
|---|---|
| Target | 0.3 |
| Herbie | 0.4 |
Initial program 61.0
Taylor expanded around 0 0.4
Simplified0.4
rmApplied associate--l-0.4
Final simplification0.4
herbie shell --seed 2019022
(FPCore (x)
:name "qlog (example 3.10)"
:pre (and (< -1 x) (< x 1))
:herbie-target
(- (+ (+ (+ 1 x) (/ (* x x) 2)) (* 5/12 (pow x 3))))
(/ (log (- 1 x)) (log (+ 1 x))))
Time bar (total: 22.6s)Debug log
| 179.0ms | 126× | body | 1280 | valid |
| 53.0ms | 74× | body | 640 | valid |
| 14.0ms | 37× | body | 320 | valid |
| 8.0ms | 256× | pre | 80 | true |
| 4.0ms | 15× | body | 160 | valid |
| 0.0ms | 4× | body | 80 | valid |
| 4.0ms | (/ (log (- 1 x)) (log (+ 1 x))) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 62.5b
Found 3 expressions with local error:
| 5.2b | (log (+ 1 x)) |
| 5.2b | (log (- 1 x)) |
| 0.0b | (/ (log (- 1 x)) (log (+ 1 x))) |
| 16× | times-frac |
| 15× | add-cube-cbrt |
| 15× | *-un-lft-identity |
| 15× | pow1 |
| 15× | add-sqr-sqrt |
| 12× | log-pow |
| 7× | add-exp-log |
| 6× | log-prod |
| 6× | log-div |
| 5× | add-cbrt-cube |
| 4× | associate-/l* |
| 4× | associate-/r* |
| 3× | add-log-exp |
| 2× | flip-- |
| 2× | rem-log-exp |
| 2× | div-sub |
| 2× | flip3-- |
| 1× | div-inv |
| 1× | flip-+ |
| 1× | div-exp |
| 1× | flip3-+ |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | cbrt-undiv |
| 5.0ms | (/ (log (- 1 x)) (log (+ 1 x))) |
| 1.0ms | (log (+ 1 x)) |
| 1.0ms | (log (- 1 x)) |
| 80.0ms | (/ (log (- 1 x)) (log (+ 1 x))) |
| 40.0ms | (log (+ 1 x)) |
| 24.0ms | (log (- 1 x)) |
| 285.0ms | (- (+ (/ 1 x) (log -1)) (+ (log (/ -1 x)) (* 1/2 (/ 1 (pow x 2))))) |
| 249.0ms | (- (log -1) (+ (log (/ 1 x)) (+ (* 1/2 (/ 1 (pow x 2))) (/ 1 x)))) |
| 202.0ms | (- (+ x (+ (* 1/3 (pow x 3)) (* 1/2 (pow x 2))))) |
| 197.0ms | (- (+ (log (/ -1 x)) (+ (* 1/2 (/ 1 (pow x 2))) (/ 1 x)))) |
| 155.0ms | (- (+ (* 2 (/ 1 (* (pow (log (/ 1 x)) 2) (pow x 2)))) (+ (* 2 (/ 1 (* (log (/ 1 x)) x))) (+ (* 1/2 (/ (log -1) (* (pow (log (/ 1 x)) 2) (pow x 2)))) 1))) (+ (/ (log -1) (* (pow (log (/ 1 x)) 3) (pow x 2))) (+ (/ (log -1) (log (/ 1 x))) (/ (log -1) (* (pow (log (/ 1 x)) 2) x))))) |
2 alts after pruning (1 fresh and 1 done)
Merged error: 0.0b
Found 1 expressions with local error:
| 0.0b | (- (- -1 x) (* x (* x 1/2))) |
| 3× | add-log-exp |
| 2× | associate--l+ |
| 2× | sub-neg |
| 1× | flip-- |
| 1× | add-cube-cbrt |
| 1× | add-exp-log |
| 1× | diff-log |
| 1× | add-cbrt-cube |
| 1× | flip3-- |
| 1× | *-un-lft-identity |
| 1× | pow1 |
| 1× | add-sqr-sqrt |
| 1× | associate--l- |
| 8.0ms | (- (- -1 x) (* x (* x 1/2))) |
| 11.0ms | (- (- -1 x) (* x (* x 1/2))) |
| 139.0ms | (/ (exp (- -1 x)) (exp (* x (* x 1/2)))) |
| 111.0ms | (- (+ x (+ (* 1/2 (pow x 2)) 1))) |
| 91.0ms | (- (+ x (+ (* 1/2 (pow x 2)) 1))) |
| 72.0ms | (- (+ x (+ (* 1/2 (pow x 2)) 1))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.0b
Found 0 expressions with local error:
3 alts after pruning (1 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.0b | (* (cbrt (- (- -1 x) (* x (* x 1/2)))) (cbrt (- (- -1 x) (* x (* x 1/2))))) |
| 0.0b | (cbrt (- (- -1 x) (* x (* x 1/2)))) |
| 0.0b | (cbrt (- (- -1 x) (* x (* x 1/2)))) |
| 0.0b | (cbrt (- (- -1 x) (* x (* x 1/2)))) |
| 18× | cbrt-div |
| 15× | cbrt-prod |
| 11× | add-cube-cbrt |
| 11× | *-un-lft-identity |
| 11× | add-sqr-sqrt |
| 9× | flip-- |
| 9× | flip3-- |
| 9× | pow1 |
| 7× | pow1/3 |
| 6× | add-exp-log |
| 6× | associate-*l* |
| 6× | associate-*r* |
| 4× | add-log-exp |
| 4× | add-cbrt-cube |
| 4× | frac-times |
| 2× | pow-prod-up |
| 2× | associate-*r/ |
| 2× | associate-*l/ |
| 2× | pow-prod-down |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | prod-exp |
| 1× | pow-plus |
| 1× | pow2 |
| 19.0ms | (* (cbrt (- (- -1 x) (* x (* x 1/2)))) (cbrt (- (- -1 x) (* x (* x 1/2))))) |
| 3.0ms | (cbrt (- (- -1 x) (* x (* x 1/2)))) |
| 3.0ms | (cbrt (- (- -1 x) (* x (* x 1/2)))) |
| 2.0ms | (cbrt (- (- -1 x) (* x (* x 1/2)))) |
| 89.0ms | (* (cbrt (- (- -1 x) (* x (* x 1/2)))) (cbrt (- (- -1 x) (* x (* x 1/2))))) |
| 73.0ms | (cbrt (- (- -1 x) (* x (* x 1/2)))) |
| 68.0ms | (cbrt (- (- -1 x) (* x (* x 1/2)))) |
| 60.0ms | (cbrt (- (- -1 x) (* x (* x 1/2)))) |
| 434.0ms | (* (cbrt (- (pow (- -1 x) 3) (pow (* x (* x 1/2)) 3))) (cbrt (- (- -1 x) (* x (* x 1/2))))) |
| 430.0ms | (* (- (- -1 x) (* x (* x 1/2))) (- (- -1 x) (* x (* x 1/2)))) |
| 392.0ms | (* (cbrt (- (pow (- -1 x) 3) (pow (* x (* x 1/2)) 3))) (cbrt (- (* (- -1 x) (- -1 x)) (* (* x (* x 1/2)) (* x (* x 1/2)))))) |
| 374.0ms | (+ (* (exp (* 1/3 (- (log 1/2) (* 2 (log (/ 1 x)))))) (cbrt -1)) (+ (* 2/3 (/ (* (exp (* 1/3 (- (log 1/2) (* 2 (log (/ 1 x)))))) (cbrt -1)) x)) (* 2/9 (/ (* (exp (* 1/3 (- (log 1/2) (* 2 (log (/ 1 x)))))) (cbrt -1)) (pow x 2))))) |
| 306.0ms | (* (cbrt (- (* (- -1 x) (- -1 x)) (* (* x (* x 1/2)) (* x (* x 1/2))))) (cbrt (- (pow (- -1 x) 3) (pow (* x (* x 1/2)) 3)))) |
3 alts after pruning (1 fresh and 2 done)
Merged error: 0.0b
0% (0.4b remaining)
Error of 0.4b against oracle of 0.1b and baseline of 0.4b
| 5.5s | 3438× | body | 1280 | valid |
| 2.0s | 2471× | body | 640 | valid |
| 634.0ms | 1302× | body | 320 | valid |
| 257.0ms | 8000× | pre | 80 | true |
| 197.0ms | 573× | body | 160 | valid |
| 51.0ms | 216× | body | 80 | valid |