\[\frac{x - \sin x}{x - \tan x}\]
Test:
NMSE problem 3.4.5
Bits:
128 bits
Bits error versus x
Time: 17.2 s
Input Error: 31.5
Output Error: 0.1
Log:
Profile: 🕒
\(\begin{cases} \frac{x - \sin x}{x - \tan x} & \text{when } x \le -1.2511251203279263 \cdot 10^{-05} \\ \frac{9}{40} \cdot {x}^2 - \left(\frac{27}{2800} \cdot {x}^{4} + \frac{1}{2}\right) & \text{when } x \le 18533971.955403153 \\ \frac{x - \sin x}{x - \tan x} & \text{otherwise} \end{cases}\)

    if x < -1.2511251203279263e-05 or 18533971.955403153 < x

    1. Started with
      \[\frac{x - \sin x}{x - \tan x}\]
      0.2

    if -1.2511251203279263e-05 < x < 18533971.955403153

    1. Started with
      \[\frac{x - \sin x}{x - \tan x}\]
      63.0
    2. Applied taylor to get
      \[\frac{x - \sin x}{x - \tan x} \leadsto \frac{9}{40} \cdot {x}^2 - \left(\frac{27}{2800} \cdot {x}^{4} + \frac{1}{2}\right)\]
      0.0
    3. Taylor expanded around 0 to get
      \[\color{red}{\frac{9}{40} \cdot {x}^2 - \left(\frac{27}{2800} \cdot {x}^{4} + \frac{1}{2}\right)} \leadsto \color{blue}{\frac{9}{40} \cdot {x}^2 - \left(\frac{27}{2800} \cdot {x}^{4} + \frac{1}{2}\right)}\]
      0.0

  1. Removed slow pow expressions

Original test:


(lambda ((x default))
  #:name "NMSE problem 3.4.5"
  (/ (- x (sin x)) (- x (tan x))))