Average Error: 0.0 → 0.0
Time: 1.2s
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 r1916 = 0.5;
        double r1917 = x;
        double r1918 = r1917 * r1917;
        double r1919 = y;
        double r1920 = r1918 - r1919;
        double r1921 = r1916 * r1920;
        return r1921;
}

double f(double x, double y) {
        double r1922 = 0.5;
        double r1923 = x;
        double r1924 = r1923 * r1923;
        double r1925 = y;
        double r1926 = r1924 - r1925;
        double r1927 = r1922 * r1926;
        return r1927;
}

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