\[\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: 29.5 s
Input Error: 39.4
Output Error: 24.8
Log:
Profile: 🕒
\(\log \left(e^{\left(\cos x \cdot \cos \varepsilon - \sin x \cdot \sin \varepsilon\right) - \cos x}\right)\)
  1. Started with
    \[\cos \left(x + \varepsilon\right) - \cos x\]
    39.4
  2. Using strategy rm
    39.4
  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.7
  4. Using strategy rm
    24.7
  5. Applied add-log-exp to get
    \[\color{red}{\left(\cos x \cdot \cos \varepsilon - \sin x \cdot \sin \varepsilon\right) - \cos x} \leadsto \color{blue}{\log \left(e^{\left(\cos x \cdot \cos \varepsilon - \sin x \cdot \sin \varepsilon\right) - \cos x}\right)}\]
    24.8

Original test:


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