Average Error: 0.0 → 0.0
Time: 4.1s
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 r166629 = x;
        double r166630 = y;
        double r166631 = r166630 * r166630;
        double r166632 = r166629 - r166631;
        return r166632;
}

double f(double x, double y) {
        double r166633 = x;
        double r166634 = y;
        double r166635 = r166634 * r166634;
        double r166636 = r166633 - r166635;
        return r166636;
}

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