Average Error: 0.0 → 0.0
Time: 2.8s
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 r13027 = 0.5;
        double r13028 = x;
        double r13029 = r13028 * r13028;
        double r13030 = y;
        double r13031 = r13029 - r13030;
        double r13032 = r13027 * r13031;
        return r13032;
}

double f(double x, double y) {
        double r13033 = 0.5;
        double r13034 = x;
        double r13035 = r13034 * r13034;
        double r13036 = y;
        double r13037 = r13035 - r13036;
        double r13038 = r13033 * r13037;
        return r13038;
}

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