Average Error: 0.0 → 0.0
Time: 1.3s
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 r9848 = 0.5;
        double r9849 = x;
        double r9850 = r9849 * r9849;
        double r9851 = y;
        double r9852 = r9850 - r9851;
        double r9853 = r9848 * r9852;
        return r9853;
}

double f(double x, double y) {
        double r9854 = 0.5;
        double r9855 = x;
        double r9856 = r9855 * r9855;
        double r9857 = y;
        double r9858 = r9856 - r9857;
        double r9859 = r9854 * r9858;
        return r9859;
}

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