Average Error: 0.0 → 0.0
Time: 3.2s
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 r135706 = 0.5;
        double r135707 = x;
        double r135708 = r135707 * r135707;
        double r135709 = y;
        double r135710 = r135708 - r135709;
        double r135711 = r135706 * r135710;
        return r135711;
}

double f(double x, double y) {
        double r135712 = x;
        double r135713 = r135712 * r135712;
        double r135714 = y;
        double r135715 = r135713 - r135714;
        double r135716 = 0.5;
        double r135717 = r135715 * r135716;
        return r135717;
}

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