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 r14576309 = x;
        double r14576310 = y;
        double r14576311 = r14576310 * r14576310;
        double r14576312 = r14576309 - r14576311;
        return r14576312;
}

double f(double x, double y) {
        double r14576313 = x;
        double r14576314 = y;
        double r14576315 = r14576314 * r14576314;
        double r14576316 = r14576313 - r14576315;
        return r14576316;
}

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