Average Error: 0.0 → 0.0
Time: 1.3s
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 r937238 = x;
        double r937239 = r937238 * r937238;
        double r937240 = y;
        double r937241 = r937239 + r937240;
        double r937242 = r937241 + r937240;
        return r937242;
}

double f(double x, double y) {
        double r937243 = x;
        double r937244 = 2.0;
        double r937245 = pow(r937243, r937244);
        double r937246 = y;
        double r937247 = r937244 * r937246;
        double r937248 = r937245 + r937247;
        return r937248;
}

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