Average Error: 0.0 → 0.0
Time: 6.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 r556764 = x;
        double r556765 = r556764 * r556764;
        double r556766 = y;
        double r556767 = r556765 + r556766;
        double r556768 = r556767 + r556766;
        return r556768;
}

double f(double x, double y) {
        double r556769 = x;
        double r556770 = r556769 * r556769;
        double r556771 = y;
        double r556772 = r556770 + r556771;
        double r556773 = r556772 + r556771;
        return r556773;
}

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