Average Error: 0.0 → 0.0
Time: 7.6s
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 r7164811 = x;
        double r7164812 = y;
        double r7164813 = r7164812 * r7164812;
        double r7164814 = r7164811 - r7164813;
        return r7164814;
}

double f(double x, double y) {
        double r7164815 = x;
        double r7164816 = y;
        double r7164817 = r7164816 * r7164816;
        double r7164818 = r7164815 - r7164817;
        return r7164818;
}

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