\[\frac{1}{x + 1} - \frac{1}{x}\]
Test:
NMSE problem 3.3.1
Bits:
128 bits
Bits error versus x
Time: 3.4 s
Input Error: 5.6
Output Error: 4.7
Log:
Profile: 🕒
\(\frac{x - \left(1 + x\right)}{\left(x + 1\right) \cdot x}\)
  1. Started with
    \[\frac{1}{x + 1} - \frac{1}{x}\]
    5.6
  2. Using strategy rm
    5.6
  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}}\]
    4.7
  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}\]
    4.7
  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}}\]
    4.7
  6. Using strategy rm
    4.7
  7. Applied square-mult to get
    \[\frac{x - \left(1 + x\right)}{x + \color{red}{{x}^2}} \leadsto \frac{x - \left(1 + x\right)}{x + \color{blue}{x \cdot x}}\]
    4.7
  8. Applied distribute-rgt1-in to get
    \[\frac{x - \left(1 + x\right)}{\color{red}{x + x \cdot x}} \leadsto \frac{x - \left(1 + x\right)}{\color{blue}{\left(x + 1\right) \cdot x}}\]
    4.7

Original test:


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