Average Error: 0.0 → 0.0
Time: 950.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 r8665073 = x;
        double r8665074 = y;
        double r8665075 = r8665074 * r8665074;
        double r8665076 = r8665073 - r8665075;
        return r8665076;
}

double f(double x, double y) {
        double r8665077 = x;
        double r8665078 = y;
        double r8665079 = r8665078 * r8665078;
        double r8665080 = r8665077 - r8665079;
        return r8665080;
}

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