Average Error: 0.0 → 0.0
Time: 1.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 r2514 = 0.5;
        double r2515 = x;
        double r2516 = r2515 * r2515;
        double r2517 = y;
        double r2518 = r2516 - r2517;
        double r2519 = r2514 * r2518;
        return r2519;
}

double f(double x, double y) {
        double r2520 = 0.5;
        double r2521 = x;
        double r2522 = r2521 * r2521;
        double r2523 = y;
        double r2524 = r2522 - r2523;
        double r2525 = r2520 * r2524;
        return r2525;
}

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