Average Error: 0.0 → 0.0
Time: 797.0ms
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 r8395 = 0.5;
        double r8396 = x;
        double r8397 = r8396 * r8396;
        double r8398 = y;
        double r8399 = r8397 - r8398;
        double r8400 = r8395 * r8399;
        return r8400;
}

double f(double x, double y) {
        double r8401 = 0.5;
        double r8402 = x;
        double r8403 = r8402 * r8402;
        double r8404 = y;
        double r8405 = r8403 - r8404;
        double r8406 = r8401 * r8405;
        return r8406;
}

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