\[\tan^{-1} \left(N + 1\right) - \tan^{-1} N\]
Test:
NMSE example 3.5
Bits:
128 bits
Bits error versus N
Time: 2.8 s
Input Error: 14.8
Output Error: 0.3
Log:
Profile: 🕒
\(\tan^{-1}_* \frac{1}{1 + \left(N + {N}^2\right)}\)
  1. Started with
    \[\tan^{-1} \left(N + 1\right) - \tan^{-1} N\]
    14.8
  2. Using strategy rm
    14.8
  3. Applied diff-atan to get
    \[\color{red}{\tan^{-1} \left(N + 1\right) - \tan^{-1} N} \leadsto \color{blue}{\tan^{-1}_* \frac{\left(N + 1\right) - N}{1 + \left(N + 1\right) \cdot N}}\]
    13.7
  4. Applied simplify to get
    \[\tan^{-1}_* \frac{\color{red}{\left(N + 1\right) - N}}{1 + \left(N + 1\right) \cdot N} \leadsto \tan^{-1}_* \frac{\color{blue}{1 - 0}}{1 + \left(N + 1\right) \cdot N}\]
    0.3
  5. Applied taylor to get
    \[\tan^{-1}_* \frac{1 - 0}{1 + \left(N + 1\right) \cdot N} \leadsto \tan^{-1}_* \frac{1}{1 + \left(N + {N}^2\right)}\]
    0.3
  6. Taylor expanded around 0 to get
    \[\color{red}{\tan^{-1}_* \frac{1}{1 + \left(N + {N}^2\right)}} \leadsto \color{blue}{\tan^{-1}_* \frac{1}{1 + \left(N + {N}^2\right)}}\]
    0.3

Original test:


(lambda ((N default))
  #:name "NMSE example 3.5"
  (- (atan (+ N 1)) (atan N))
  #:target
  (atan (/ 1 (+ 1 (* N (+ N 1))))))