Average Error: 0.0 → 0.0
Time: 2.3s
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 r9479242 = x;
        double r9479243 = y;
        double r9479244 = r9479243 * r9479243;
        double r9479245 = r9479242 - r9479244;
        return r9479245;
}

double f(double x, double y) {
        double r9479246 = x;
        double r9479247 = y;
        double r9479248 = r9479247 * r9479247;
        double r9479249 = r9479246 - r9479248;
        return r9479249;
}

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