Average Error: 0.0 → 0.0
Time: 4.2s
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 r8765318 = x;
        double r8765319 = y;
        double r8765320 = r8765319 * r8765319;
        double r8765321 = r8765318 - r8765320;
        return r8765321;
}

double f(double x, double y) {
        double r8765322 = x;
        double r8765323 = y;
        double r8765324 = r8765323 * r8765323;
        double r8765325 = r8765322 - r8765324;
        return r8765325;
}

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 2019174 
(FPCore (x y)
  :name "Graphics.Rasterific.Shading:$sradialGradientWithFocusShader from Rasterific-0.6.1"
  (- x (* y y)))