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 r13176510 = x;
        double r13176511 = y;
        double r13176512 = r13176511 * r13176511;
        double r13176513 = r13176510 - r13176512;
        return r13176513;
}

double f(double x, double y) {
        double r13176514 = x;
        double r13176515 = y;
        double r13176516 = r13176515 * r13176515;
        double r13176517 = r13176514 - r13176516;
        return r13176517;
}

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