Average Error: 0.0 → 0.0
Time: 7.9s
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 r409559 = 0.5;
        double r409560 = x;
        double r409561 = r409560 * r409560;
        double r409562 = y;
        double r409563 = r409561 - r409562;
        double r409564 = r409559 * r409563;
        return r409564;
}

double f(double x, double y) {
        double r409565 = x;
        double r409566 = r409565 * r409565;
        double r409567 = y;
        double r409568 = r409566 - r409567;
        double r409569 = 0.5;
        double r409570 = r409568 * r409569;
        return r409570;
}

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 2019162 
(FPCore (x y)
  :name "System.Random.MWC.Distributions:standard from mwc-random-0.13.3.2"
  (* 0.5 (- (* x x) y)))