Average Error: 0.0 → 0.0
Time: 8.6s
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 r10794 = 0.5;
        double r10795 = x;
        double r10796 = r10795 * r10795;
        double r10797 = y;
        double r10798 = r10796 - r10797;
        double r10799 = r10794 * r10798;
        return r10799;
}

double f(double x, double y) {
        double r10800 = 0.5;
        double r10801 = x;
        double r10802 = r10801 * r10801;
        double r10803 = y;
        double r10804 = r10802 - r10803;
        double r10805 = r10800 * r10804;
        return r10805;
}

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)))