Average Error: 0.0 → 0.0
Time: 6.4s
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 r8418172 = x;
        double r8418173 = r8418172 * r8418172;
        double r8418174 = y;
        double r8418175 = r8418174 * r8418174;
        double r8418176 = r8418173 - r8418175;
        return r8418176;
}

double f(double x, double y) {
        double r8418177 = x;
        double r8418178 = r8418177 * r8418177;
        double r8418179 = y;
        double r8418180 = r8418179 * r8418179;
        double r8418181 = r8418178 - r8418180;
        return r8418181;
}

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)))