Average Error: 0.0 → 0.0
Time: 5.5s
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 r11218 = 0.5;
        double r11219 = x;
        double r11220 = r11219 * r11219;
        double r11221 = y;
        double r11222 = r11220 - r11221;
        double r11223 = r11218 * r11222;
        return r11223;
}

double f(double x, double y) {
        double r11224 = 0.5;
        double r11225 = x;
        double r11226 = r11225 * r11225;
        double r11227 = y;
        double r11228 = r11226 - r11227;
        double r11229 = r11224 * r11228;
        return r11229;
}

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