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 r8152 = 0.5;
        double r8153 = x;
        double r8154 = r8153 * r8153;
        double r8155 = y;
        double r8156 = r8154 - r8155;
        double r8157 = r8152 * r8156;
        return r8157;
}

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

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