Average Error: 0.0 → 0.0
Time: 2.5s
Precision: 64
\[\left(x \cdot x + y\right) + y\]
\[{x}^{2} + 2 \cdot y\]
\left(x \cdot x + y\right) + y
{x}^{2} + 2 \cdot y
double f(double x, double y) {
        double r490245 = x;
        double r490246 = r490245 * r490245;
        double r490247 = y;
        double r490248 = r490246 + r490247;
        double r490249 = r490248 + r490247;
        return r490249;
}

double f(double x, double y) {
        double r490250 = x;
        double r490251 = 2.0;
        double r490252 = pow(r490250, r490251);
        double r490253 = y;
        double r490254 = r490251 * r490253;
        double r490255 = r490252 + r490254;
        return r490255;
}

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. Taylor expanded around 0 0.0

    \[\leadsto \color{blue}{{x}^{2} + 2 \cdot y}\]
  3. Final simplification0.0

    \[\leadsto {x}^{2} + 2 \cdot y\]

Reproduce

herbie shell --seed 2019323 
(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))