Average Error: 0.0 → 0.0
Time: 3.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 r8693 = 0.5;
        double r8694 = x;
        double r8695 = r8694 * r8694;
        double r8696 = y;
        double r8697 = r8695 - r8696;
        double r8698 = r8693 * r8697;
        return r8698;
}

double f(double x, double y) {
        double r8699 = 0.5;
        double r8700 = x;
        double r8701 = r8700 * r8700;
        double r8702 = y;
        double r8703 = r8701 - r8702;
        double r8704 = r8699 * r8703;
        return r8704;
}

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