Average Error: 0.0 → 0.0
Time: 29.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 r15355 = 0.5;
        double r15356 = x;
        double r15357 = r15356 * r15356;
        double r15358 = y;
        double r15359 = r15357 - r15358;
        double r15360 = r15355 * r15359;
        return r15360;
}

double f(double x, double y) {
        double r15361 = 0.5;
        double r15362 = x;
        double r15363 = r15362 * r15362;
        double r15364 = y;
        double r15365 = r15363 - r15364;
        double r15366 = r15361 * r15365;
        return r15366;
}

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