Average Error: 0.0 → 0.0
Time: 37.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 r1314068 = 0.5;
        double r1314069 = x;
        double r1314070 = r1314069 * r1314069;
        double r1314071 = y;
        double r1314072 = r1314070 - r1314071;
        double r1314073 = r1314068 * r1314072;
        return r1314073;
}

double f(double x, double y) {
        double r1314074 = 0.5;
        double r1314075 = x;
        double r1314076 = r1314075 * r1314075;
        double r1314077 = y;
        double r1314078 = r1314076 - r1314077;
        double r1314079 = r1314074 * r1314078;
        return r1314079;
}

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