Average Error: 0.0 → 0.0
Time: 2.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 r13144 = 0.5;
        double r13145 = x;
        double r13146 = r13145 * r13145;
        double r13147 = y;
        double r13148 = r13146 - r13147;
        double r13149 = r13144 * r13148;
        return r13149;
}

double f(double x, double y) {
        double r13150 = 0.5;
        double r13151 = x;
        double r13152 = r13151 * r13151;
        double r13153 = y;
        double r13154 = r13152 - r13153;
        double r13155 = r13150 * r13154;
        return r13155;
}

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