Average Error: 0.0 → 0.0
Time: 9.9s
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 r539744 = x;
        double r539745 = r539744 * r539744;
        double r539746 = y;
        double r539747 = r539745 + r539746;
        double r539748 = r539747 + r539746;
        return r539748;
}

double f(double x, double y) {
        double r539749 = x;
        double r539750 = r539749 * r539749;
        double r539751 = y;
        double r539752 = r539750 + r539751;
        double r539753 = r539752 + r539751;
        return r539753;
}

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