Average Error: 0.0 → 0.0
Time: 2.4s
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 r2978 = 0.5;
        double r2979 = x;
        double r2980 = r2979 * r2979;
        double r2981 = y;
        double r2982 = r2980 - r2981;
        double r2983 = r2978 * r2982;
        return r2983;
}

double f(double x, double y) {
        double r2984 = 0.5;
        double r2985 = x;
        double r2986 = r2985 * r2985;
        double r2987 = y;
        double r2988 = r2986 - r2987;
        double r2989 = r2984 * r2988;
        return r2989;
}

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