\[\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: 7.5 s
Input Error: 16.9
Output Error: 17.3
Log:
Profile: 🕒
\(\log_* (1 + (e^{\tan \left(x + \varepsilon\right)} - 1)^*) - \frac{1}{\cot x}\)
  1. Started with
    \[\tan \left(x + \varepsilon\right) - \tan x\]
    16.9
  2. Using strategy rm
    16.9
  3. Applied tan-cotan to get
    \[\tan \left(x + \varepsilon\right) - \color{red}{\tan x} \leadsto \tan \left(x + \varepsilon\right) - \color{blue}{\frac{1}{\cot x}}\]
    17.0
  4. Using strategy rm
    17.0
  5. Applied log1p-expm1-u to get
    \[\color{red}{\tan \left(x + \varepsilon\right)} - \frac{1}{\cot x} \leadsto \color{blue}{\log_* (1 + (e^{\tan \left(x + \varepsilon\right)} - 1)^*)} - \frac{1}{\cot x}\]
    17.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)))))