Average Error: 0.0 → 0.0
Time: 16.3s
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 r16985 = 0.5;
        double r16986 = x;
        double r16987 = r16986 * r16986;
        double r16988 = y;
        double r16989 = r16987 - r16988;
        double r16990 = r16985 * r16989;
        return r16990;
}

double f(double x, double y) {
        double r16991 = 0.5;
        double r16992 = x;
        double r16993 = r16992 * r16992;
        double r16994 = y;
        double r16995 = r16993 - r16994;
        double r16996 = r16991 * r16995;
        return r16996;
}

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