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 r728694 = x;
        double r728695 = r728694 * r728694;
        double r728696 = y;
        double r728697 = r728695 + r728696;
        double r728698 = r728697 + r728696;
        return r728698;
}

double f(double x, double y) {
        double r728699 = x;
        double r728700 = r728699 * r728699;
        double r728701 = y;
        double r728702 = r728700 + r728701;
        double r728703 = r728702 + r728701;
        return r728703;
}

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