Average Error: 0.0 → 0.0
Time: 14.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 r752209 = 0.5;
        double r752210 = x;
        double r752211 = r752210 * r752210;
        double r752212 = y;
        double r752213 = r752211 - r752212;
        double r752214 = r752209 * r752213;
        return r752214;
}

double f(double x, double y) {
        double r752215 = x;
        double r752216 = r752215 * r752215;
        double r752217 = y;
        double r752218 = r752216 - r752217;
        double r752219 = 0.5;
        double r752220 = r752218 * r752219;
        return r752220;
}

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