Average Error: 0.0 → 0.0
Time: 1.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 r2368 = 0.5;
        double r2369 = x;
        double r2370 = r2369 * r2369;
        double r2371 = y;
        double r2372 = r2370 - r2371;
        double r2373 = r2368 * r2372;
        return r2373;
}

double f(double x, double y) {
        double r2374 = 0.5;
        double r2375 = x;
        double r2376 = r2375 * r2375;
        double r2377 = y;
        double r2378 = r2376 - r2377;
        double r2379 = r2374 * r2378;
        return r2379;
}

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