Average Error: 0.0 → 0.0
Time: 2.4s
Precision: 64
\[\sqrt{x - 1}\]
\[\sqrt{x - 1}\]
\sqrt{x - 1}
\sqrt{x - 1}
double f(double x) {
        double r901262 = x;
        double r901263 = 1.0;
        double r901264 = r901262 - r901263;
        double r901265 = sqrt(r901264);
        return r901265;
}

double f(double x) {
        double r901266 = x;
        double r901267 = 1.0;
        double r901268 = r901266 - r901267;
        double r901269 = sqrt(r901268);
        return r901269;
}

Error

Bits error versus x

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[\sqrt{x - 1}\]
  2. Final simplification0.0

    \[\leadsto \sqrt{x - 1}\]

Reproduce

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