Average Error: 0.0 → 0.0
Time: 2.2s
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 r7248 = 0.5;
        double r7249 = x;
        double r7250 = r7249 * r7249;
        double r7251 = y;
        double r7252 = r7250 - r7251;
        double r7253 = r7248 * r7252;
        return r7253;
}

double f(double x, double y) {
        double r7254 = 0.5;
        double r7255 = x;
        double r7256 = r7255 * r7255;
        double r7257 = y;
        double r7258 = r7256 - r7257;
        double r7259 = r7254 * r7258;
        return r7259;
}

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