Average Error: 0.0 → 0.0
Time: 5.6s
Precision: 64
\[\sqrt{x} + 1\]
\[\sqrt{x} + 1\]
\sqrt{x} + 1
\sqrt{x} + 1
double f(double x) {
        double r1446144 = x;
        double r1446145 = sqrt(r1446144);
        double r1446146 = 1.0;
        double r1446147 = r1446145 + r1446146;
        return r1446147;
}

double f(double x) {
        double r1446148 = x;
        double r1446149 = sqrt(r1446148);
        double r1446150 = 1.0;
        double r1446151 = r1446149 + r1446150;
        return r1446151;
}

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))