Average Error: 0.1 → 0.1
Time: 733.0ms
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 r172 = 0.5;
        double r173 = x;
        double r174 = r173 * r173;
        double r175 = y;
        double r176 = r174 - r175;
        double r177 = r172 * r176;
        return r177;
}

double f(double x, double y) {
        double r178 = 0.5;
        double r179 = x;
        double r180 = r179 * r179;
        double r181 = y;
        double r182 = r180 - r181;
        double r183 = r178 * r182;
        return r183;
}

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.1

    \[0.5 \cdot \left(x \cdot x - y\right)\]
  2. Final simplification0.1

    \[\leadsto 0.5 \cdot \left(x \cdot x - y\right)\]

Reproduce

herbie shell --seed 2020025 +o rules:numerics
(FPCore (x y)
  :name "System.Random.MWC.Distributions:standard from mwc-random-0.13.3.2"
  :precision binary64
  (* 0.5 (- (* x x) y)))