Average Error: 59.9 → 0.3
Time: 33.9s
Precision: 64
Internal Precision: 1344
\[\sqrt{x - 5} - \sqrt{x - 4}\]
\[\frac{4 - 5}{\sqrt{x - 5} + \sqrt{x - 4}}\]

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 59.9

    \[\sqrt{x - 5} - \sqrt{x - 4}\]
  2. Using strategy rm
  3. Applied flip--59.4

    \[\leadsto \color{blue}{\frac{\sqrt{x - 5} \cdot \sqrt{x - 5} - \sqrt{x - 4} \cdot \sqrt{x - 4}}{\sqrt{x - 5} + \sqrt{x - 4}}}\]
  4. Applied simplify0.3

    \[\leadsto \frac{\color{blue}{4 - 5}}{\sqrt{x - 5} + \sqrt{x - 4}}\]

Runtime

Time bar (total: 33.9s)Debug log

herbie shell --seed '#(2775764126 3555076145 3898259844 1891440260 2599947619 1948460636)' 
(FPCore (x)
  :name "sqrt(x-5)- sqrt(x-4)"
  (- (sqrt (- x 5)) (sqrt (- x 4))))