Average Error: 0.0 → 0.0
Time: 952.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 r150462 = x;
        double r150463 = y;
        double r150464 = r150463 * r150463;
        double r150465 = r150462 - r150464;
        return r150465;
}

double f(double x, double y) {
        double r150466 = x;
        double r150467 = y;
        double r150468 = r150467 * r150467;
        double r150469 = r150466 - r150468;
        return r150469;
}

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