Average Error: 0.0 → 0.0
Time: 15.7s
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 r17023 = 0.5;
        double r17024 = x;
        double r17025 = r17024 * r17024;
        double r17026 = y;
        double r17027 = r17025 - r17026;
        double r17028 = r17023 * r17027;
        return r17028;
}

double f(double x, double y) {
        double r17029 = 0.5;
        double r17030 = x;
        double r17031 = r17030 * r17030;
        double r17032 = y;
        double r17033 = r17031 - r17032;
        double r17034 = r17029 * r17033;
        return r17034;
}

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