Average Error: 0.0 → 0.0
Time: 1.8s
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 r8150 = 0.5;
        double r8151 = x;
        double r8152 = r8151 * r8151;
        double r8153 = y;
        double r8154 = r8152 - r8153;
        double r8155 = r8150 * r8154;
        return r8155;
}

double f(double x, double y) {
        double r8156 = 0.5;
        double r8157 = x;
        double r8158 = r8157 * r8157;
        double r8159 = y;
        double r8160 = r8158 - r8159;
        double r8161 = r8156 * r8160;
        return r8161;
}

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