\[\cos \left(x + \varepsilon\right) - \cos x\]
Test:
NMSE problem 3.3.5
Bits:
128 bits
Bits error versus x
Bits error versus eps
Time: 24.7 s
Input Error: 39.5
Output Error: 24.0
Log:
Profile: 🕒
\(\left(\cos x \cdot \cos \varepsilon - \log \left(e^{\sin x \cdot \sin \varepsilon}\right)\right) - \cos x\)
  1. Started with
    \[\cos \left(x + \varepsilon\right) - \cos x\]
    39.5
  2. Using strategy rm
    39.5
  3. Applied cos-sum to get
    \[\color{red}{\cos \left(x + \varepsilon\right)} - \cos x \leadsto \color{blue}{\left(\cos x \cdot \cos \varepsilon - \sin x \cdot \sin \varepsilon\right)} - \cos x\]
    24.0
  4. Using strategy rm
    24.0
  5. Applied add-log-exp to get
    \[\left(\cos x \cdot \cos \varepsilon - \color{red}{\sin x \cdot \sin \varepsilon}\right) - \cos x \leadsto \left(\cos x \cdot \cos \varepsilon - \color{blue}{\log \left(e^{\sin x \cdot \sin \varepsilon}\right)}\right) - \cos x\]
    24.0

Original test:


(lambda ((x default) (eps default))
  #:name "NMSE problem 3.3.5"
  (- (cos (+ x eps)) (cos x)))