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

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

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