Average Error: 0.0 → 0.0
Time: 4.4s
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 r2506 = 0.5;
        double r2507 = x;
        double r2508 = r2507 * r2507;
        double r2509 = y;
        double r2510 = r2508 - r2509;
        double r2511 = r2506 * r2510;
        return r2511;
}

double f(double x, double y) {
        double r2512 = 0.5;
        double r2513 = x;
        double r2514 = r2513 * r2513;
        double r2515 = y;
        double r2516 = r2514 - r2515;
        double r2517 = r2512 * r2516;
        return r2517;
}

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