


Bits error versus N
if N < 14302.326937808648Initial program 0.1
Simplified0.1
rmApplied log1p-udef0.1
Applied diff-log0.1
if 14302.326937808648 < N Initial program 59.5
Simplified59.5
rmApplied log1p-udef59.5
Applied diff-log59.2
Taylor expanded around -inf 0.0
Simplified0.0
Final simplification0.1
herbie shell --seed 2019005 +o rules:numerics
(FPCore (N)
:name "2log (problem 3.3.6)"
(- (log (+ N 1)) (log N)))
Time bar (total: 9.5s)Debug log
1 calls. Slowest were:
| 8.0ms | (- (log (+ N 1)) (log N)) |
1 alts after pruning (1 fresh and 0 done)
Merged error: 30.1b
Found 1 expressions with local error:
| 2.7b | (- (log1p N) (log N)) |
1 calls. Slowest were:
| 4.0ms | (- (log1p N) (log N)) |
1 calls. Slowest were:
| 107.0ms | (- (log1p N) (log N)) |
28 calls. Slowest were:
| 191.0ms | (- (+ (* 1/3 (/ 1 (pow N 3))) (/ 1 N)) (* 1/2 (/ 1 (pow N 2)))) |
| 191.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)))) |
3 alts after pruning (3 fresh and 0 done)
Merged error: 0.1b
Found 2 expressions with local error:
| 2.9b | (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:
| 49.0ms | (log (/ (+ 1 N) N)) |
| 19.0ms | (/ (+ 1 N) N) |
16 calls. Slowest were:
| 206.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)))) |
| 81.0ms | (- N (+ (log N) (* 1/2 (pow N 2)))) |
4 alts after pruning (3 fresh and 1 done)
Merged error: 0.1b
Found 3 expressions with local error:
| 0.3b | (/ 1/3 N) |
| 0.3b | (/ 1 (* N N)) |
| 0.1b | (fma (/ 1 (* N N)) (- (/ 1/3 N) 1/2) (/ 1 N)) |
3 calls. Slowest were:
| 1.0ms | (/ 1 (* N N)) |
| 0.0ms | (/ 1/3 N) |
| 0.0ms | (fma (/ 1 (* N N)) (- (/ 1/3 N) 1/2) (/ 1 N)) |
3 calls. Slowest were:
| 11.0ms | (fma (/ 1 (* N N)) (- (/ 1/3 N) 1/2) (/ 1 N)) |
| 8.0ms | (/ 1 (* N N)) |
| 8.0ms | (/ 1/3 N) |
11 calls. Slowest were:
| 181.0ms | (- (+ (* 1/3 (/ 1 (pow N 3))) (/ 1 N)) (* 1/2 (/ 1 (pow N 2)))) |
| 171.0ms | (- (+ (* 1/3 (/ 1 (pow N 3))) (/ 1 N)) (* 1/2 (/ 1 (pow N 2)))) |
| 144.0ms | (- (+ (/ 1 N) (* 1/3 (/ 1 (pow N 3)))) (* 1/2 (/ 1 (pow N 2)))) |
5 alts after pruning (3 fresh and 2 done)
Merged error: 0.1b
Found 4 expressions with local error:
| 2.9b | (log (/ (+ 1 N) N)) |
| 2.9b | (log (/ (+ 1 N) N)) |
| 2.9b | (log (/ (+ 1 N) N)) |
| 0.3b | (cbrt (* (* (log (/ (+ 1 N) N)) (log (/ (+ 1 N) N))) (log (/ (+ 1 N) N)))) |
4 calls. Slowest were:
| 8.0ms | (cbrt (* (* (log (/ (+ 1 N) N)) (log (/ (+ 1 N) N))) (log (/ (+ 1 N) N)))) |
| 1.0ms | (log (/ (+ 1 N) N)) |
| 1.0ms | (log (/ (+ 1 N) N)) |
4 calls. Slowest were:
| 55.0ms | (cbrt (* (* (log (/ (+ 1 N) N)) (log (/ (+ 1 N) N))) (log (/ (+ 1 N) N)))) |
| 55.0ms | (log (/ (+ 1 N) N)) |
| 54.0ms | (log (/ (+ 1 N) N)) |
| 52.0ms | (log (/ (+ 1 N) N)) |
32 calls. Slowest were:
| 217.0ms | (- (+ (* 1/3 (/ 1 (pow N 3))) (/ 1 N)) (* 1/2 (/ 1 (pow N 2)))) |
| 204.0ms | (- (+ (* 1/3 (/ 1 (pow N 3))) (/ 1 N)) (* 1/2 (/ 1 (pow N 2)))) |
| 197.0ms | (- (+ (* 1/3 (/ 1 (pow N 3))) (/ 1 N)) (* 1/2 (/ 1 (pow N 2)))) |
5 alts after pruning (3 fresh and 2 done)
Merged error: 0.1b
100% (0.0b remaining)
Error of 0.1b against oracle of 0.1b and baseline of 29.5b