Average Error: 0.2 → 0.4
Time: 21.8s
Precision: 64
Internal Precision: 576
\[\frac{1 + \sqrt{x}}{\sqrt{x} + \sqrt{y}}\]
\[\sqrt{\frac{1 + \sqrt{x}}{\sqrt{x} + \sqrt{y}}} \cdot \sqrt{\frac{1 + \sqrt{x}}{\sqrt{x} + \sqrt{y}}}\]

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.2

    \[\frac{1 + \sqrt{x}}{\sqrt{x} + \sqrt{y}}\]
  2. Using strategy rm
  3. Applied add-sqr-sqrt0.4

    \[\leadsto \color{blue}{\sqrt{\frac{1 + \sqrt{x}}{\sqrt{x} + \sqrt{y}}} \cdot \sqrt{\frac{1 + \sqrt{x}}{\sqrt{x} + \sqrt{y}}}}\]
  4. Final simplification0.4

    \[\leadsto \sqrt{\frac{1 + \sqrt{x}}{\sqrt{x} + \sqrt{y}}} \cdot \sqrt{\frac{1 + \sqrt{x}}{\sqrt{x} + \sqrt{y}}}\]

Runtime

Time bar (total: 21.8s)Debug log

herbie shell --seed '#(2775764126 3555076145 3898259844 1891440260 2599947619 1948460636)' 
(FPCore (x y)
  :name "(1+sqrt(x))/(sqrt(x)+sqrt(y))"
  (/ (+ 1 (sqrt x)) (+ (sqrt x) (sqrt y))))