Error: 63.3 → 0.3
Time: 47.0s
Precision: 64
Ground Truth: 128
\[\left(\left(n + 1\right) \cdot \log \left(n + 1\right) - n \cdot \log n\right) - 1\]
\[\log \left(n + 1\right) \cdot \left(n + 1\right) - \left(\log n \cdot \left(-n\right) + 1\right)\]

Error

Bits error versus n

Derivation

  1. Initial program 63.3

    \[\left(\left(n + 1\right) \cdot \log \left(n + 1\right) - n \cdot \log n\right) - 1\]
  2. Applied taylor 0.3

    \[\leadsto \left(\left(n + 1\right) \cdot \log \left(n + 1\right) - -1 \cdot \left(n \cdot \log n\right)\right) - 1\]
  3. Taylor expanded around inf 0.3

    \[\leadsto \left(\left(n + 1\right) \cdot \log \left(n + 1\right) - \color{blue}{-1 \cdot \left(n \cdot \log n\right)}\right) - 1\]
  4. Applied simplify 0.3

    \[\leadsto \color{blue}{\log \left(n + 1\right) \cdot \left(n + 1\right) - \left(\log n \cdot \left(-n\right) + 1\right)}\]
  5. Removed slow pow expressions

Runtime

Total time: 47.0s Debug log

Please report a bug with the following info:

herbie --seed '#(3629771219 4018932771 3576004080 4147927387 2354753736 3700015609)'
(FPCore (n)
  :name "NMSE example 3.8"
  
  :target
  (- (log (+ n 1)) (- (/ 1 (* 2 n)) (- (/ 1 (* 3 (sqr n))) (/ 4 (pow n 3)))))(- (- (* (+ n 1) (log (+ n 1))) (* n (log n))) 1))