Average Error: 0.0 → 0.0
Time: 5.8s
Precision: 64
\[{x}^{2} + 1\]
\[{x}^{2} + 1\]
{x}^{2} + 1
{x}^{2} + 1
double f(double x) {
        double r1112760 = x;
        double r1112761 = 2.0;
        double r1112762 = pow(r1112760, r1112761);
        double r1112763 = 1.0;
        double r1112764 = r1112762 + r1112763;
        return r1112764;
}

double f(double x) {
        double r1112765 = x;
        double r1112766 = 2.0;
        double r1112767 = pow(r1112765, r1112766);
        double r1112768 = 1.0;
        double r1112769 = r1112767 + r1112768;
        return r1112769;
}

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

    \[{x}^{2} + 1\]
  2. Final simplification0.0

    \[\leadsto {x}^{2} + 1\]

Reproduce

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