Average Error: 0.0 → 0.0
Time: 11.1s
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 r555479 = 0.5;
        double r555480 = x;
        double r555481 = r555480 * r555480;
        double r555482 = y;
        double r555483 = r555481 - r555482;
        double r555484 = r555479 * r555483;
        return r555484;
}

double f(double x, double y) {
        double r555485 = x;
        double r555486 = r555485 * r555485;
        double r555487 = y;
        double r555488 = r555486 - r555487;
        double r555489 = 0.5;
        double r555490 = r555488 * r555489;
        return r555490;
}

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