Average Error: 0.0 → 0.0
Time: 16.4s
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 r513986 = 0.5;
        double r513987 = x;
        double r513988 = r513987 * r513987;
        double r513989 = y;
        double r513990 = r513988 - r513989;
        double r513991 = r513986 * r513990;
        return r513991;
}

double f(double x, double y) {
        double r513992 = x;
        double r513993 = r513992 * r513992;
        double r513994 = y;
        double r513995 = r513993 - r513994;
        double r513996 = 0.5;
        double r513997 = r513995 * r513996;
        return r513997;
}

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