Average Error: 0.0 → 0.0
Time: 7.9s
Precision: 64
\[\sqrt{x} - 1\]
\[\sqrt{x} - 1\]
\sqrt{x} - 1
\sqrt{x} - 1
double f(double x) {
        double r31315878 = x;
        double r31315879 = sqrt(r31315878);
        double r31315880 = 1.0;
        double r31315881 = r31315879 - r31315880;
        return r31315881;
}

double f(double x) {
        double r31315882 = x;
        double r31315883 = sqrt(r31315882);
        double r31315884 = 1.0;
        double r31315885 = r31315883 - r31315884;
        return r31315885;
}

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"
  (- (sqrt x) 1.0))