Average Error: 0.0 → 0.0
Time: 3.9s
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 r2895 = 0.5;
        double r2896 = x;
        double r2897 = r2896 * r2896;
        double r2898 = y;
        double r2899 = r2897 - r2898;
        double r2900 = r2895 * r2899;
        return r2900;
}

double f(double x, double y) {
        double r2901 = 0.5;
        double r2902 = x;
        double r2903 = r2902 * r2902;
        double r2904 = y;
        double r2905 = r2903 - r2904;
        double r2906 = r2901 * r2905;
        return r2906;
}

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