Average Error: 29.5 → 0.0
Time: 24.6s
Precision: 64
Internal Precision: 1600
\[\log \left(N + 1\right) - \log N\]
\[\log_* (1 + \frac{1}{N})\]

Error

Bits error versus N

Derivation

  1. Initial program 29.5

    \[\log \left(N + 1\right) - \log N\]
  2. Using strategy rm
  3. Applied diff-log29.4

    \[\leadsto \color{blue}{\log \left(\frac{N + 1}{N}\right)}\]
  4. Taylor expanded around 0 29.4

    \[\leadsto \log \color{blue}{\left(1 + \frac{1}{N}\right)}\]
  5. Applied simplify0.0

    \[\leadsto \color{blue}{\log_* (1 + \frac{1}{N})}\]

Runtime

Time bar (total: 24.6s)Debug logProfile

herbie shell --seed '#(1072107073 2127697367 3936270018 2300570620 2134894798 4023771849)' +o rules:numerics
(FPCore (N)
  :name "2log (problem 3.3.6)"
  (- (log (+ N 1)) (log N)))