Average Error: 0.0 → 0.0
Time: 5.8s
Precision: 64
\[\sqrt{1 + x}\]
\[\sqrt{1 + x}\]
\sqrt{1 + x}
\sqrt{1 + x}
double f(double x) {
        double r31193 = 1.0;
        double r31194 = x;
        double r31195 = r31193 + r31194;
        double r31196 = sqrt(r31195);
        return r31196;
}

double f(double x) {
        double r31197 = 1.0;
        double r31198 = x;
        double r31199 = r31197 + r31198;
        double r31200 = sqrt(r31199);
        return r31200;
}

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{1 + x}\]
  2. Final simplification0.0

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

Reproduce

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