Average Error: 0.0 → 0.0
Time: 7.7s
Precision: 64
\[\left(x \cdot x + y\right) + y\]
\[\left(x \cdot x + y\right) + y\]
\left(x \cdot x + y\right) + y
\left(x \cdot x + y\right) + y
double f(double x, double y) {
        double r37260251 = x;
        double r37260252 = r37260251 * r37260251;
        double r37260253 = y;
        double r37260254 = r37260252 + r37260253;
        double r37260255 = r37260254 + r37260253;
        return r37260255;
}

double f(double x, double y) {
        double r37260256 = x;
        double r37260257 = r37260256 * r37260256;
        double r37260258 = y;
        double r37260259 = r37260257 + r37260258;
        double r37260260 = r37260259 + r37260258;
        return r37260260;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Target

Original0.0
Target0.0
Herbie0.0
\[\left(y + y\right) + x \cdot x\]

Derivation

  1. Initial program 0.0

    \[\left(x \cdot x + y\right) + y\]
  2. Final simplification0.0

    \[\leadsto \left(x \cdot x + y\right) + y\]

Reproduce

herbie shell --seed 2019165 
(FPCore (x y)
  :name "Data.Random.Distribution.Normal:normalTail from random-fu-0.2.6.2"

  :herbie-target
  (+ (+ y y) (* x x))

  (+ (+ (* x x) y) y))