Average Error: 0.0 → 0.0
Time: 6.7s
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 r121552 = x;
        double r121553 = y;
        double r121554 = r121553 * r121553;
        double r121555 = r121552 - r121554;
        return r121555;
}

double f(double x, double y) {
        double r121556 = x;
        double r121557 = y;
        double r121558 = r121557 * r121557;
        double r121559 = r121556 - r121558;
        return r121559;
}

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