Average Error: 0.0 → 0.0
Time: 9.9s
Precision: 64
\[{a}^{2} + {b}^{2}\]
\[{a}^{2} + {b}^{2}\]
{a}^{2} + {b}^{2}
{a}^{2} + {b}^{2}
double f(double a, double b) {
        double r384357 = a;
        double r384358 = 2.0;
        double r384359 = pow(r384357, r384358);
        double r384360 = b;
        double r384361 = pow(r384360, r384358);
        double r384362 = r384359 + r384361;
        return r384362;
}

double f(double a, double b) {
        double r384363 = a;
        double r384364 = 2.0;
        double r384365 = pow(r384363, r384364);
        double r384366 = b;
        double r384367 = pow(r384366, r384364);
        double r384368 = r384365 + r384367;
        return r384368;
}

Error

Bits error versus a

Bits error versus b

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[{a}^{2} + {b}^{2}\]
  2. Final simplification0.0

    \[\leadsto {a}^{2} + {b}^{2}\]

Reproduce

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