Average Error: 0.0 → 0.0
Time: 888.0ms
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 r6986086 = x;
        double r6986087 = y;
        double r6986088 = r6986087 * r6986087;
        double r6986089 = r6986086 - r6986088;
        return r6986089;
}

double f(double x, double y) {
        double r6986090 = x;
        double r6986091 = y;
        double r6986092 = r6986091 * r6986091;
        double r6986093 = r6986090 - r6986092;
        return r6986093;
}

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