Average Error: 0.0 → 0.0
Time: 1.3s
Precision: 64
\[\sqrt{x} + 2\]
\[\sqrt{x} + 2\]
\sqrt{x} + 2
\sqrt{x} + 2
double f(double x) {
        double r1690705 = x;
        double r1690706 = sqrt(r1690705);
        double r1690707 = 2.0;
        double r1690708 = r1690706 + r1690707;
        return r1690708;
}

double f(double x) {
        double r1690709 = x;
        double r1690710 = sqrt(r1690709);
        double r1690711 = 2.0;
        double r1690712 = r1690710 + r1690711;
        return r1690712;
}

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

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

Reproduce

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