Average Error: 0.0 → 0.0
Time: 6.7s
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 r15014 = 0.5;
        double r15015 = x;
        double r15016 = r15015 * r15015;
        double r15017 = y;
        double r15018 = r15016 - r15017;
        double r15019 = r15014 * r15018;
        return r15019;
}

double f(double x, double y) {
        double r15020 = 0.5;
        double r15021 = x;
        double r15022 = r15021 * r15021;
        double r15023 = y;
        double r15024 = r15022 - r15023;
        double r15025 = r15020 * r15024;
        return r15025;
}

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