Average Error: 0.0 → 0.0
Time: 14.4s
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 r5771168 = x;
        double r5771169 = y;
        double r5771170 = r5771169 * r5771169;
        double r5771171 = r5771168 - r5771170;
        return r5771171;
}

double f(double x, double y) {
        double r5771172 = x;
        double r5771173 = y;
        double r5771174 = r5771173 * r5771173;
        double r5771175 = r5771172 - r5771174;
        return r5771175;
}

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