Average Error: 0.0 → 0.0
Time: 3.4s
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 r10090 = 0.5;
        double r10091 = x;
        double r10092 = r10091 * r10091;
        double r10093 = y;
        double r10094 = r10092 - r10093;
        double r10095 = r10090 * r10094;
        return r10095;
}

double f(double x, double y) {
        double r10096 = 0.5;
        double r10097 = x;
        double r10098 = r10097 * r10097;
        double r10099 = y;
        double r10100 = r10098 - r10099;
        double r10101 = r10096 * r10100;
        return r10101;
}

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