Average Error: 0.0 → 0.0
Time: 744.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 r10840315 = x;
        double r10840316 = y;
        double r10840317 = r10840316 * r10840316;
        double r10840318 = r10840315 - r10840317;
        return r10840318;
}

double f(double x, double y) {
        double r10840319 = x;
        double r10840320 = y;
        double r10840321 = r10840320 * r10840320;
        double r10840322 = r10840319 - r10840321;
        return r10840322;
}

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