Average Error: 0.0 → 0.0
Time: 10.6s
Precision: 64
\[\frac{1}{x} + 2 \cdot \sqrt{x}\]
\[\frac{1}{x} + 2 \cdot \sqrt{x}\]
\frac{1}{x} + 2 \cdot \sqrt{x}
\frac{1}{x} + 2 \cdot \sqrt{x}
double f(double x) {
        double r1490456 = 1.0;
        double r1490457 = x;
        double r1490458 = r1490456 / r1490457;
        double r1490459 = 2.0;
        double r1490460 = sqrt(r1490457);
        double r1490461 = r1490459 * r1490460;
        double r1490462 = r1490458 + r1490461;
        return r1490462;
}

double f(double x) {
        double r1490463 = 1.0;
        double r1490464 = x;
        double r1490465 = r1490463 / r1490464;
        double r1490466 = 2.0;
        double r1490467 = sqrt(r1490464);
        double r1490468 = r1490466 * r1490467;
        double r1490469 = r1490465 + r1490468;
        return r1490469;
}

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

    \[\frac{1}{x} + 2 \cdot \sqrt{x}\]
  2. Final simplification0.0

    \[\leadsto \frac{1}{x} + 2 \cdot \sqrt{x}\]

Reproduce

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