Average Error: 0.0 → 0.0
Time: 7.3s
Precision: 64
\[0.5 \cdot \left(x \cdot x - y\right)\]
\[\frac{1}{2} \cdot \left(x \cdot x - y\right)\]
0.5 \cdot \left(x \cdot x - y\right)
\frac{1}{2} \cdot \left(x \cdot x - y\right)
double f(double x, double y) {
        double r14669 = 0.5;
        double r14670 = x;
        double r14671 = r14670 * r14670;
        double r14672 = y;
        double r14673 = r14671 - r14672;
        double r14674 = r14669 * r14673;
        return r14674;
}

double f(double x, double y) {
        double r14675 = 1.0;
        double r14676 = 2.0;
        double r14677 = r14675 / r14676;
        double r14678 = x;
        double r14679 = r14678 * r14678;
        double r14680 = y;
        double r14681 = r14679 - r14680;
        double r14682 = r14677 * r14681;
        return r14682;
}

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 \frac{1}{2} \cdot \left(x \cdot x - y\right)\]

Reproduce

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