Average Error: 0.0 → 0.0
Time: 7.5s
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 r10112 = 0.5;
        double r10113 = x;
        double r10114 = r10113 * r10113;
        double r10115 = y;
        double r10116 = r10114 - r10115;
        double r10117 = r10112 * r10116;
        return r10117;
}

double f(double x, double y) {
        double r10118 = 0.5;
        double r10119 = x;
        double r10120 = r10119 * r10119;
        double r10121 = y;
        double r10122 = r10120 - r10121;
        double r10123 = r10118 * r10122;
        return r10123;
}

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