Average Error: 0.0 → 0.0
Time: 4.9s
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 r5518659 = x;
        double r5518660 = y;
        double r5518661 = r5518660 * r5518660;
        double r5518662 = r5518659 - r5518661;
        return r5518662;
}

double f(double x, double y) {
        double r5518663 = x;
        double r5518664 = y;
        double r5518665 = r5518664 * r5518664;
        double r5518666 = r5518663 - r5518665;
        return r5518666;
}

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