Average Error: 0.0 → 0.0
Time: 5.9s
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 r11027 = 0.5;
        double r11028 = x;
        double r11029 = r11028 * r11028;
        double r11030 = y;
        double r11031 = r11029 - r11030;
        double r11032 = r11027 * r11031;
        return r11032;
}

double f(double x, double y) {
        double r11033 = 0.5;
        double r11034 = x;
        double r11035 = r11034 * r11034;
        double r11036 = y;
        double r11037 = r11035 - r11036;
        double r11038 = r11033 * r11037;
        return r11038;
}

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