Average Error: 0.0 → 0.0
Time: 5.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 r423437 = 0.5;
        double r423438 = x;
        double r423439 = r423438 * r423438;
        double r423440 = y;
        double r423441 = r423439 - r423440;
        double r423442 = r423437 * r423441;
        return r423442;
}

double f(double x, double y) {
        double r423443 = 0.5;
        double r423444 = x;
        double r423445 = r423444 * r423444;
        double r423446 = y;
        double r423447 = r423445 - r423446;
        double r423448 = r423443 * r423447;
        return r423448;
}

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