Average Error: 0.0 → 0.0
Time: 5.7s
Precision: 64
\[x \cdot x - y \cdot y\]
\[x \cdot x - y \cdot y\]
x \cdot x - y \cdot y
x \cdot x - y \cdot y
double f(double x, double y) {
        double r9132199 = x;
        double r9132200 = r9132199 * r9132199;
        double r9132201 = y;
        double r9132202 = r9132201 * r9132201;
        double r9132203 = r9132200 - r9132202;
        return r9132203;
}

double f(double x, double y) {
        double r9132204 = x;
        double r9132205 = r9132204 * r9132204;
        double r9132206 = y;
        double r9132207 = r9132206 * r9132206;
        double r9132208 = r9132205 - r9132207;
        return r9132208;
}

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

    \[x \cdot x - y \cdot y\]
  2. Final simplification0.0

    \[\leadsto x \cdot x - y \cdot y\]

Reproduce

herbie shell --seed 2019172 
(FPCore (x y)
  :name "Examples.Basics.BasicTests:f2 from sbv-4.4"
  (- (* x x) (* y y)))