Average Error: 0.0 → 0.0
Time: 3.7s
Precision: 64
\[0.5 \cdot \left(x \cdot x - y\right)\]
\[0.5 \cdot \left(x \cdot x - y\right)\]
0.5 \cdot \left(x \cdot x - y\right)
0.5 \cdot \left(x \cdot x - y\right)
double f(double x, double y) {
        double r9708 = 0.5;
        double r9709 = x;
        double r9710 = r9709 * r9709;
        double r9711 = y;
        double r9712 = r9710 - r9711;
        double r9713 = r9708 * r9712;
        return r9713;
}

double f(double x, double y) {
        double r9714 = 0.5;
        double r9715 = x;
        double r9716 = r9715 * r9715;
        double r9717 = y;
        double r9718 = r9716 - r9717;
        double r9719 = r9714 * r9718;
        return r9719;
}

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 0.5 \cdot \left(x \cdot x - y\right)\]

Reproduce

herbie shell --seed 2019298 
(FPCore (x y)
  :name "System.Random.MWC.Distributions:standard from mwc-random-0.13.3.2"
  :precision binary64
  (* 0.5 (- (* x x) y)))