Average Error: 0.0 → 0.0
Time: 8.6s
Precision: 64
\[0.5 \cdot \left(x \cdot x - y\right)\]
\[\left(x \cdot x - y\right) \cdot 0.5\]
0.5 \cdot \left(x \cdot x - y\right)
\left(x \cdot x - y\right) \cdot 0.5
double f(double x, double y) {
        double r370366 = 0.5;
        double r370367 = x;
        double r370368 = r370367 * r370367;
        double r370369 = y;
        double r370370 = r370368 - r370369;
        double r370371 = r370366 * r370370;
        return r370371;
}

double f(double x, double y) {
        double r370372 = x;
        double r370373 = r370372 * r370372;
        double r370374 = y;
        double r370375 = r370373 - r370374;
        double r370376 = 0.5;
        double r370377 = r370375 * r370376;
        return r370377;
}

Error

Bits error versus x

Bits error versus y

Try it out

Your Program's Arguments

Results

Enter valid numbers for all inputs

Derivation

  1. Initial program 0.0

    \[0.5 \cdot \left(x \cdot x - y\right)\]
  2. Final simplification0.0

    \[\leadsto \left(x \cdot x - y\right) \cdot 0.5\]

Reproduce

herbie shell --seed 2019163 
(FPCore (x y)
  :name "System.Random.MWC.Distributions:standard from mwc-random-0.13.3.2"
  (* 0.5 (- (* x x) y)))