Average Error: 0.0 → 0.0
Time: 6.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 r13580 = 0.5;
        double r13581 = x;
        double r13582 = r13581 * r13581;
        double r13583 = y;
        double r13584 = r13582 - r13583;
        double r13585 = r13580 * r13584;
        return r13585;
}

double f(double x, double y) {
        double r13586 = 0.5;
        double r13587 = x;
        double r13588 = r13587 * r13587;
        double r13589 = y;
        double r13590 = r13588 - r13589;
        double r13591 = r13586 * r13590;
        return r13591;
}

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