Average Error: 0.0 → 0.0
Time: 875.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 r96996 = x;
        double r96997 = y;
        double r96998 = r96997 * r96997;
        double r96999 = r96996 - r96998;
        return r96999;
}

double f(double x, double y) {
        double r97000 = x;
        double r97001 = y;
        double r97002 = r97001 * r97001;
        double r97003 = r97000 - r97002;
        return r97003;
}

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