Average Error: 0.0 → 0.0
Time: 1.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 r8151 = 0.5;
        double r8152 = x;
        double r8153 = r8152 * r8152;
        double r8154 = y;
        double r8155 = r8153 - r8154;
        double r8156 = r8151 * r8155;
        return r8156;
}

double f(double x, double y) {
        double r8157 = 0.5;
        double r8158 = x;
        double r8159 = r8158 * r8158;
        double r8160 = y;
        double r8161 = r8159 - r8160;
        double r8162 = r8157 * r8161;
        return r8162;
}

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 2019209 +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)))