Average Error: 0.0 → 0.0
Time: 9.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 r22073016 = x;
        double r22073017 = y;
        double r22073018 = r22073017 * r22073017;
        double r22073019 = r22073016 - r22073018;
        return r22073019;
}

double f(double x, double y) {
        double r22073020 = x;
        double r22073021 = y;
        double r22073022 = r22073021 * r22073021;
        double r22073023 = r22073020 - r22073022;
        return r22073023;
}

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