Average Error: 0.0 → 0.0
Time: 1.0s
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 r10067614 = x;
        double r10067615 = y;
        double r10067616 = r10067615 * r10067615;
        double r10067617 = r10067614 - r10067616;
        return r10067617;
}

double f(double x, double y) {
        double r10067618 = x;
        double r10067619 = y;
        double r10067620 = r10067619 * r10067619;
        double r10067621 = r10067618 - r10067620;
        return r10067621;
}

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