Average Error: 0.1 → 0.1
Time: 12.8s
Precision: 64
\[y + \frac{1}{\sqrt{x}}\]
\[y + \frac{1}{\sqrt{x}}\]
y + \frac{1}{\sqrt{x}}
y + \frac{1}{\sqrt{x}}
double f(double y, double x) {
        double r1124422 = y;
        double r1124423 = 1.0;
        double r1124424 = x;
        double r1124425 = sqrt(r1124424);
        double r1124426 = r1124423 / r1124425;
        double r1124427 = r1124422 + r1124426;
        return r1124427;
}

double f(double y, double x) {
        double r1124428 = y;
        double r1124429 = 1.0;
        double r1124430 = x;
        double r1124431 = sqrt(r1124430);
        double r1124432 = r1124429 / r1124431;
        double r1124433 = r1124428 + r1124432;
        return r1124433;
}

Error

Bits error versus y

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.1

    \[y + \frac{1}{\sqrt{x}}\]
  2. Final simplification0.1

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

Reproduce

herbie shell --seed 1 
(FPCore (y x)
  :name "y + 1 / sqrt(x)"
  :precision binary64
  (+ y (/ 1 (sqrt x))))