Average Error: 0.0 → 0.0
Time: 3.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 r2868747 = x;
        double r2868748 = y;
        double r2868749 = r2868748 * r2868748;
        double r2868750 = r2868747 - r2868749;
        return r2868750;
}

double f(double x, double y) {
        double r2868751 = x;
        double r2868752 = y;
        double r2868753 = r2868752 * r2868752;
        double r2868754 = r2868751 - r2868753;
        return r2868754;
}

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