Average Error: 0.0 → 0.0
Time: 2.2s
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 r911101 = x;
        double r911102 = r911101 * r911101;
        double r911103 = y;
        double r911104 = r911102 + r911103;
        double r911105 = r911104 + r911103;
        return r911105;
}

double f(double x, double y) {
        double r911106 = x;
        double r911107 = r911106 * r911106;
        double r911108 = y;
        double r911109 = r911107 + r911108;
        double r911110 = r911109 + r911108;
        return r911110;
}

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