Average Error: 0.0 → 0.0
Time: 5.5s
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 r560956 = x;
        double r560957 = r560956 * r560956;
        double r560958 = y;
        double r560959 = r560957 + r560958;
        double r560960 = r560959 + r560958;
        return r560960;
}

double f(double x, double y) {
        double r560961 = x;
        double r560962 = r560961 * r560961;
        double r560963 = y;
        double r560964 = r560962 + r560963;
        double r560965 = r560964 + r560963;
        return r560965;
}

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 2019347 +o rules:numerics
(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))