Average Error: 0.0 → 0.0
Time: 42.9s
Precision: 64
\[0.5 \cdot \left(x \cdot x - y\right)\]
\[\left(x \cdot x - y\right) \cdot 0.5\]
0.5 \cdot \left(x \cdot x - y\right)
\left(x \cdot x - y\right) \cdot 0.5
double f(double x, double y) {
        double r515761 = 0.5;
        double r515762 = x;
        double r515763 = r515762 * r515762;
        double r515764 = y;
        double r515765 = r515763 - r515764;
        double r515766 = r515761 * r515765;
        return r515766;
}

double f(double x, double y) {
        double r515767 = x;
        double r515768 = r515767 * r515767;
        double r515769 = y;
        double r515770 = r515768 - r515769;
        double r515771 = 0.5;
        double r515772 = r515770 * r515771;
        return r515772;
}

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 \left(x \cdot x - y\right) \cdot 0.5\]

Reproduce

herbie shell --seed 2019200 
(FPCore (x y)
  :name "System.Random.MWC.Distributions:standard from mwc-random-0.13.3.2"
  (* 0.5 (- (* x x) y)))