\[\frac{1}{x + 1} - \frac{1}{x}\]
Test:
NMSE problem 3.3.1
Bits:
128 bits
Bits error versus x
Time: 11.7 s
Input Error: 14.7
Output Error: 0.2
Log:
Profile: 🕒
\(\begin{cases} \frac{1}{{x}^{3}} - \left(\frac{1}{{x}^2} + \frac{1}{{x}^{4}}\right) & \text{when } x \le -3.2784791869173944 \cdot 10^{-06} \\ \frac{x - \left(1 + x\right)}{x + {x}^2} & \text{when } x \le 504667502.6761971 \\ \frac{\frac{1}{x}}{x \cdot x} - \frac{\frac{1}{x}}{x} & \text{otherwise} \end{cases}\)

    if x < -3.2784791869173944e-06

    1. Started with
      \[\frac{1}{x + 1} - \frac{1}{x}\]
      30.3
    2. Applied taylor to get
      \[\frac{1}{x + 1} - \frac{1}{x} \leadsto \frac{1}{{x}^{3}} - \left(\frac{1}{{x}^2} + \frac{1}{{x}^{4}}\right)\]
      0.6
    3. Taylor expanded around inf to get
      \[\color{red}{\frac{1}{{x}^{3}} - \left(\frac{1}{{x}^2} + \frac{1}{{x}^{4}}\right)} \leadsto \color{blue}{\frac{1}{{x}^{3}} - \left(\frac{1}{{x}^2} + \frac{1}{{x}^{4}}\right)}\]
      0.6

    if -3.2784791869173944e-06 < x < 504667502.6761971

    1. Started with
      \[\frac{1}{x + 1} - \frac{1}{x}\]
      0.2
    2. Using strategy rm
      0.2
    3. Applied frac-sub to get
      \[\color{red}{\frac{1}{x + 1} - \frac{1}{x}} \leadsto \color{blue}{\frac{1 \cdot x - \left(x + 1\right) \cdot 1}{\left(x + 1\right) \cdot x}}\]
      0.0
    4. Applied simplify to get
      \[\frac{\color{red}{1 \cdot x - \left(x + 1\right) \cdot 1}}{\left(x + 1\right) \cdot x} \leadsto \frac{\color{blue}{x - \left(1 + x\right)}}{\left(x + 1\right) \cdot x}\]
      0.0
    5. Applied simplify to get
      \[\frac{x - \left(1 + x\right)}{\color{red}{\left(x + 1\right) \cdot x}} \leadsto \frac{x - \left(1 + x\right)}{\color{blue}{x + {x}^2}}\]
      0.0

    if 504667502.6761971 < x

    1. Started with
      \[\frac{1}{x + 1} - \frac{1}{x}\]
      28.9
    2. Applied taylor to get
      \[\frac{1}{x + 1} - \frac{1}{x} \leadsto \left(\left(\frac{1}{x} + \frac{1}{{x}^{3}}\right) - \frac{1}{{x}^2}\right) - \frac{1}{x}\]
      28.9
    3. Taylor expanded around inf to get
      \[\color{red}{\left(\left(\frac{1}{x} + \frac{1}{{x}^{3}}\right) - \frac{1}{{x}^2}\right)} - \frac{1}{x} \leadsto \color{blue}{\left(\left(\frac{1}{x} + \frac{1}{{x}^{3}}\right) - \frac{1}{{x}^2}\right)} - \frac{1}{x}\]
      28.9
    4. Applied simplify to get
      \[\color{red}{\left(\left(\frac{1}{x} + \frac{1}{{x}^{3}}\right) - \frac{1}{{x}^2}\right) - \frac{1}{x}} \leadsto \color{blue}{\frac{\frac{1}{x}}{x \cdot x} - \frac{\frac{1}{x}}{x}}\]
      0.1

  1. Removed slow pow expressions

Original test:


(lambda ((x default))
  #:name "NMSE problem 3.3.1"
  (- (/ 1 (+ x 1)) (/ 1 x)))