Average Error: 0.0 → 0.0
Time: 413.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 r222147 = x;
        double r222148 = y;
        double r222149 = r222148 * r222148;
        double r222150 = r222147 - r222149;
        return r222150;
}

double f(double x, double y) {
        double r222151 = x;
        double r222152 = y;
        double r222153 = r222152 * r222152;
        double r222154 = r222151 - r222153;
        return r222154;
}

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