Average Error: 0.0 → 0.0
Time: 2.8s
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 r33913887 = x;
        double r33913888 = r33913887 * r33913887;
        double r33913889 = y;
        double r33913890 = r33913888 + r33913889;
        double r33913891 = r33913890 + r33913889;
        return r33913891;
}

double f(double x, double y) {
        double r33913892 = x;
        double r33913893 = r33913892 * r33913892;
        double r33913894 = y;
        double r33913895 = r33913893 + r33913894;
        double r33913896 = r33913895 + r33913894;
        return r33913896;
}

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

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

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