Average Error: 0.0 → 0.0
Time: 1.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 r2795 = 0.5;
        double r2796 = x;
        double r2797 = r2796 * r2796;
        double r2798 = y;
        double r2799 = r2797 - r2798;
        double r2800 = r2795 * r2799;
        return r2800;
}

double f(double x, double y) {
        double r2801 = 0.5;
        double r2802 = x;
        double r2803 = r2802 * r2802;
        double r2804 = y;
        double r2805 = r2803 - r2804;
        double r2806 = r2801 * r2805;
        return r2806;
}

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