\[\frac{1}{\sqrt{x}} - \frac{1}{\sqrt{x + 1}}\]
Test:
NMSE example 3.6
Bits:
128 bits
Bits error versus x
Time: 18.1 s
Input Error: 8.4
Output Error: 0.2
Log:
Profile: 🕒
\(\frac{1}{\left(1 + x\right) \cdot \left(\sqrt{x} + \sqrt{\frac{1}{1 + x}} \cdot x\right)}\)
  1. Started with
    \[\frac{1}{\sqrt{x}} - \frac{1}{\sqrt{x + 1}}\]
    8.4
  2. Using strategy rm
    8.4
  3. Applied flip-- to get
    \[\color{red}{\frac{1}{\sqrt{x}} - \frac{1}{\sqrt{x + 1}}} \leadsto \color{blue}{\frac{{\left(\frac{1}{\sqrt{x}}\right)}^2 - {\left(\frac{1}{\sqrt{x + 1}}\right)}^2}{\frac{1}{\sqrt{x}} + \frac{1}{\sqrt{x + 1}}}}\]
    8.4
  4. Applied simplify to get
    \[\frac{\color{red}{{\left(\frac{1}{\sqrt{x}}\right)}^2 - {\left(\frac{1}{\sqrt{x + 1}}\right)}^2}}{\frac{1}{\sqrt{x}} + \frac{1}{\sqrt{x + 1}}} \leadsto \frac{\color{blue}{\frac{1}{x} - \frac{1}{1 + x}}}{\frac{1}{\sqrt{x}} + \frac{1}{\sqrt{x + 1}}}\]
    8.4
  5. Using strategy rm
    8.4
  6. Applied frac-sub to get
    \[\frac{\color{red}{\frac{1}{x} - \frac{1}{1 + x}}}{\frac{1}{\sqrt{x}} + \frac{1}{\sqrt{x + 1}}} \leadsto \frac{\color{blue}{\frac{1 \cdot \left(1 + x\right) - x \cdot 1}{x \cdot \left(1 + x\right)}}}{\frac{1}{\sqrt{x}} + \frac{1}{\sqrt{x + 1}}}\]
    7.5
  7. Applied simplify to get
    \[\frac{\frac{\color{red}{1 \cdot \left(1 + x\right) - x \cdot 1}}{x \cdot \left(1 + x\right)}}{\frac{1}{\sqrt{x}} + \frac{1}{\sqrt{x + 1}}} \leadsto \frac{\frac{\color{blue}{1}}{x \cdot \left(1 + x\right)}}{\frac{1}{\sqrt{x}} + \frac{1}{\sqrt{x + 1}}}\]
    3.0
  8. Applied simplify to get
    \[\frac{\frac{1}{\color{red}{x \cdot \left(1 + x\right)}}}{\frac{1}{\sqrt{x}} + \frac{1}{\sqrt{x + 1}}} \leadsto \frac{\frac{1}{\color{blue}{{x}^2 + x}}}{\frac{1}{\sqrt{x}} + \frac{1}{\sqrt{x + 1}}}\]
    3.0
  9. Using strategy rm
    3.0
  10. Applied add-cube-cbrt to get
    \[\color{red}{\frac{\frac{1}{{x}^2 + x}}{\frac{1}{\sqrt{x}} + \frac{1}{\sqrt{x + 1}}}} \leadsto \color{blue}{{\left(\sqrt[3]{\frac{\frac{1}{{x}^2 + x}}{\frac{1}{\sqrt{x}} + \frac{1}{\sqrt{x + 1}}}}\right)}^3}\]
    3.4
  11. Applied simplify to get
    \[{\color{red}{\left(\sqrt[3]{\frac{\frac{1}{{x}^2 + x}}{\frac{1}{\sqrt{x}} + \frac{1}{\sqrt{x + 1}}}}\right)}}^3 \leadsto {\color{blue}{\left(\sqrt[3]{\frac{\frac{1}{1 + x}}{\frac{x}{\sqrt{x}} + \frac{x}{\sqrt{1 + x}}}}\right)}}^3\]
    0.7
  12. Applied taylor to get
    \[{\left(\sqrt[3]{\frac{\frac{1}{1 + x}}{\frac{x}{\sqrt{x}} + \frac{x}{\sqrt{1 + x}}}}\right)}^3 \leadsto {\left(\sqrt[3]{\frac{1}{\left(\sqrt{x} + \sqrt{\frac{1}{1 + x}} \cdot x\right) \cdot \left(1 + x\right)}}\right)}^3\]
    0.6
  13. Taylor expanded around 0 to get
    \[{\color{red}{\left(\sqrt[3]{\frac{1}{\left(\sqrt{x} + \sqrt{\frac{1}{1 + x}} \cdot x\right) \cdot \left(1 + x\right)}}\right)}}^3 \leadsto {\color{blue}{\left(\sqrt[3]{\frac{1}{\left(\sqrt{x} + \sqrt{\frac{1}{1 + x}} \cdot x\right) \cdot \left(1 + x\right)}}\right)}}^3\]
    0.6
  14. Applied simplify to get
    \[{\left(\sqrt[3]{\frac{1}{\left(\sqrt{x} + \sqrt{\frac{1}{1 + x}} \cdot x\right) \cdot \left(1 + x\right)}}\right)}^3 \leadsto \frac{1}{\left(1 + x\right) \cdot \left(\sqrt{x} + \sqrt{\frac{1}{1 + x}} \cdot x\right)}\]
    0.2

  15. Applied final simplification

  16. Removed slow pow expressions

Original test:


(lambda ((x default))
  #:name "NMSE example 3.6"
  (- (/ 1 (sqrt x)) (/ 1 (sqrt (+ x 1))))
  #:target
  (/ 1 (+ (* (+ x 1) (sqrt x)) (* x (sqrt (+ x 1))))))