Average Error: 0.0 → 0.0
Time: 2.7s
Precision: 64
\[x - y \cdot y\]
\[x - y \cdot y\]
x - y \cdot y
x - y \cdot y
double f(double x, double y) {
        double r6813238 = x;
        double r6813239 = y;
        double r6813240 = r6813239 * r6813239;
        double r6813241 = r6813238 - r6813240;
        return r6813241;
}

double f(double x, double y) {
        double r6813242 = x;
        double r6813243 = y;
        double r6813244 = r6813243 * r6813243;
        double r6813245 = r6813242 - r6813244;
        return r6813245;
}

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 - y \cdot y\]
  2. Final simplification0.0

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

Reproduce

herbie shell --seed 2019165 
(FPCore (x y)
  :name "Graphics.Rasterific.Shading:$sradialGradientWithFocusShader from Rasterific-0.6.1"
  (- x (* y y)))