Average Error: 0.0 → 0.0
Time: 2.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 r4980543 = x;
        double r4980544 = y;
        double r4980545 = r4980544 * r4980544;
        double r4980546 = r4980543 - r4980545;
        return r4980546;
}

double f(double x, double y) {
        double r4980547 = x;
        double r4980548 = y;
        double r4980549 = r4980548 * r4980548;
        double r4980550 = r4980547 - r4980549;
        return r4980550;
}

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