Average Error: 0.0 → 0.0
Time: 8.8s
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 r10801 = 0.5;
        double r10802 = x;
        double r10803 = r10802 * r10802;
        double r10804 = y;
        double r10805 = r10803 - r10804;
        double r10806 = r10801 * r10805;
        return r10806;
}

double f(double x, double y) {
        double r10807 = 0.5;
        double r10808 = x;
        double r10809 = r10808 * r10808;
        double r10810 = y;
        double r10811 = r10809 - r10810;
        double r10812 = r10807 * r10811;
        return r10812;
}

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