Error: 29.7 → 0.2
Time: 7.1s
Precision: 64
Ground Truth: 128
\[\sqrt{x + 1} - \sqrt{x}\]
\[\frac{1}{\sqrt{x + 1} + \sqrt{x}}\]

Error

Bits error versus x

Derivation

  1. Initial program 29.7

    \[\sqrt{x + 1} - \sqrt{x}\]
  2. Using strategy rm
  3. Applied flip-- 29.6

    \[\leadsto \color{blue}{\frac{{\left(\sqrt{x + 1}\right)}^2 - {\left(\sqrt{x}\right)}^2}{\sqrt{x + 1} + \sqrt{x}}}\]
  4. Applied simplify 0.2

    \[\leadsto \frac{\color{blue}{1}}{\sqrt{x + 1} + \sqrt{x}}\]
  5. Removed slow pow expressions

Runtime

Total time: 7.1s Debug log

Please report a bug with the following info:

herbie --seed '#(920276652 2427409097 1120403124 769549425 4279090518 2080865280)'
(FPCore (x)
  :name "NMSE example 3.1"
  
  :target
  (/ 1 (+ (sqrt (+ x 1)) (sqrt x)))(- (sqrt (+ x 1)) (sqrt x)))