Average Error: 0.0 → 0.0
Time: 5.2s
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 r9027177 = x;
        double r9027178 = r9027177 * r9027177;
        double r9027179 = y;
        double r9027180 = r9027179 * r9027179;
        double r9027181 = r9027178 - r9027180;
        return r9027181;
}

double f(double x, double y) {
        double r9027182 = x;
        double r9027183 = r9027182 * r9027182;
        double r9027184 = y;
        double r9027185 = r9027184 * r9027184;
        double r9027186 = r9027183 - r9027185;
        return r9027186;
}

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