Average Error: 0.0 → 0.0
Time: 1.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 r38872644 = x;
        double r38872645 = r38872644 * r38872644;
        double r38872646 = y;
        double r38872647 = r38872645 + r38872646;
        double r38872648 = r38872647 + r38872646;
        return r38872648;
}

double f(double x, double y) {
        double r38872649 = x;
        double r38872650 = r38872649 * r38872649;
        double r38872651 = y;
        double r38872652 = r38872650 + r38872651;
        double r38872653 = r38872652 + r38872651;
        return r38872653;
}

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