Average Error: 0.0 → 0.0
Time: 5.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 r13366 = 0.5;
        double r13367 = x;
        double r13368 = r13367 * r13367;
        double r13369 = y;
        double r13370 = r13368 - r13369;
        double r13371 = r13366 * r13370;
        return r13371;
}

double f(double x, double y) {
        double r13372 = 0.5;
        double r13373 = x;
        double r13374 = r13373 * r13373;
        double r13375 = y;
        double r13376 = r13374 - r13375;
        double r13377 = r13372 * r13376;
        return r13377;
}

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