Average Error: 0.0 → 0.0
Time: 2.0s
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 r4906 = 0.5;
        double r4907 = x;
        double r4908 = r4907 * r4907;
        double r4909 = y;
        double r4910 = r4908 - r4909;
        double r4911 = r4906 * r4910;
        return r4911;
}

double f(double x, double y) {
        double r4912 = 0.5;
        double r4913 = x;
        double r4914 = r4913 * r4913;
        double r4915 = y;
        double r4916 = r4914 - r4915;
        double r4917 = r4912 * r4916;
        return r4917;
}

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