


Bits error versus N
if N < 9955.673000070075Initial program 0.1
Simplified0.1
rmApplied log1p-udef0.1
Applied diff-log0.1
if 9955.673000070075 < N Initial program 59.5
Simplified59.5
Taylor expanded around inf 0.0
Simplified0.0
Final simplification0.0
herbie shell --seed 2019007 +o rules:numerics
(FPCore (N)
:name "2log (problem 3.3.6)"
(- (log (+ N 1)) (log N)))
Time bar (total: 10.0s)Debug log
1 calls. Slowest were:
| 6.0ms | (- (log (+ N 1)) (log N)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 33.0b
Found 1 expressions with local error:
| 2.9b | (- (log1p N) (log N)) |
1 calls. Slowest were:
| 4.0ms | (- (log1p N) (log N)) |
1 calls. Slowest were:
| 87.0ms | (- (log1p N) (log N)) |
28 calls. Slowest were:
| 564.0ms | (- (+ (* 1/3 (/ 1 (pow N 3))) (/ 1 N)) (* 1/2 (/ 1 (pow N 2)))) |
| 156.0ms | (- (+ (* 1/3 (/ 1 (pow N 3))) (/ 1 N)) (* 1/2 (/ 1 (pow N 2)))) |
| 73.0ms | (- N (+ (log N) (* 1/2 (pow N 2)))) |
2 alts after pruning (2 fresh and 0 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 0.4b | (/ 1 (* N N)) |
| 0.4b | (/ 1/3 N) |
| 0.0b | (fma (/ 1 (* N N)) (- (/ 1/3 N) 1/2) (/ 1 N)) |
| 0.0b | (- (/ 1/3 N) 1/2) |
4 calls. Slowest were:
| 3.0ms | (- (/ 1/3 N) 1/2) |
| 1.0ms | (/ 1 (* N N)) |
| 0.0ms | (/ 1/3 N) |
4 calls. Slowest were:
| 15.0ms | (fma (/ 1 (* N N)) (- (/ 1/3 N) 1/2) (/ 1 N)) |
| 15.0ms | (- (/ 1/3 N) 1/2) |
| 8.0ms | (/ 1 (* N N)) |
| 8.0ms | (/ 1/3 N) |
16 calls. Slowest were:
| 236.0ms | (- (+ (* 1/3 (/ 1 (pow N 3))) (/ 1 N)) (* 1/2 (/ 1 (pow N 2)))) |
| 185.0ms | (- (+ (* 1/3 (/ 1 (pow N 3))) (/ 1 N)) (* 1/2 (/ 1 (pow N 2)))) |
| 126.0ms | (- (+ (/ 1 N) (* 1/3 (/ 1 (pow N 3)))) (* 1/2 (/ 1 (pow N 2)))) |
3 alts after pruning (2 fresh and 1 done)
Merged error: 0.0b
Found 2 expressions with local error:
| 3.3b | (log (/ (+ 1 N) N)) |
| 0.0b | (/ (+ 1 N) N) |
2 calls. Slowest were:
| 2.0ms | (/ (+ 1 N) N) |
| 1.0ms | (log (/ (+ 1 N) N)) |
2 calls. Slowest were:
| 38.0ms | (log (/ (+ 1 N) N)) |
| 31.0ms | (/ (+ 1 N) N) |
16 calls. Slowest were:
| 226.0ms | (- (+ (* 1/3 (/ 1 (pow N 3))) (/ 1 N)) (* 1/2 (/ 1 (pow N 2)))) |
| 149.0ms | (- (+ (* 1/3 (/ 1 (pow N 3))) (/ 1 N)) (* 1/2 (/ 1 (pow N 2)))) |
| 71.0ms | (- N (+ (log N) (* 1/2 (pow N 2)))) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0.0b
Found 4 expressions with local error:
| 3.3b | (log (/ (+ 1 N) N)) |
| 3.3b | (log (/ (+ 1 N) N)) |
| 3.3b | (log (/ (+ 1 N) N)) |
| 0.3b | (* (cbrt (log (/ (+ 1 N) N))) (cbrt (log (/ (+ 1 N) N)))) |
4 calls. Slowest were:
| 12.0ms | (* (cbrt (log (/ (+ 1 N) N))) (cbrt (log (/ (+ 1 N) N)))) |
| 2.0ms | (log (/ (+ 1 N) N)) |
| 2.0ms | (log (/ (+ 1 N) N)) |
4 calls. Slowest were:
| 64.0ms | (log (/ (+ 1 N) N)) |
| 61.0ms | (* (cbrt (log (/ (+ 1 N) N))) (cbrt (log (/ (+ 1 N) N)))) |
| 59.0ms | (log (/ (+ 1 N) N)) |
| 40.0ms | (log (/ (+ 1 N) N)) |
52 calls. Slowest were:
| 235.0ms | (- (+ (* 1/3 (/ 1 (pow N 3))) (/ 1 N)) (* 1/2 (/ 1 (pow N 2)))) |
| 224.0ms | (- (+ (* 1/3 (/ 1 (pow N 3))) (/ 1 N)) (* 1/2 (/ 1 (pow N 2)))) |
| 205.0ms | (- (+ (* 1/3 (/ 1 (pow N 3))) (/ 1 N)) (* 1/2 (/ 1 (pow N 2)))) |
4 alts after pruning (2 fresh and 2 done)
Merged error: 0.0b
100% (0.0b remaining)
Error of 0.0b against oracle of 0.0b and baseline of 31.0b