Average Error: 0.0 → 0.0
Time: 2.6s
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 r9140 = 0.5;
        double r9141 = x;
        double r9142 = r9141 * r9141;
        double r9143 = y;
        double r9144 = r9142 - r9143;
        double r9145 = r9140 * r9144;
        return r9145;
}

double f(double x, double y) {
        double r9146 = 0.5;
        double r9147 = x;
        double r9148 = r9147 * r9147;
        double r9149 = y;
        double r9150 = r9148 - r9149;
        double r9151 = r9146 * r9150;
        return r9151;
}

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