\[\tan \left(x + \varepsilon\right) - \tan x\]
Test:
NMSE problem 3.3.2
Bits:
128 bits
Bits error versus x
Bits error versus eps
Time: 22.9 s
Input Error: 37.2
Output Error: 37.3
Log:
Profile: 🕒
\(\frac{\frac{{\left(\cos x\right)}^2 - {\left(\cot \left(\varepsilon + x\right) \cdot \sin x\right)}^2}{\cos x + \cot \left(\varepsilon + x\right) \cdot \sin x}}{\cot \left(x + \varepsilon\right) \cdot \cos x}\)
  1. Started with
    \[\tan \left(x + \varepsilon\right) - \tan x\]
    37.2
  2. Using strategy rm
    37.2
  3. Applied tan-quot to get
    \[\tan \left(x + \varepsilon\right) - \color{red}{\tan x} \leadsto \tan \left(x + \varepsilon\right) - \color{blue}{\frac{\sin x}{\cos x}}\]
    37.2
  4. Applied tan-cotan to get
    \[\color{red}{\tan \left(x + \varepsilon\right)} - \frac{\sin x}{\cos x} \leadsto \color{blue}{\frac{1}{\cot \left(x + \varepsilon\right)}} - \frac{\sin x}{\cos x}\]
    37.3
  5. Applied frac-sub to get
    \[\color{red}{\frac{1}{\cot \left(x + \varepsilon\right)} - \frac{\sin x}{\cos x}} \leadsto \color{blue}{\frac{1 \cdot \cos x - \cot \left(x + \varepsilon\right) \cdot \sin x}{\cot \left(x + \varepsilon\right) \cdot \cos x}}\]
    37.3
  6. Applied simplify to get
    \[\frac{\color{red}{1 \cdot \cos x - \cot \left(x + \varepsilon\right) \cdot \sin x}}{\cot \left(x + \varepsilon\right) \cdot \cos x} \leadsto \frac{\color{blue}{\cos x - \cot \left(\varepsilon + x\right) \cdot \sin x}}{\cot \left(x + \varepsilon\right) \cdot \cos x}\]
    37.3
  7. Using strategy rm
    37.3
  8. Applied flip-- to get
    \[\frac{\color{red}{\cos x - \cot \left(\varepsilon + x\right) \cdot \sin x}}{\cot \left(x + \varepsilon\right) \cdot \cos x} \leadsto \frac{\color{blue}{\frac{{\left(\cos x\right)}^2 - {\left(\cot \left(\varepsilon + x\right) \cdot \sin x\right)}^2}{\cos x + \cot \left(\varepsilon + x\right) \cdot \sin x}}}{\cot \left(x + \varepsilon\right) \cdot \cos x}\]
    37.3

Original test:


(lambda ((x default) (eps default))
  #:name "NMSE problem 3.3.2"
  (- (tan (+ x eps)) (tan x))
  #:target
  (/ (sin eps) (* (cos x) (cos (+ x eps)))))