Average Error: 0.0 → 0.0
Time: 1.1s
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 r734096 = x;
        double r734097 = r734096 * r734096;
        double r734098 = y;
        double r734099 = r734097 + r734098;
        double r734100 = r734099 + r734098;
        return r734100;
}

double f(double x, double y) {
        double r734101 = x;
        double r734102 = r734101 * r734101;
        double r734103 = y;
        double r734104 = r734102 + r734103;
        double r734105 = r734104 + r734103;
        return r734105;
}

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 2020062 
(FPCore (x y)
  :name "Data.Random.Distribution.Normal:normalTail from random-fu-0.2.6.2"
  :precision binary64

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

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