Average Error: 0.0 → 0.0
Time: 963.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 r495 = 0.5;
        double r496 = x;
        double r497 = r496 * r496;
        double r498 = y;
        double r499 = r497 - r498;
        double r500 = r495 * r499;
        return r500;
}

double f(double x, double y) {
        double r501 = 0.5;
        double r502 = x;
        double r503 = r502 * r502;
        double r504 = y;
        double r505 = r503 - r504;
        double r506 = r501 * r505;
        return r506;
}

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