Average Error: 0.0 → 0.0
Time: 7.5s
Precision: 64
\[\sqrt{x} + 1\]
\[\sqrt{x} + 1\]
\sqrt{x} + 1
\sqrt{x} + 1
double f(double x) {
        double r289857 = x;
        double r289858 = sqrt(r289857);
        double r289859 = 1.0;
        double r289860 = r289858 + r289859;
        return r289860;
}

double f(double x) {
        double r289861 = x;
        double r289862 = sqrt(r289861);
        double r289863 = 1.0;
        double r289864 = r289862 + r289863;
        return r289864;
}

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