Average Error: 0.0 → 0.0
Time: 4.5s
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 r131982 = x;
        double r131983 = r131982 * r131982;
        double r131984 = y;
        double r131985 = r131984 * r131984;
        double r131986 = r131983 - r131985;
        return r131986;
}

double f(double x, double y) {
        double r131987 = x;
        double r131988 = r131987 * r131987;
        double r131989 = y;
        double r131990 = r131989 * r131989;
        double r131991 = r131988 - r131990;
        return r131991;
}

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 2019195 
(FPCore (x y)
  :name "Examples.Basics.BasicTests:f2 from sbv-4.4"
  (- (* x x) (* y y)))