Average Error: 0.0 → 0.0
Time: 8.2s
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 r10138 = 0.5;
        double r10139 = x;
        double r10140 = r10139 * r10139;
        double r10141 = y;
        double r10142 = r10140 - r10141;
        double r10143 = r10138 * r10142;
        return r10143;
}

double f(double x, double y) {
        double r10144 = 0.5;
        double r10145 = x;
        double r10146 = r10145 * r10145;
        double r10147 = y;
        double r10148 = r10146 - r10147;
        double r10149 = r10144 * r10148;
        return r10149;
}

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