Average Error: 0.0 → 0.0
Time: 4.5s
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 r2510 = 0.5;
        double r2511 = x;
        double r2512 = r2511 * r2511;
        double r2513 = y;
        double r2514 = r2512 - r2513;
        double r2515 = r2510 * r2514;
        return r2515;
}

double f(double x, double y) {
        double r2516 = 0.5;
        double r2517 = x;
        double r2518 = r2517 * r2517;
        double r2519 = y;
        double r2520 = r2518 - r2519;
        double r2521 = r2516 * r2520;
        return r2521;
}

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