Average Error: 0.0 → 0.0
Time: 3.6s
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 r561546 = x;
        double r561547 = r561546 * r561546;
        double r561548 = y;
        double r561549 = r561547 + r561548;
        double r561550 = r561549 + r561548;
        return r561550;
}

double f(double x, double y) {
        double r561551 = x;
        double r561552 = r561551 * r561551;
        double r561553 = y;
        double r561554 = r561552 + r561553;
        double r561555 = r561554 + r561553;
        return r561555;
}

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