


Bits error versus N
Results
if N < 11887.051868903589Initial program 0.1
rmApplied diff-log0.1
if 11887.051868903589 < N Initial program 59.6
Taylor expanded around -inf 0.0
Simplified0.0
Final simplification0.1
herbie shell --seed 2019022
(FPCore (N)
:name "2log (problem 3.3.6)"
(- (log (+ N 1)) (log N)))
Time bar (total: 15.4s)Debug log
| 25.0ms | 51× | body | 1280 | valid |
| 14.0ms | 270× | body | 80 | nan |
| 14.0ms | 43× | body | 640 | valid |
| 10.0ms | 126× | body | 80 | valid |
| 5.0ms | 22× | body | 320 | valid |
| 2.0ms | 14× | body | 160 | valid |
| 4.0ms | (- (log (+ N 1)) (log N)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 30.2b
Found 2 expressions with local error:
| 3.9b | (- (log (+ N 1)) (log N)) |
| 2.6b | (log (+ N 1)) |
| 7× | *-un-lft-identity |
| 6× | log-prod |
| 6× | add-sqr-sqrt |
| 4× | add-cube-cbrt |
| 4× | log-div |
| 4× | pow1 |
| 3× | add-exp-log |
| 3× | associate--l+ |
| 2× | add-log-exp |
| 2× | distribute-lft-out-- |
| 2× | flip-+ |
| 2× | log-pow |
| 2× | add-cbrt-cube |
| 2× | flip3-+ |
| 2× | associate--l- |
| 1× | difference-of-squares |
| 1× | flip-- |
| 1× | rem-log-exp |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | sub-neg |
| 30.0ms | (- (log (+ N 1)) (log N)) |
| 2.0ms | (log (+ N 1)) |
| 64.0ms | (- (log (+ N 1)) (log N)) |
| 24.0ms | (log (+ N 1)) |
| 251.0ms | (- (+ (/ 1 N) (log -1)) (+ (* 1/2 (/ 1 (pow N 2))) (log (/ -1 N)))) |
| 146.0ms | (- (/ 1 N) (+ (* 1/2 (/ 1 (pow N 2))) (log (/ 1 N)))) |
| 104.0ms | (- (+ (* 1/3 (/ 1 (pow N 3))) (/ 1 N)) (* 1/2 (/ 1 (pow N 2)))) |
| 102.0ms | (- (+ (* 1/3 (/ 1 (pow N 3))) (/ 1 N)) (* 1/2 (/ 1 (pow N 2)))) |
| 101.0ms | (- (+ N (* 1/3 (pow N 3))) (* 1/2 (pow N 2))) |
4 alts after pruning (4 fresh and 0 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 0.5b | (/ 1 (* N N)) |
| 0.4b | (/ 1/3 N) |
| 0.1b | (* (/ 1 (* N N)) (- 1/2 (/ 1/3 N))) |
| 0.0b | (- (/ 1 N) (* (/ 1 (* N N)) (- 1/2 (/ 1/3 N)))) |
| 9× | add-exp-log |
| 7× | pow1 |
| 6× | add-log-exp |
| 6× | add-cube-cbrt |
| 6× | add-cbrt-cube |
| 6× | *-un-lft-identity |
| 6× | add-sqr-sqrt |
| 5× | flip-- |
| 5× | frac-sub |
| 5× | flip3-- |
| 5× | sub-neg |
| 4× | associate--r+ |
| 4× | associate-*r/ |
| 4× | associate-*l* |
| 4× | distribute-lft-in |
| 4× | frac-times |
| 4× | distribute-rgt-in |
| 3× | div-inv |
| 3× | associate-*r* |
| 2× | pow-flip |
| 2× | prod-exp |
| 2× | associate-*l/ |
| 2× | frac-2neg |
| 2× | clear-num |
| 2× | rec-exp |
| 1× | inv-pow |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | pow-prod-down |
| 1× | diff-log |
| 1× | associate-/r* |
| 1× | pow2 |
| 10.0ms | (- (/ 1 N) (* (/ 1 (* N N)) (- 1/2 (/ 1/3 N)))) |
| 9.0ms | (* (/ 1 (* N N)) (- 1/2 (/ 1/3 N))) |
| 1.0ms | (/ 1 (* N N)) |
| 0.0ms | (/ 1/3 N) |
| 43.0ms | (* (/ 1 (* N N)) (- 1/2 (/ 1/3 N))) |
| 16.0ms | (- (/ 1 N) (* (/ 1 (* N N)) (- 1/2 (/ 1/3 N)))) |
| 13.0ms | (/ 1 (* N N)) |
| 12.0ms | (/ 1/3 N) |
| 551.0ms | (* (/ 1 (* N N)) (- (/ 1/3 N))) |
| 449.0ms | (* (/ 1 (* N N)) (- (/ 1/3 N))) |
| 446.0ms | (* (/ 1 (* N N)) (- (/ 1/3 N))) |
| 423.0ms | (* (- (/ 1/3 N)) (/ 1 (* N N))) |
| 416.0ms | (* (- (/ 1/3 N)) (/ 1 (* N N))) |
5 alts after pruning (4 fresh and 1 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 0.5b | (- (+ (/ 1/3 N) 1/2) (/ 1/4 N)) |
| 0.4b | (/ 1/3 N) |
| 0.3b | (/ -1/9 N) |
| 0.2b | (* (/ -1/9 N) (/ 1 N)) |
| 8× | *-un-lft-identity |
| 8× | add-sqr-sqrt |
| 6× | add-log-exp |
| 6× | add-cube-cbrt |
| 6× | add-exp-log |
| 6× | add-cbrt-cube |
| 6× | pow1 |
| 4× | div-inv |
| 4× | associate-*l* |
| 4× | associate-*r* |
| 2× | frac-sub |
| 2× | frac-2neg |
| 2× | clear-num |
| 1× | difference-of-squares |
| 1× | distribute-lft-out-- |
| 1× | flip-- |
| 1× | flip-+ |
| 1× | cbrt-unprod |
| 1× | *-commutative |
| 1× | un-div-inv |
| 1× | associate-*r/ |
| 1× | associate--l+ |
| 1× | prod-exp |
| 1× | associate-*l/ |
| 1× | pow-prod-down |
| 1× | diff-log |
| 1× | flip3-- |
| 1× | flip3-+ |
| 1× | sub-neg |
| 1× | frac-times |
| 28.0ms | (- (+ (/ 1/3 N) 1/2) (/ 1/4 N)) |
| 6.0ms | (* (/ -1/9 N) (/ 1 N)) |
| 0.0ms | (/ 1/3 N) |
| 0.0ms | (/ -1/9 N) |
| 24.0ms | (- (+ (/ 1/3 N) 1/2) (/ 1/4 N)) |
| 19.0ms | (* (/ -1/9 N) (/ 1 N)) |
| 12.0ms | (/ 1/3 N) |
| 12.0ms | (/ -1/9 N) |
| 434.0ms | (* (* (* (/ -1/9 N) (/ -1/9 N)) (/ -1/9 N)) (* (* (/ 1 N) (/ 1 N)) (/ 1 N))) |
| 371.0ms | (* (+ (* (/ 1/3 N) (/ 1/3 N)) (- (* 1/2 1/2) (* (/ 1/3 N) 1/2))) N) |
| 171.0ms | (- (* (+ (pow (/ 1/3 N) 3) (pow 1/2 3)) N) (* (+ (* (/ 1/3 N) (/ 1/3 N)) (- (* 1/2 1/2) (* (/ 1/3 N) 1/2))) 1/4)) |
| 107.0ms | (- (* (- (* (/ 1/3 N) (/ 1/3 N)) (* 1/2 1/2)) N) (* (- (/ 1/3 N) 1/2) 1/4)) |
| 79.0ms | (/ (exp (+ (/ 1/3 N) 1/2)) (exp (/ 1/4 N))) |
5 alts after pruning (3 fresh and 2 done)
Merged error: 0.1b
Found 2 expressions with local error:
| 3.9b | (log (/ (+ N 1) N)) |
| 0.0b | (/ (+ N 1) N) |
| 4× | add-cube-cbrt |
| 4× | *-un-lft-identity |
| 4× | log-prod |
| 4× | add-sqr-sqrt |
| 3× | associate-/l* |
| 3× | add-exp-log |
| 3× | pow1 |
| 2× | associate-/l/ |
| 2× | add-log-exp |
| 2× | div-inv |
| 2× | add-cbrt-cube |
| 1× | flip-+ |
| 1× | log-pow |
| 1× | rem-log-exp |
| 1× | flip3-+ |
| 1× | frac-2neg |
| 1× | clear-num |
| 1× | log-div |
| 3.0ms | (/ (+ N 1) N) |
| 1.0ms | (log (/ (+ N 1) N)) |
| 47.0ms | (log (/ (+ N 1) N)) |
| 24.0ms | (/ (+ N 1) N) |
| 131.0ms | (- (+ (* 1/3 (/ 1 (pow N 3))) (/ 1 N)) (* 1/2 (/ 1 (pow N 2)))) |
| 113.0ms | (- (+ (* 1/3 (/ 1 (pow N 3))) (/ 1 N)) (* 1/2 (/ 1 (pow N 2)))) |
| 57.0ms | (- N (+ (log N) (* 1/2 (pow N 2)))) |
| 14.0ms | (- (* N N) (* 1 1)) |
| 7.0ms | (+ (pow N 3) (pow 1 3)) |
6 alts after pruning (3 fresh and 3 done)
Merged error: 0.1b
99.9% (0.0b remaining)
Error of 0.1b against oracle of 0.0b and baseline of 30.8b
| 972.0ms | 1755× | body | 1280 | valid |
| 816.0ms | 4059× | body | 80 | valid |
| 628.0ms | 8004× | body | 80 | nan |
| 399.0ms | 1213× | body | 640 | valid |
| 190.0ms | 648× | body | 320 | valid |
| 47.0ms | 325× | body | 160 | valid |