Average Error: 0.0 → 0.0
Time: 1.3s
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 r8143 = 0.5;
        double r8144 = x;
        double r8145 = r8144 * r8144;
        double r8146 = y;
        double r8147 = r8145 - r8146;
        double r8148 = r8143 * r8147;
        return r8148;
}

double f(double x, double y) {
        double r8149 = 0.5;
        double r8150 = x;
        double r8151 = r8150 * r8150;
        double r8152 = y;
        double r8153 = r8151 - r8152;
        double r8154 = r8149 * r8153;
        return r8154;
}

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