Average Error: 0.0 → 0.0
Time: 2.5s
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 r3020331 = x;
        double r3020332 = y;
        double r3020333 = r3020332 * r3020332;
        double r3020334 = r3020331 - r3020333;
        return r3020334;
}

double f(double x, double y) {
        double r3020335 = x;
        double r3020336 = y;
        double r3020337 = r3020336 * r3020336;
        double r3020338 = r3020335 - r3020337;
        return r3020338;
}

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